Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change where we break S9xMainLoop/Scan for input ("Brunnis lag fix")
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10e0ef0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced this really makes much of a difference, but I guess it can't hurt either.
When using polling buttons we already read directly in S9xDoAutoJoypad.
10e0ef0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I didn't notice much of a difference. It looks like it could save latency because it now polls after the screen update has been sent to the port and possibly had to wait for vblank, which means the input poll is closer to when the physical screen is updated.
Basically, it can't make things worse.
10e0ef0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, just tested it with your 1.55 libretro core vs one I compiled.
Boot up Mario World, put the game on pause, keep jump button pushed down, do "next frame".
Mario now jump in 3 frames vs 4 before.
It's more noticeable on say Super Aleste with ship at max speed, moving around.