Search Issue Tracker
Active
Under Consideration for 1.7.X
Votes
0
Found in [Package]
1.7.0
Issue ID
ISXB-624
Regression
No
InputSystem.TryFindMatchingControlLayout is called unnecessarily when undoing the deletion of GameObjects in the Hierarchy
Reproduction steps:
1. Open the attached “repro_IN-47328.zip” Project
2. Open the SampleScene
3. Open the Profiler tab
4. Install the Profile Analyzer package and open its tab (Window → Analysis → Profile Analyzer)
5. Enter the Play Mode
6. Press on the Record button in the Profiler tab
7. Delete all of the GameObjects in the Hierarchy (CTRL+A) and Undo (CTRL+Z)
8. Quickly press the Record button again to stop profiling
9. Go to Profile Analyzer and press Pull Data
10. Observe the “Median” value of the “Menu.Undo” call
Expected result: “Menu.Undo” call lasts for ~30ms or less
Actual result: “Menu.Undo” call lasts for ~100ms or more
Reproducible with: 2021.3.30f1, 2022.3.9f1
Couldn’t test with: 2023.1.12f1, 2023.2.0b8, 2023.3.0a4 (Errors due to deprecated code being used)
Reproduced on: macOS Ventura 13.5 (Intel), Windows 10
Not reproduced on: No other environment tested
Notes:
- This performance degradation could be caused by the InputSystem.TryFindMatchingControlLayout call
- Issue might be not reproducible on some systems, couldn’t find under what conditions this occurs
- Not reproducible on a new project
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
- Paragraph formatting in the the HDRP Sample Scene Tutorials is missing
- Test Runner "Open source code" navigates to the incorrect file or test
Add comment