I have a really big array of pictures, about 1000 and the pictures as 20 kb each for an animation.
When I test the program in Corona it works but it takes a litte time to load.
On the Iphone it doesn´t work, it starts but then it shut down the program.
I have read somewhere that the memorylimit for the Iphone is 10 mb, sp I did remove som pictures from the array and tried with about 400 pictures but it is the same problem…
I don’t think it is the images. At least not because of the Iphoen limits. I read about apps for Cocos2D that run with 20mb of textures. Could be a bug in the engine. [import]uid: 5712 topic_id: 791 reply_id: 1662[/import]
400 picts at 20k each is about 8megabytes. (400*(20*1024)) = ~8 megs. Almost hitting the texture buffer, and with the app running, you most likely running out of memory.
You can scale the image down further in photoshop or other program of choice, and scale them after you load them, image.scale(…)
I done this in a sample app I did using 350 images. Each image is about 8k from 40k.
Carlos
ps: yes, it takes time to load all the images into memory. try using a default.png of the first image to give the impression something is happening.
[import]uid: 24 topic_id: 791 reply_id: 1671[/import]