Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
2020.1.0b12
2020.1.15f1
2020.2
2021.1
2021.2
Issue ID
1302224
Regression
Yes
[Windows] Compilation times on the Windows Editor are noticeably slower than on the OSX Editor
How to reproduce:
1. Open the user's attached "CompileTimeIssue" project
2. Open the Editor Iteration Profiler (Window->Analysis->Editor Iteration Profiler->Show Window)
3. In the Editor Iteration Profiler at the top make sure that "Deep Profile" and "Enable" options are enabled
4. In the Project window go to the Assets/Scripts folder
5. Right-click on the "DeviceSimulatorSystemInfoHack.cs" script and select Reimport
6. After it finishes in the Editor Iteration Profiler observe Iteration Event 1 (ScriptCompilation)->Script Compilation->Assembly-CSharp.dll / Assembly-CSharp-Editor.dll
Expected results: Times are below 10000 ms
Actual results: Times are up to 10000 ms, can reach up to 90000 ms
Reproducible with:2020.1.0b12, 2020.17f1, 2020.2.2f1, 2021.1.0b2, 2021.2.0a1
Could not test with: 2018.4.30f1, 2019.4.18f1, 2020.1.0b11
Notes:
- On a mac, we couldn't get times above 10000ms
- Machines used for testing:
MacBook Pro (15-inch, 2016), 2.7 GHz Quad-Core Intel Core i7, 16 GB 2133 MHz LPDDR3 times were all below 10000 ms
Windows 10, Intel i9-10940X @ 3.30GHz, NVIDIA GeForce RTX 2070 Super, 64 GB 2666 MHz lowest times were just above 10000 ms reaching up to 90000 ms
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
- Scene Filter buttons reset to "All" in the Occlusion Window when entering Play Mode but the Scene Filters themselves do not reset
- Transition property is not disabled in the UI Builder when it is set by a variable
- Crash on PersistentManager::GetSerializedType when opening a specific Scene
- GlobalObjectId.GetGlobalObjectIdSlow returns empty ID when in Prefab Isolation Mode
- Crash on Transform::RemoveFromParent when deleting a child GameObject
Resolution Note:
It appears that the most likely culprit is IL Post Processing taking a long time. The current version of Entities now does most of it's code-generation with source generators. Much less time is taken in IL post-processing which should help in Entities 0.50 and onward.