PSP2: Make sure framelimiter is on in menus

This commit is contained in:
Jeffrey Pfau 2016-08-19 17:43:49 -07:00
parent 563aed44d8
commit 9efb41ecd5
2 changed files with 5 additions and 4 deletions

View File

@ -30,12 +30,12 @@ static void _drawStart(void) {
}
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();
}

View File

@ -305,6 +305,7 @@ void mPSP2Paused(struct mGUIRunner* runner) {
0
};
sceCtrlSetActuator(1, &state);
frameLimiter = true;
}
void mPSP2Unpaused(struct mGUIRunner* runner) {