Skip to content

Commit f83f226

Browse files
committed
Using now 3 GPU lists
1 parent 4c4cd67 commit f83f226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/psp/SDL_render_psp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ typedef struct
4343

4444
typedef struct
4545
{
46-
uint32_t __attribute__((aligned(16))) guList[2][GPU_LIST_SIZE];
46+
uint32_t __attribute__((aligned(16))) guList[3][GPU_LIST_SIZE];
4747
void *frontbuffer; /**< main screen buffer */
4848
void *backbuffer; /**< buffer presented to display */
4949
PSP_BlendInfo blendInfo; /**< current blend info */
@@ -983,7 +983,7 @@ static inline void PSP_SendQueueToGPU(SDL_Renderer *renderer) {
983983
sceGuSendList(GU_TAIL, data->guList[data->list_idx], NULL);
984984

985985
// Starting a new list
986-
data->list_idx = (data->list_idx != 0) ? 0 : 1;
986+
data->list_idx = (data->list_idx + 1) % 3;
987987

988988
sceGuStart(GU_SEND, data->guList[data->list_idx]);
989989
}

0 commit comments

Comments
 (0)