psp, fix vsync synchronisation

This commit is contained in:
kub 2022-10-16 19:28:52 +00:00
parent 2c4675a993
commit 7e0c38c9c7

View file

@ -198,7 +198,7 @@ void psp_video_flip(int wait_vsync, int other)
if (other) fb ^= 0x44000;
//if (wait_vsync) sceDisplayWaitVblankStart();
sceDisplaySetFrameBuf((void *)fb, 512, PSP_DISPLAY_PIXEL_FORMAT_565,
wait_vsync ? PSP_DISPLAY_SETBUF_IMMEDIATE : PSP_DISPLAY_SETBUF_NEXTFRAME);
wait_vsync ? PSP_DISPLAY_SETBUF_NEXTFRAME : PSP_DISPLAY_SETBUF_IMMEDIATE);
current_screen ^= 1;
psp_screen = current_screen ? VRAM_FB0 : VRAM_FB1;
}