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
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)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
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.