Alex.
Retired
- Joined
- Aug 24, 2005
- Messages
- 4,616
I've been playing around with the official SDK (EABI, devkitpro r25). All is going well except that flipping the framebuffers takes a very long time, killing all performance. Here's the code:
CODE
GPDRAWSURFACE gpDraw[2];
void GpMain(void *arg)
{
GpGraphicModeSet(16, NULL);
for(int i = 2; i--; ) GpLcdSurfaceGet(&gpDraw, i);
int flip = 1;
GpSurfaceSet(&gpDraw[0]);
while(1) {
// draw a box or something simple
// etc.
unsigned int timer = GpTickCountGet();
GpSurfaceFlip(&gpDraw[flip]);
timer = GpTickCountGet() - timer; /**** timer == 24! ****/
flip ^= 1;
}
}
I don't mess around with clock speed or anything, just simple things. I tried using both GpSurfaceFlip and GpSurfaceSet to flip the buffers, and they both take around 22-24 ms from call to return.
I'd appreciate any help from any of you one or two people that still haunt these forgotten parts of GP32x
CODE
GPDRAWSURFACE gpDraw[2];
void GpMain(void *arg)
{
GpGraphicModeSet(16, NULL);
for(int i = 2; i--; ) GpLcdSurfaceGet(&gpDraw, i);
int flip = 1;
GpSurfaceSet(&gpDraw[0]);
while(1) {
// draw a box or something simple
// etc.
unsigned int timer = GpTickCountGet();
GpSurfaceFlip(&gpDraw[flip]);
timer = GpTickCountGet() - timer; /**** timer == 24! ****/
flip ^= 1;
}
}
I don't mess around with clock speed or anything, just simple things. I tried using both GpSurfaceFlip and GpSurfaceSet to flip the buffers, and they both take around 22-24 ms from call to return.
I'd appreciate any help from any of you one or two people that still haunt these forgotten parts of GP32x
Last edited by a moderator: