I have a simple project in which I load a 8192*8192 png.
On html5 my project uses around 10 mb before the loading.
On windows it uses 0.27 mb before the loading.
I am using System.totalMemory to profile the RAM.
Once I load the bitmap i get roughly 12 MB on html5. But on windows it’s 256 MB. Which seems normal since the memory the bitmap should require once decompressed is 8192 * 8192 * 4 MB.
Now what I don’t get is why the memory used on html5 is so low. Am I doing something wrong on the windows target? How can I reduce the memory on windows (beyond scaling down my png)?
Thanks for your time!