all repos — mgba @ 9efb41ecd5ea3e692fdf15ddc65999077f101eb2

mGBA Game Boy Advance Emulator

PSP2: Make sure framelimiter is on in menus
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Aug 2016 17:43:49 -0700
commit

9efb41ecd5ea3e692fdf15ddc65999077f101eb2

parent

563aed44d854d528f5cee01b1bcddf007b48b4e2

2 files changed, 5 insertions(+), 4 deletions(-)

jump to
M src/platform/psp2/main.csrc/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.csrc/platform/psp2/psp2-context.c

@@ -305,6 +305,7 @@ 0,

0 }; sceCtrlSetActuator(1, &state); + frameLimiter = true; } void mPSP2Unpaused(struct mGUIRunner* runner) {