PSP2: Make sure framelimiter is on in menus
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Aug 2016 17:43:49 -0700
2 files changed,
5 insertions(+),
4 deletions(-)
M
src/platform/psp2/main.c
→
src/platform/psp2/main.c
@@ -30,12 +30,12 @@ vita2d_clear_screen();
} static void _drawEnd(void) { - static int oldVCount = 0; + static int vcount = 0; extern bool frameLimiter; - int vcount = oldVCount; + int oldVCount = vcount; vita2d_end_drawing(); - oldVCount = sceDisplayGetVcount(); - vita2d_set_vblank_wait(frameLimiter && oldVCount + 1 >= vcount); + vcount = sceDisplayGetVcount(); + vita2d_set_vblank_wait(frameLimiter && vcount + 1 >= oldVCount); vita2d_swap_buffers(); }
M
src/platform/psp2/psp2-context.c
→
src/platform/psp2/psp2-context.c
@@ -305,6 +305,7 @@ 0,
0 }; sceCtrlSetActuator(1, &state); + frameLimiter = true; } void mPSP2Unpaused(struct mGUIRunner* runner) {