Re: iPad frame-by-frame animation
Re: iPad frame-by-frame animation
- Subject: Re: iPad frame-by-frame animation
- From: David Duncan <email@hidden>
- Date: Thu, 4 Nov 2010 09:05:41 -0700
On Nov 2, 2010, at 8:13 PM, Leon Qiao wrote:
> I got some problems on showing a frame-by-frame animations. I use some png
> files in quite a big size(1024* 768). The frame rate I required is near
> 1/24.
Consider that at the framerate you desire, this will require 1024*768*4*24=72MB of memory per second. You will almost certainly need to rethink your strategy.
> Is there any way to solve this problem?
There are many, which one is appropriate will require a lot more information about what your animation is. Generally:
1) Make it a movie instead
2) Break the animation into static and animated bits, stuff them into views, move the views.
3) Shrink your image sizes, scale them up for animation. 512x384 for example cuts the memory usage by 75%.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden