I am currently developing an iPhone game with numerous animations using image sequences (jpg and png with transparencies). Using tools to view leaks and distribution of objects, I saw that the distribution of objects increases to less than 500 thousand. However, the program still crashes and unexpectedly leaves the game when we switch from one level of the game to another. This not normal? From what I read, the iPhone has 128 MB of memory.
Additional Information: We use CAKeyFrameAnimation (as recommended by Apple) and imageNamed (so that images are pre-cached). In each Level object, I see that dealloc is called when I change one level and load another. However, the memory seems to continue to grow and rise and never returns to its original level. = (
source
share