Select to view content in your preferred language

Memory leak when switching (unloading) a Scene

86
0
2 weeks ago
LukasVasiliauskas
New Contributor

I am creating a game for one of my Uni assignments in Unity. Currently, I am near finishing the project, and while testing I noticed that my memory had spiked up to 90% usage (of 16GB)

I tracked down that it's likely caused by the ArcGISMap GameObject that is generated by the Tools > ArcGIS Maps SDK > Map Creator

I have two scenes: one for the starting screen, featuring the Global map, antoher, for the main game.
When switching from whichever scene (both containing ArcGISMap GOs) memory usage increases anywhere between 80 MB and > 100MB, I've tested this with the steps written here (https://docs.unity3d.com/Packages/com.unity.memoryprofiler@1.1/manual/find-memory-leaks.html#find-me...) as well.

I am using 1.6.0 version.

I have also ruled out everything else, because neither empty scenes cause any Memory Leaks, not other GameObjects besides ArcGISMap. Should be simple to reproduce this.

0 Kudos
0 Replies