- Home /
Used heap is above 10MB, should I worry?
And it allocates about 11.5 MB. Used heap is slowly rising, maybe 5k per second or so. It will cause a garbage collection(80'ish ms) maybe every 5-10 minutes or so.
Well, I guess the question is related to my attempt to make our game run on the iPad (and any other 256$$anonymous$$B device). It currently runs out of memory, and it's a bit of a task figuring out where that memory goes. Good to know if 11.5 $$anonymous$$B is ok, or not. Thanks! :)
I've seen heaps at these levels ~10 $$anonymous$$B without issue before. But the rate of garbage collection can hurt. Do you have any OnGUI()? or use any of Unity's Gui functionality? Because I think that may be one cause for higher rates. To get a clearer idea where the memory is going, you'll need to connect the device to the computer/adb and profile for any GC allocs.
Your answer
Follow this Question
Related Questions
Unity iOS controlling heap size growth 1 Answer
How to take mono heap dump from unity3d? 3 Answers
relation between dereferencing and memory deletion 0 Answers
Is there a way to accurately measure heap allocations in unit tests? 1 Answer
'Red' Errors in Console and Production of Garbage in Memory. 0 Answers