From 6c23b9afe4be482da3173c56f994c53fadd0a13f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 17 Feb 2014 12:29:47 +0100 Subject: [PATCH] (PSP) Speed improvement to video driver --- psp1/psp1_video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/psp1/psp1_video.c b/psp1/psp1_video.c index 3f4c559b3f..b0d5bfd1a8 100644 --- a/psp1/psp1_video.c +++ b/psp1/psp1_video.c @@ -164,6 +164,10 @@ static bool psp_frame(void *data, const void *frame, (void)msg; psp1_video_t *psp = (psp1_video_t*)data; + + sceGuSync(0, 0); + sceDisplayWaitVblankStart(); + sceGuSwapBuffers(); /* Check if neither RGUI nor emulator framebuffer is to be displayed. */ if(psp->rgui_active) @@ -234,9 +238,6 @@ static bool psp_frame(void *data, const void *frame, sceGuDrawArray(GU_SPRITES, GU_TEXTURE_16BIT | GU_COLOR_5650 | GU_VERTEX_16BIT | GU_TRANSFORM_2D, 2, NULL, v); sceGuFinish(); - sceGuSync(0, 0); - sceDisplayWaitVblankStart(); - sceGuSwapBuffers(); return true; }