diff options
author | hizzlekizzle | 2019-04-29 09:50:20 -0500 |
---|---|---|
committer | GitHub | 2019-04-29 09:50:20 -0500 |
commit | 6064e58855c7f3acc76ad55ce4ea2af985fe3c59 (patch) | |
tree | 11131d9d9ed903a601f1d1c2f0b33e2782e9bae6 | |
parent | 8b456289c6c31e1f36df2843f7a6044757b96dbe (diff) | |
parent | 1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2 (diff) | |
download | snes9x2002-6064e58855c7f3acc76ad55ce4ea2af985fe3c59.tar.gz snes9x2002-6064e58855c7f3acc76ad55ce4ea2af985fe3c59.tar.bz2 snes9x2002-6064e58855c7f3acc76ad55ce4ea2af985fe3c59.zip |
Merge pull request #32 from Tatsuya79/patch-1
recover 1 frame of input lag
-rw-r--r-- | libretro/libretro.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libretro/libretro.c b/libretro/libretro.c index f838ad6..2f50909 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -469,6 +469,9 @@ void retro_run (void) IPPU.RenderThisFrame = TRUE; #endif + poll_cb(); + report_buttons(); + S9xMainLoop(); // asm_S9xMainLoop(); S9xMixSamples(audio_buf, avail); @@ -478,10 +481,6 @@ void retro_run (void) if(!IPPU.RenderThisFrame) video_cb(NULL, IPPU.RenderedScreenWidth, IPPU.RenderedScreenHeight, GFX_PITCH); #endif - - poll_cb(); - - report_buttons(); } size_t retro_serialize_size (void) |