Low Memory at iPad when using movieclip()

When creating a new mocieclip with 36 images of 108kb each at iPad, and manipulating it to next and previous frame, I’m getting Low Memory.
The screen opens and close in 1 sec.

But it works in Corona and Xcode simulator.

Anyone have any idea?

Thanks [import]uid: 9482 topic_id: 3112 reply_id: 303112[/import]

How big are the images? they decompress on the device so if they are fullscreen, you will mostlikely run out of mem. [import]uid: 5712 topic_id: 3112 reply_id: 9105[/import]

36 images of:

100kb

1024 X 768

72 dpi
Is it a problem?
[import]uid: 9482 topic_id: 3112 reply_id: 9139[/import]

I could compile and run it on my iPhone 4, but not in the iPad… [import]uid: 9482 topic_id: 3112 reply_id: 9181[/import]

I tried with just 5 images and it worked…
There are any other way to show this movieclip?

To use sprites all these 36 should be in just one, right? [import]uid: 9482 topic_id: 3112 reply_id: 9226[/import]

Anyone?

I just don’t understand how it could work in iPhone 4, but not in iPad :frowning: [import]uid: 9482 topic_id: 3112 reply_id: 9279[/import]

Anyone?

I just don’t understand how it could work in iPhone 4, but not in iPad :frowning: [import]uid: 9482 topic_id: 3112 reply_id: 9280[/import]

I presume the image is scaled up on the iPad when loaded, so the interpolated image will take up as much memory as would a full-res iPad image. [import]uid: 3953 topic_id: 3112 reply_id: 9316[/import]

But why it’s happening?

Because I put

content =
{
width = 1024,
height = 768,

},

in the config file?
Or because the image is to large? [import]uid: 9482 topic_id: 3112 reply_id: 9322[/import]

Hi,

When you say “100 Kb”, do you refer to the file size of each image? If so, this only represents the size of the image… as a compressed file (such as Jpeg or PNG), not the size of the image in memory.

The image in memory is way larger: 2,3 Mb for a resolution of 1024 x 768 pixels (8 bits).
So 36 images actually take more than 84 Mb when loaded, which is quite a lot…

Don’t forget the iPhone 4 has twice the Ram of the iPad (512 vs 256 Mb).

Ch. [import]uid: 4958 topic_id: 3112 reply_id: 27133[/import]

I actually had to take out movieclip out of my own app to get it approved. It kept crashing on the iPad and lower devices. Apple mistakenly approved an earlier version and I kept getting bad reviews due to crashing.

Using the iPhone 4 as a testing device is not recommended if you want to avoid bad reviews. [import]uid: 11024 topic_id: 3112 reply_id: 27405[/import]