exactly what size (I mean KB, as well as the exact pixel size) are your PNGs?
We worked a lot on this and have no problems playing animations on a pad of about 500x500. So I'm just curious, thanks.
One immediate problem is that you are trying to work at a speed of 100 Hz, 100 times per second ??!
This is absolutely impossible. Nothing works at 100 frames per second. 20 frames per second is “extremely smooth,” 30 frames per second is “incredibly smooth,” 40 frames per second “looks reasonable at the study level” if it can be achieved, and 100 frames per second cannot be achieved.
This has absolutely nothing to do with OpenGLES.
A typical environment will quickly load frames for you.
So, first go back to 30 fps (no more!) And discard every 2nd and 3rd image so that the animation looks the same. those. "i = i ++" becomes "i + = 3" in your line of code.
it is likely that this is the main problem that destroys your efforts!
The next problem! If you download each image as it happens, you will almost certainly need to free them all on the fly as you go with a couple of lines, for example ...
[happy.image release]; happy.image = [[UIImage alloc] initWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"blah" ofType:@"png"]];
If you do not, it just won’t work.
The next problem! The idea of using a video doesn't work, but can you just use a casual animated image? In this way,...
#define BI(X) [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@X ofType:@"tif"]] happyDays = [[NSArray alloc] initWithObjects: BI("hh00"), BI("hh01"), BI("hh02"), BI("hh03"), BI("hh04"), BI("hh05"), BI("hh06"), BI("hh07"), BI("hh08"), BI("hh09"), BI("hh10"), BI("hh11"), BI("hh12"), BI("hh13"), BI("hh14"), BI("hh15"), BI("hh16"), BI("hh17"), BI("hh18"), BI("hh19"), etc etc etc nil]; animArea.animationImages = happyDays; animArea.animationDuration = 2.88;
Not suitable for your situation?
In any case, in a word, your problem is 100 frames per second. Go to 20 frames per second and you won't have a problem. And let us know the exact image size (kb / xy).