Performance question

Posted:
Feb 17, 2006 @ 11:18am
by directdance
Hi,
does it matter if using 24 bit or 16 bit graphic files for sprite design re the performance of the graphic engine of PPL (e.g. colission, animation, moving sprites, etc.)?
Thanks,
DirectDance

Posted:
Feb 17, 2006 @ 3:36pm
by kornalius
That is a very good question. It certainly won't affect collision check performance but might have an impact on sprite rendering speed but I am not a gfx expert. You should ask in the PocketHAL/PocketFrog forums here, it's the best place to get good answers about gfx performance on PocketPC's.

Posted:
Feb 17, 2006 @ 4:59pm
by Presto
Using PF Surfaces for the image data, the 24-bits are converted to 16-bits as they're loaded in, so there's no impact, except in filesize. In The Sudoku Collection, I converted all of my .PNGs from 24-bit to 16-bit, and saved about half a meg in the .cab size. As for blitting the images, it copies the memory directly, unless you're using pixel shaders or alpha blending, so once again it won't matter if the original is 24- or 16-bit. Now, if PPL keeps the images as HBITMAPs (which I don't think it does), then it'll behave differently, and could use up to 4 bytes per pixel, but I thought it was using PF for the image stuff.
-John