My Goal I'd like to improve the drawing performance of transparent images in an animation by using the fact that the background beyond the images is not changing during the animation.
The Context I need to build an animation of 100 images (~5sec). I can't use the startAnimating function of UIImageView since 100 images is too big to be put in memory. So I've decided to use a timer and to change directly the image in the UIImageView. The problem is that for transparent images, the drawing is too slow (5 FPS for full screen images with transparency; 22 FPS for images without transparency).
When the animation is launched, I know that the pixel beyond my images will not changed until the animation is finished.
Question Is there a way to improve the drawing performance of my transparent images by using the fact that the background beyond the image don't change during the animation ?
Note that the background beyond the image can change before I launch the animation so I can't put the background directly in my images.