Search Issue Tracker
Won't Fix
Votes
7
Found in
2021.2.19f1
2022.1.3f1
2022.2.0a11
Issue ID
UUM-2620
Regression
Yes
The creating and import of a new script in Editor became really slow in trunk
Checked with new HDRP project and the time taken for creating new script has increased:
2020.3 - around 1 sec;
2021.2 - around 3-4 sec;
2022.1 and 2022.2 - around 4-5 sec;
of course on every version the "new HDRP" project means different because it uses different packages... But what is interesting - even in simple new 3D project on 2022.2 creating new script takes around 3 sec.
How can we reproduce it
1 Create new 3D project
2 In Project Browser RightMouseButton->Create->Script
Actual results: that causes import, then Domain Reload, then some other stuff - all that takes around 5 sec
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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
Resolution Note:
I have filed several internal issues separately to fix particular parts of this that were slow.
We have an analytics dashboard now to help monitor iteration times on a broader scale. There is a team working on CoreCLR where we hope to make a big improvement to this issue, and there are other entries on the Unity Roadmap ( https://unity.com/roadmap/unity-platform/engineering and https://unity.com/roadmap/unity-platform/editor ) which are working towards fixing this issue.
Since these are all large scale changes we're working on that go towards fixing this, we're unlikely to work on fixing this specific bug report.
If you have a project where this is a problem you might like to try:
- making sure that you do not have any unnecessary packages or asset in your project
- turning on the fast enter playmode options (https://blog.unity.com/technology/enter-play-mode-faster-in-unity-2019-3)
- setting up Assembly definitions to reduce the amount of code compiled (https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html)
- using the Unity Profiler to check what is slowing things down in your project