My game keeps crashing because of out of memory issues, and the main problem I can see at the moment is that the memory usage keeps getting larger even though I’m just sitting on my 3D menu. Any idea what could be the culprit?
your fat ass?
I dont know. If you only have a 3D Menu, perhaps you are exhausting GUI. Perhaps you have a call, running into itself so as your game is running something is beging created over and over and over again. Best bet.
And your ass, sorry, I was just kidding, no offense please.
Its just you suggested you were sitting on your menu.
If you have the profiler available (a pro feature), you can run that and see if your game object or component count is going up over time - this could be bad after awhile.
Also, in your scripts, make sure that you aren’t instantiating or creating anything in a loop (like Update) that might not be getting deleted later on. There is a script on the wiki called “DetectLeaks” that could be helpful as well to see if you are creating objects without later destroying them.
However you decide to detect it, a memory leak is almost definitely the problem.
So I figured out if you have either slow and safe or use internal profiler settings your memory usage will continue to grow when looking at it with the xcode profiler. Now to hunt down other memory issues.