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
- CurveTexture is not being released when unloading AssetBundle containing a Scene with ColorCurves post-processing component in Global Volume
- Crash on ExtractActiveCasterInfo when navigating the scene view in a project with specific lighting data
- Build Profile name increments when numeric suffix is removed from duplicate Profile name
- "Unrecognized block header in profiler data file, stopping deserialization" error is shown and no more profiler data is recorded when the Player is connected and profiler recording is enabled/disabled few times
- Shader error and warnings thrown when setting HDRP as an Active Target in Blank Shader Graph
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a7