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

Package: Input System

-

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

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.