mirror of
https://github.com/libretro/libretro-fceumm.git
synced 2025-01-04 07:40:09 +00:00
Perform input poll before running emulator. Reduces input lag by one full frame.
This commit is contained in:
parent
e5030cd631
commit
298736f549
@ -995,8 +995,8 @@ void retro_run(void)
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
||||
check_variables();
|
||||
|
||||
FCEUI_Emulate(&gfx, &sound, &ssize, 0);
|
||||
FCEUD_UpdateInput();
|
||||
FCEUD_UpdateInput();
|
||||
FCEUI_Emulate(&gfx, &sound, &ssize, 0);
|
||||
|
||||
for (i = 0; i < ssize; i++)
|
||||
sound[i] = (sound[i] << 16) | (sound[i] & 0xffff);
|
||||
|
Loading…
Reference in New Issue
Block a user