Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2019.2.X
Votes
1
Found in
2019.1.0a9
2019.1.0f2
2019.2.0a1
2019.3.0a1
Issue ID
1149387
Regression
Yes
A Performance Issue appears when Brute Force Sorting a large amount of UI Objects with Canvas Component
How to reproduce:
1. Open the "SampleScene" Scene in the attached "New Unity Project.zip" Project
2. Click on the main "Canvas" GameObject
3. Enable the Canvas Group Component
4. Click on the "SortByName" and "SortByValue" Buttons in the Game View
5. Observe the Editor stuttering once you click on the Button
Expected Behavior: The UI Object sorting is as fast or slightly slower than without Canvas Group component enabled
Actual Behavior: The UI Object sorting is a lot slower than without Canvas Group component enabled
Reproducible with: 2019.1.0a9, 2019.1.1f1, 2019.2.0a14, 2019.3.0a1
Not reproducible with: 2017.4.26f1, 2018.3.14f1, 2019.1.0a8
Note: UIBehaviour.OnCanvasGroupChanged() is called nearly 1m times when sorting 100 UI elements. The number goes down to around 0.12m when you change the UI element counter to 50.
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2019.1):
Fixed in 2019.3.0a4, backported to 2019.1.0a5, 2019.2.0b4