Animation - IUImage or Quartz?

Discussion in 'iOS Programming' started by Fabio P., Oct 16, 2008.

  1. Fabio P. macrumors newbie

    Oct 16, 2008
    We are developing an application that presents an animation of 100 frames. The animation is a loop and the frames react to the user touch. Moreover, to maintain responsiveness we have to load all the images in the memory.

    We tried to develop the application using and array of UIImage and resetting them to a view but the memory footprint was too big 42MB. Therefore, we tried to use Quartz, and we solved the memory problems (now its 12MB) but the cpu load often peeks a 100%. We though that quartz should have been faster than the UI class.

    As we are total newbies to cocoa it would be terrific if somebody could give to us some insights in the topic!

    Thanks :apple:
  2. detz macrumors 65816

    Jun 29, 2007
    Are you using UIImageView and the built in animation stuff?
  3. Fabio P. thread starter macrumors newbie

    Oct 16, 2008
    Yes we used UIImageView but not Core Animation because we need to resize the frames at variable speed. We are simulating a rotation, therefore we stretch the frames a bit and then load the next one.

Share This Page