Search Issue Tracker

Fix In Review for 2022.1.X

Fix In Review for 2019.4.X, 2021.1.X, 2021.2.X

Fixed in 2020.3.X

Votes

34

Found in

2019.4.29f1

2020.3.13f1

2021.1.10f1

2021.2

2022.1

Issue ID

1348763

Regression

Yes

Performance degradation when activating or deactivating uGUI GameObject

Scripting

-

Reproduction steps:
1. Open the attached project "PerformanceBug.zip"
2. Open the "PerformanceTest" Scene
3. Open the Profiler (Window > Analysis > Profiler)
4. Enter Play Mode and record at least 50 frames
5. Exit Play Mode
6. Select the CPU Usage module in the Profiler
7. In the Profiler Hierarchy, navigate to "PlayerLoop > Update.ScriptRunBehaviourUpdate > BehaviourUpdate > PerformanceTest.Update"
8. Select a frame in the Timeline that contains the GameObject.Activate method
9. Observe the GameObject.Activate method's "Time ms" value

Expected result: time does not significantly increase
Actual result: time increases by a multiple of 2 or more

Reproducible with: 2019.4.29f1, 2020.3.13f1, 2020.3.14f1, 2021.1.10f1, 2021.1.16f1, 2021.2.0b5, 2022.1.0a3
Not reproducible with: 2019.4.28f1, 2020.1.0a1, 2020.3.12f1, 2021.1.0a1, 2021.1.9f1

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Fix is ready, needs to land :)

  2. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.19f1

Comments (4)

  1. Bb053698ed0c5984b125d301c3ebfbbd?d=mm

    Alexander_Nasonov

    Sep 09, 2021 07:23

    We need this fix very much! Please fix! 2019.4 LTS.

  2. D1b309a76ae4b9ec023178b5e53f8333?d=mm

    Sollaninn

    Sep 09, 2021 07:18

    2019.4 LTS need fix

  3. 1cc9a4e27ec6001e7868ec1f43d0e41a?d=mm

    DLord

    Sep 09, 2021 07:15

    We need fix for 2019.4 LTS.

  4. A1ad18003f657e79933f5925938dea0d?d=mm

    GloriaVictis

    Sep 07, 2021 11:20

    2019.4 LTS fix pls!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.