Merge pull request #43 from Tatsuya79/patch-1

Recover 1 frame of input lag
This commit is contained in:
Twinaphex 2018-01-06 18:30:15 +01:00 committed by GitHub
commit a00ccac058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -570,12 +570,12 @@ void retro_run(void)
{ {
bool updated = false; bool updated = false;
update_input();
input_poll_cb(); input_poll_cb();
switch_to_cpu_thread(); switch_to_cpu_thread();
update_input();
render_audio(); render_audio();
video_cb(gba_screen_pixels, GBA_SCREEN_WIDTH, GBA_SCREEN_HEIGHT, video_cb(gba_screen_pixels, GBA_SCREEN_WIDTH, GBA_SCREEN_HEIGHT,