Search Issue Tracker
Fixed in 2022.1.X
Votes
1
Found in
2018.4
2019.4
2020.2.7f1
2020.3
2021.1
2021.2
Issue ID
1319556
Regression
No
UI Meshes and Event System Objects not removed between instances of Player
1. Open attached project "ProfilerInstances 2.zip" and scene "SampleScene"
2. Open Memory Profiler by going Window>Analysis>Profiler>Memory
3. Enter and exit Play Mode repeatedly
4. In Profiler window's Memory tab, observe how the number of Textures, Meshes, and Total Objects In Scene is getting higher after every new play
5. In Hierarchy window, disable or delete Canvas and EventSystem GameObjects
6. Enter and Pause Play Mode, observe numbers in Profiler again
Expected result: The number of Textures, Meshes, and Total Objects In Scene stays the same on every new play
Actual result: The number of Textures, Meshes, and Total Objects In Scene is increasing with every new play except when the Canvas and EventSystem GameObjects are disabled
Reproducible with: 2018.4.33f1, 2019.4.25f1, 2020.3.8f1, 2021.1.6f1, 2021.2.0a16
Note:
Inconsistently, the number of Textures, Meshes, and Total Objects still increases when the Canvas and EventSystem GameObjects are disabled/removed.
-
Xepherys
May 05, 2021 17:59
I'm hoping this is something that receives adequate votes to have resolved sooner rather than later. This sort of thing occurs in even the sample scene that I submitted. With more complex scenes, this could increase. I've yet to verify whether scenes being destroyed/opened in a built executable exhibits this behavior, but even in the editor this can make it a bit more difficult to track down and resolve issues related to graphics performance.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX Graph] Base Color Map Inconsistency between Lit and Unlit Ouput
- [HDRP] Water is using the wrong depth when calculating absorption for alpha clipped transparents with depth prepass enabled
- [VFX Graph] Emissive isn't working with Decal output
- Gizmos are not drawn in Game view and Render Graph Execution errors are shown when stacked Overlay Camera is used and 'Compatibility Mode' is disabled
- Crash on WalkTypeTreeInternal when selecting the Texture of a specific FBX
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a7