Options for iPhone SDK Animiation

April 5, 2009 § Leave a comment

Options to add animation.

1) MPMoviePlayer
It gives no control and no flexibility on audio/video implementation.

2) UIImageView.animationImages API
It tends to suck up system memory. If you have over 100 images in animation, system memory will be maxed out. It works well for 2 to 5 full screen 480×320 images. In cases it works well on 20 full screen 480×320 images on simple app.

3) Workaround Approach
Created a class that keeps each image in a PNG file and then renders the PNG file into a UIImage at the right time. Animation oriented view controller that simply waits to read the PNG image data for a frame until it is needed. Instead of alllocating many megabytes, this class run in about a half a meg of memory with about a 5% CPU utilization for 2 sec animation at 15 FPS with total of 30 PNG images.

4) CATransaction


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

What’s this?

You are currently reading Options for iPhone SDK Animiation at Web Builders.


%d bloggers like this: