- Home /
Unity after change scene twice then release the texture memory
Hi all
i did an test on Unity
i create three scene(SceneA,SceneB,SceneC)
SceneA contain one sprite with one texture(5.3MB),
SceneB,SceneC only contain one button for change scene
i use Android device for the test .
Here is the steps:
1·Start game from sceneB, the memory use for texture is 2.8MB (as i use NGUI for the button)
2·Change scene to sceneA, the memory increase to 8.2MB (2.8MB+5.3MB)
3·Change scene to sceneB, the memory still 8.2MB
4·Change scene to sceneC, the memory drop down to 2.8MB
SceneB->SceneA->SceneB->SceneC
also i did another test:
1·Start from sceneB (2.8MB)
2·Change to sceneA (8.2MB)
3·Change to sceneC (8.2MB)
4·Change to sceneC again (2.8)
SceneB->SceneA->SceneC->SceneC
any idea why?
thanks.
Answer by Stormizin · Jan 28, 2015 at 11:12 AM
Maybe unity have a internal cache in each scene/variables of another scene, don't know exactly why, but could be vars/method cache or anything else.
Who can answer you a good and right answer is the unity support.
Best Regards.
Your answer

Follow this Question
Related Questions
Bottleneck not shown in Unity Profiler 1 Answer
Framerate drops from 60 to 20 because of meshrenderer? 0 Answers
Some texturing questions... 2 Answers
Low FPS when against a wall? 1 Answer
EventSystem.Update() takes up 90% of CPU - Profiler Data Help 0 Answers