Has anyone managed to find a way to speed up the slow video refresh problem on the HP 2215? It seems to take around 30-33ms to copy my back buffer to the video memory returned by GXBeginDraw(). This means I can't get more than 33fps max in my game although the game loop slows this down even further.
My backbuffer is in landscape mode which I used to copy to the IPAQ screen with a memcpy(). It seems that the pitch values have now changed from -2, 640 to 2, 480 so I have to do it the long way... can anyone see any ways of optimising this code.
xoff = (gx.cbxPitch >> 1);
yoff = (gx.cbyPitch >> 1);
dst += 239;
for (y = 240; y; y-- )
{
ldst = dst;
for (x = 320; x; x-- )
{
*ldst = *src++;
ldst += yoff;
}
dst -= xoff;
}
Is there a faster way to access video ram as I've seen people posting frame rates of more than 50fps on this device which seems too good to be true.
My backbuffer is in landscape mode which I used to copy to the IPAQ screen with a memcpy(). It seems that the pitch values have now changed from -2, 640 to 2, 480 so I have to do it the long way... can anyone see any ways of optimising this code.
xoff = (gx.cbxPitch >> 1);
yoff = (gx.cbyPitch >> 1);
dst += 239;
for (y = 240; y; y-- )
{
ldst = dst;
for (x = 320; x; x-- )
{
*ldst = *src++;
ldst += yoff;
}
dst -= xoff;
}
Is there a faster way to access video ram as I've seen people posting frame rates of more than 50fps on this device which seems too good to be true.