How much memory can an application use on an iPad?

I am currently writing an iPad app. I use a lot of images in this application about 40 MB images! This application works fine in the simulator, but it crashes on the device. I think the problem is with memory.

I wanted to know how much memory I can use on an iPad?

Thanks Saurabh

+3
source share
2 answers

Remember that 40 MB of image files on disk is much larger if you put them in memory. They are compressed on the disk, but as soon as you load it into memory, you use as much memory as an uncompressed image. If I remember correctly (width x height x (bits per pixel / 8)) = memory usage, so for a full-screen image (1024x768x (16/8)) = 1,572,864, so there’s about 1.5 MB of RAM, and on disk it could be only a couple of hundred KB.

+4
source

The iPad has 256 MB of memory, and only 100 to 120 of them can be used in the application. Note that this number is a variable, since the VM frees up memory from previous applications and may be less if you use applications such as iPods in background mode.

, , , , , ..

+1

Source: https://habr.com/ru/post/1750263/


All Articles