Search Issue Tracker
Won't Fix
Votes
0
Found in
5.4.0p1
Issue ID
831335
Regression
Yes
Adding "Canvas Group" component to "Canvas" results in slow performance when child game objects are constantly re-parented
Any child being re-parented fires off a message to its CanvasGroup, the CanvasGroup then broadcasts a message to all of its children, this message causes each child to work its way up the hierarchy, calling GetComponent at each level, trying to figure out how it should handle its canvas group registration which results in slow performance.
Steps to reproduce:
1. Open attached project
2. Open "CanvasGroupMakesSetSiblingIndexReallySlow" scene
3. Select GameObject->Canvas in hierarchy
4. Add component "Canvas Group"
5. Start play mode
-Performance drops from 90fps to 40fps
Reproduced on: 5.5.0b5, 5.4.1f1
Not reproduced on: 5.3.6p5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment