Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.1.23f1
2022.2.0b15
2023.1.0a19
Issue ID
UUM-20386
Regression
Yes
Unity takes a long times on Assembly Reload when recompiling script changes
Reproduction steps:
- Open the attached project “PerfomanceIssueProject”
- Open Window → Analysis → Profiler window
- In the Profiler window select “Edit Mode” for the “Target Selection” and start recording
- In the Project window search type “VoxelHullToAStarNavmesh”
- Open the “VoxelHullToAStarNavmesh.cs” script in any code editor
- Change any line of the script, i.e. add a line “int repro;” anywhere and save the file
- Go back to Unity Editor and for the assets reload to finish
- When the reload is finished stop the recording in the Profiler window
- In the Profiler window look for a usage spike
- In the Profiler window search type “AssetDatabase.Refresh” and look for the “AssetDatabase.Refresh” method
Expected result: “AssetDatabase.Refresh” takes about or less than 1.5 seconds to finish
Actual result: “AssetDatabase.Refresh” takes more than 3 seconds to finish
Reproducible with: 2022.1.0a15, 2022.1.23f1, 2022.2.0b15, 2023.1.0a19
Not reproducible with: 2020.3.41f1, 2021.3.14f1, 2022.1.0a14
Reproducible on: macOS 13.0, Windows 10
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
- "Visual Effect Event Tester" Overlay is cut off when using the Scene View not in standard dimensions
- Visual Effect overlay has no tooltips for the playback controls
- Github link in the Rider tab of Preferences window has no padding on the left side and is not aligned with the other elements
- “Clear locked objects” button in the Info tab of the Physics Debugger window has no padding on the right side and has an extra space in between the words “locked” and “objects”
- Renaming the VFX Graph uses "Enter" for a new line and "Enter + Shift" to confirm instead of vice versa
Resolution Note:
this is a known issue, duplicate of this one https://issuetracker.unity3d.com/issues/the-creating-and-import-of-a-new-script-in-editor-became-really-slow-in-trunk