- Home /
How does Unity/Android use/manage SWAP and RAM files ?
Hi.
I'm creating an android application which needs to load a lots of huge images in /Resources. Fortunately, for a reason I don't know, sometimes, I can load bigger amount of files than my RAM should allow me and sometimes I cannot. My nexus 10 has 2Go of RAM. The profiler shows me that I'm using more than 2Gb of ram and fortunately the application still doesn't crash.
Unfortunately I don't know how to reproduce this comportment with other projects.
Does Unity (or Android) move a part of the Ram into Swap Files to allow me to Load a bigger amount of files ? Then, how can I monitor this ? And How can I know the amount of swap I'm able to use ? I really need to Load a lot of 1024*1024 images and I really need to understand the comportment of RAM. I mainly need any documentation or any answers to understand this comportment. Thanks for clues or answers :)