I’m running into some issues with having a lot of UIImages in memory, so I was wondering if there is any way of using PVRTC images instead of PNGs in UIImages.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it is limited to the OpenGL domain.
One technique that I have used in the past is to keep compressed PNGs in memory. As
NSDatainstances. And then uncompress them on demand withUIImage‘simageWithData:method.It does depend on the ‘complexity’ of your images though. In my case the images were ‘simple’ and resulted in fine performance.
You can also look at my animation framework at Github:
http://github.com/st3fan/iphone-animation
It uses a similar technique but uses run-length encoding for the compressed images in memory. Results in larger data (but still way smaller than uncompressed) but decompresses really quickly compared to PNGs.