Search Issue Tracker

By Design

Votes

1

Found in

2019.4

2019.4.3f1

2020.3

2021.1

2021.2

Issue ID

1263223

Regression

No

Editor performance in Play mode is reduced when Game Object is selected in Hierarchy window

Inspector Framework

-

Reproduction steps:
1. Open the attached project ("1263223Repro.zip")
2. Open the "New Scene" scene
3. Enter Play mode
4. Open Inspector window
5. Select and deselect the "Cube" Game object in the Hierarchy window and observe the FPS count in the Game window

Expected result: Performance (FPS) is nearly the same
Actual result: Performance (FPS) drops down (See "2019_4_21f1.mp4" video)

Reproducible with: 2019.4.22f1, 2020.2.7f1, 2020.3.0f1, 2021.1.0b11, 2021.2.0a8
Not reproducible with: 2018.4.32f1 (FPS count in Game window is much lower, but after selecting or deselecting Game Objects it does not drop down)

  1. Resolution Note (2021.2.X):

    - Almost every windows in Unity are drawn using IMGUI which uses CPU time. Usually only the focused window will be redrawn repainted (more on this below)
    - Having an object selected will show this object in the inspector.
    - Inspector is refresh 10 times per second. Even in Playmode. This is to provide live preview of all properties being changed by gameplay code.
    - Repainting the inspector will impact FPS (less time for all other windows to repaint).
    - It wasn't doing this for 2018 probably because 2018 was capping the refresh rate of the Gameview. But it still took time to render the inspector.

    Workaround:
    - if you want max framerate: close the inspector or ensure no objects are selected.

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.