The readme says input remapping can add a frame of delay; why? #243
-
|
I am noticing it on some games, but after reading the code I'm not seeing any specific reason why input remapping would cause an extra frame of input lag from using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The reason is that games sample input once per frame. oaf also updates state once per frame. If the game happens to sample input just before oaf updates state the game won't see the changes until the next frame. This can be worked around by updating the state faster. I believe Nintendo does it 400 times per frame which is also insane but very responsive. This would come at the cost of increased battery usage. |
Beta Was this translation helpful? Give feedback.
The reason is that games sample input once per frame. oaf also updates state once per frame. If the game happens to sample input just before oaf updates state the game won't see the changes until the next frame.
This can be worked around by updating the state faster. I believe Nintendo does it 400 times per frame which is also insane but very responsive. This would come at the cost of increased battery usage.