Search Issue Tracker
Fixed
Unknown (hidden) 2020.3.X, 2022.1.X
Fixed in 2021.3.14f1, 2022.2.0b7, 2023.1.0a6
Votes
1
Found in
2020.3.37f1
2021.3.3f1
2022.1.4f1
2022.2.0a16
2023.1.0a1
Issue ID
UUM-2725
Regression
No
[UIR] UIToolkit accumulating total extra vertices and draw calls when objects made Hidden/Visible
Reproduction steps:
1. Open the attached user's project "UIToolkit.zip"
2. Enter Play Mode
3. Enable the Stats window in Game View and check the amount of initially loaded vertices
4. Press the left mouse click to enable hidden objects and check the number of vertices in the Stats window
5. Repeat step 4 several times and observe the Stats window
Expected result: vertex count and buffer usage goes back to the initial state which were the same when entering Play Mode
Actual result: vertex count and buffer usage does not go back to the initial state (See attached Results.png)
Reproduces on: 2021.3.4f1, 2022.1.1f1, 2022.2.0a15
Could not test on 2019.4.39f1, 2020.3.34f1 due to various missing assembly definitions when downgrading
Notes:
-If you toggle the elements to VisualElement.style.visibility = StyleKeyword.Null (make them visible again), and then back to Hidden again, the vertex count and buffer usage remains inflated and will not go back to the original state levels.
Comments (1)
-
mikejm_
Jun 16, 2022 11:59
Please note that this problem also occurs with both toggling between:
1) VisualElement.style.display = StyleKeyword.Null and VisualElement.style.display = DisplayStyle.None.
2) VisualElement.style.visibility = StyleKeyword.Null and VisualElement.style.visibility = Visibility.HiddenThe severity of the problem with screencaps showing the dramatic accumulations of vertices, draw calls, and batches is demonstrated here:
I appreciate any help you can provide with offering a solution. Due to this issue, Unity is accumulating millions of vertices to display just very few objects on screen, which is making normal performance unfortunately impossible.
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (2022.1.X):
No longer supporting 2022.1.
Resolution Note (fix version 2021.3.14f1):
Fixed in 2021.3.14f1
Resolution Note (2020.3.X):
Not observable in 2020.3.39f1 because the Rendering profiler module never shows editor statistics.