Hello,
I am stuck with an issue that I have trying to solve for a long time without much success. When building the game on IOS and running on Xcode, I can constantly see the memory usage increasing. When i load the Main Menu, the memory is around 92 mb which increases to around 218 mb on loading the gameplay scene. Now as i play the game, the memory keeps on increasing till it gets around 300 mb. Now if i get game over and reload the gameplay scene or I exit the scene and load the Main Menu, the memory usage jumps to around 350 mb. It does not decreases. Ideally, if i am exiting a scene, Unity should unload all its assets and load a new scene. I have tried the Clean Load action without much help. As i keep on switching between the scenes, the memory usage keep on increasing till the time the game crashes.
I am using Pool Manager to pool prefabs and spawn and despawn them. Even then the memory usage keeps on increasing. I am attaching the screenshots of the pool setting, spawning and despawning of prefabs. I also destroy the pools before loading a different scene.
I have tried Unloading Unused Assets action as well as Clean Level Load action to reduce the memory usage without any effect.
Please let me know if I am missing something important. I am using prefabs heavily in the game.
Thanks a lot,
Siddharth