Hello Unity friends,
I have a question about memory usage, or rather, how to learn about memory usage.
I've made a game that runs fine in Windows. However, I'm porting it to the Ouya game console (Android) and by keeping the game intact it crashes upon entering the main scene. (no surprise) If I take out 3d models, it runs. If I leave in 3d models, but remove NPCs with AI, it runs.
So I'm thinking that I've run out of memory, and the Ouya is heading for an ANR. The purpose of this post is not to ask how to diagnose that. Rather, I'm wondering if there's something like a resource meter within Unity, something that I can look at and say "ok, here's what's consuming memory" and in what order so that I can make the hard decisions about what can stay, and what can go.
My partner and I have done everything we can think of to keep memory use low, including not enabling models until the player gets into a certain range of them, and deleting them again once the player is away (through prefabs) but it seems that the Ouya is still loading them into memory regardless. Sorry if this has been covered elsewhere. I looked and nothing rang a bell.
Thanks, and God bless.
PS: Please forgive the header look. For some reason the question box automatically put the text of this question in as code initially, and this was the only way I could get it out of the code box. Sorry for being "that guy."
↧