From 1ddaf0d8b1876fa6d6342e0cf53635cc554db3d2 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Mon, 29 Apr 2019 16:27:20 +0200 Subject: recover 1 frame of input lag --- libretro/libretro.c | 7 +++---- 1 file 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) -- cgit v1.2.3