views:

290

answers:

0

I have been using Texture2D class from standard iPhone SDK samples for loading and displaying OpenGL textures . It works fine for me, although, there is still one small problem I would like to solve.

The performance of loading PNG textures is quite slow for me. I am trying to load about 10 PNG files with 512x512 size and it takes a while. Instruments shows that most of the time is taken by function CGContextDrawImage that is drawing image into bitmap data buffer.

Has anyone done any research in this area:

  1. Are there any lossless formats that could be decoded faster (PVR is not good for me)
  2. Is libpng or any other libraries work faster?

Keeping all images uncompressed in raw format will not work for me as it will add about 30 Mb to the size of the installed app.