Image swizzling is a process that reorders the pixels in an image to make it more adapted to the way the graphic processor reads it. For more information, please read: http://wiki.ps2dev.org/psp:ge_faq.
As a result, images are drawn way faster. But the downside is that the pixels are no more contiguous, making it harder to modify images, because you can’t access a single pixel by its position anymore, but need some quite complicated calculation to find the real reordered pixel position on the image.
So, if you want to access the image data, easily and quickly, you should use unswizzled (normal) images. For images loaded from files that you don’t plan to modify later, you should use swizzled images, as it’s really a lot faster (especially if the image is put in RAM).
If this isn’t already implemented, please please implement it, the performance gains are enormous. (Speaking from experience)
It could either be implemented as a default, or as a extra optional argument to the image functions… ie : display.newImage(“myImage.png”, isSwizzled) – true or false.
Thanks [import]uid: 6981 topic_id: 10880 reply_id: 310880[/import]