mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
psp, more fps, improve sms/gg scaling
This commit is contained in:
parent
96948bdfc8
commit
6370b1d401
7 changed files with 31 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue