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.
Comments (1)
-
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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a7