X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Femu.c;h=bde10e4da2c7f57d1980c4a69dc832a7ba91a5b1;hb=b188c2b6d0448a9c328a9dcae5ba5c8c8b5273f3;hp=23e90ebed1fc39b2608a601d408b8fbd85b5e115;hpb=fbe111032e8092d5e031bf3a6f0cee6b9a20333e;p=libpicofe.git diff --git a/common/emu.c b/common/emu.c index 23e90eb..bde10e4 100644 --- a/common/emu.c +++ b/common/emu.c @@ -1535,6 +1535,9 @@ void emu_loop(void) emu_update_input(); PicoFrame(); + pemu_finalize_frame(fpsbuff, notice_msg); + + //plat_video_flip(); /* frame limiter */ if (!reset_timing && !(currentConfig.EmuOpt & (EOPT_NO_FRMLIMIT|EOPT_EXT_FRMLIMIT))) @@ -1552,7 +1555,9 @@ void emu_loop(void) } } - pemu_update_display(fpsbuff, notice_msg); + // XXX: for some plats it might be better to flip before vsync + // (due to shadow registers in display hw) + plat_video_flip(); pframes_done++; frames_done++; frames_shown++; }