The reason is I’m using some big texture images for a mesh, and I wanted to find out if the images remain in memory after they’ve been used to texture the mesh, ie whether it makes a difference what size images you use to texture a particular mesh.
But knowing how much memory you’re using is useful anyway.
A non-answer could be: it depends on the other apps opened…
I know i have constantly memory problems if i dont use collectgarbage() at adequate places…
So assuming all apps are closed, and you use collectgarbage a lot, then … I dont know.
But the available memory in my ipad1 is generally 100Mo, a fullscreen color image is 1024x768x3 so about 2.4Mo, so the absolute limit would be 40 images? The real limit should surely be 1/2 or 1/3 of that.
Interesting. Without garbage collection, I am currently at 270 plus. When I do garbage collection while setting up my mesh, it drops to 175, but then climbs steadily back to 250 plus. If I put periodic garbage collection into draw, it drops down to 175 each time, then climbs slowly again until I collect it again.