summaryrefslogtreecommitdiff
path: root/libretro
diff options
context:
space:
mode:
authorTatsuya792019-04-29 16:27:20 +0200
committerGitHub2019-04-29 16:27:20 +0200
commit1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2 (patch)
tree11131d9d9ed903a601f1d1c2f0b33e2782e9bae6 /libretro
parent8b456289c6c31e1f36df2843f7a6044757b96dbe (diff)
downloadsnes9x2002-1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2.tar.gz
snes9x2002-1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2.tar.bz2
snes9x2002-1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2.zip
recover 1 frame of input lag
Diffstat (limited to 'libretro')
-rw-r--r--libretro/libretro.c7
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)