Skip to content

Commit

Permalink
fix PS1 slowdown that required entering and exiting menu to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Oct 15, 2018
1 parent 49eb41a commit 895d68f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions user/menu.c
Expand Up @@ -467,9 +467,23 @@ int AdrenalineDraw(SceSize args, void *argp) {
uint32_t frames = 0;
float fps = 0.0f;

// keep track of entering pops mode
int lastPops = 0;

while (1) {
SceAdrenaline *adrenaline = (SceAdrenaline *)CONVERT_ADDRESS(ADRENALINE_ADDRESS);

// wait once for vblank after switching from psp to pops mode
// this fixes slowdown in PS1 games that used to require enter/exit Adrenaline menu
if (!adrenaline->pops_mode) {
lastPops = 0;
}

if (adrenaline->pops_mode && lastPops == 0) {
sceDisplayWaitVblankStart();
lastPops = 1;
}

// Draw savestate screen
if (adrenaline->savestate_mode != SAVESTATE_MODE_NONE) {
vita2d_start_drawing();
Expand Down

0 comments on commit 895d68f

Please sign in to comment.