psp, more fps, improve sms/gg scaling

This commit is contained in:
kub 2022-09-28 18:43:33 +00:00
parent 96948bdfc8
commit 6370b1d401
7 changed files with 31 additions and 25 deletions

View file

@ -192,12 +192,12 @@ void psp_finish(void)
sceKernelExitGame();
}
void psp_video_flip(int wait_vsync)
void psp_video_flip(int wait_vsync, int other)
{
void *fb = (void *)((unsigned long)psp_screen & ~0x40000000);
sceGuSync(0, 0);
unsigned long fb = (unsigned long)psp_screen & ~0x40000000;
if (other) fb ^= 0x44000;
if (wait_vsync) sceDisplayWaitVblankStart();
sceDisplaySetFrameBuf(fb, 512, PSP_DISPLAY_PIXEL_FORMAT_565,
sceDisplaySetFrameBuf((void *)fb, 512, PSP_DISPLAY_PIXEL_FORMAT_565,
wait_vsync ? PSP_DISPLAY_SETBUF_IMMEDIATE : PSP_DISPLAY_SETBUF_NEXTFRAME);
current_screen ^= 1;
psp_screen = current_screen ? VRAM_FB0 : VRAM_FB1;