Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.1.X

Votes

87

Found in

2019.4

2020.1.2f1

2020.2

Issue ID

1270910

Regression

No

[Performance]Console Pro in non-collapse mode and with large logs causes Slow asset refresh when modifying any script, 45 second

Serialization

-

Reproduction steps:
1. Open user's attached project
2. In Profiler window, set profiling to Editor mode
3. Open /Assets/Scripts/AI/OfficeWorkerAI.cs using notepad
4. In "Awake()" function, add a space to the Debug.LogWarning string and save script
5. In Profiler window, observe performance

Expected result: Asset reimport is fast
Actual result: Asset reimport is considerably slow

Reproducible with: 2019.4.9f1, 2020.1.4f1, 2020.2.0b1
Could not test with: 2018.4.27f1 (console errors break project)

Note: Issue reproduces using Asset Import Pipeline V1 and V2
Note 2: The repro project here has been found to have very slow reload time due to Console Pro. If you have a lot of assert,warning the domain reload is greatly impacted negatively due to the usage of Console Pro. To improve you can enable "Collapse" mode which helps or close the Console Pro window. In this case, going from non-collapse Console Pro mode ~25 seconds to ~2.5 seconds in collapse mode and less without Console Pro.
Note 3: Investigating a duplicate issue it was observed that having the Package Manager window open will result in degradation of domain reload time over the course of a session. This is being fixed and tracked here: https://issuetracker.unity3d.com/issues/compilation-and-refresh-time-increases-after-each-script-change
Note 4: If you use Burst, upgrading to Burst 1.4.0-preview.5 should allow to save some time. In the case of this project it will save 0.2 seconds on every domain reload.
Note 5: If your domain reload times are not caused by one of the above issue, please report a separate issue with your project so that we can investigate. Thank you!

  1. Resolution Note (fix version 2021.1):

    This specific issue was with Console Pro in non-collapse mode. This information was sent to Console Pro developer. We also started a thread dedicated to domain reloads:
    https://forum.unity.com/threads/long-waiting-times-in-the-editor-slow-asset-refresh-when-modifying-any-script.981384/

Comments (20)

  1. FcsVorfeed

    Sep 20, 2020 08:01

    No body care this fucking problem
    They will always answer you :We cannot reproduce the problem, so the problem will be closed

  2. darthdeus

    Sep 18, 2020 18:11

    @DOGO224 this isn't related to Visual Studio ... it's a problem with Unity's AssetDatabase refresh, not related to the actual code change. It happens with things other than code too, e.g. if you change a mesh with UModeler. Also, I'm not even using Visual Studio

  3. dev_2051

    Sep 18, 2020 06:05

    Please fix this issue Asap it's super annoying to wait for 1-2 mins of compilation after every change leading to adverse work efficiency on daily basis.

  4. Dogo224

    Sep 17, 2020 13:28

    Hi, try to update visual studio :)

  5. jashan

    Sep 17, 2020 11:44

    This is insanely annoying. Usually, it takes 10 to 30 in my project, which is annoying enough. But yesterday, it took more than 5 minutes. I was actually pretty sure that Unity had crashed. Went for lunch, and when I returned, Unity was working again.

  6. phobos2077

    Sep 10, 2020 19:17

    Isn't it just overall slow code compilation and domain reload in Unity? It's like this at least starting from 2019.3. In a mid-size project code compilation (according to iteration profiler) alone can be as long as 10seconds. This is insane considering my previous experience with backend .NET development where even somewhat large code bases were compiled in just a few seconds. And we're talking about incremental compilation here, not full recompile. So just compiling the main Assembly-CSharp (we don't use AssemblyDefinitions for project code) takes 10 seconds. This is insane.

  7. AlmightPrince

    Sep 10, 2020 16:27

    Has to be fixed asap. Losing up to 2 productive hours every day and forcing myself to work long times scripting blindly before going back and manually refreshing unity scripts because automatic refreshes are a pain at this point

  8. mgm52

    Sep 09, 2020 12:01

    Urgently awaiting this to be fixed, it can be a big hit to productivity.

  9. marck_ozz

    Sep 09, 2020 04:49

    I'm struggling with this issue 3 days ago, but in my case it's worst. Every time I change as single line of any script and save it, unity crashes.

  10. NVDaniel

    Sep 04, 2020 15:19

    This is slowing down my day massively. Literally tiny 1 line changes are causing anywhere from 20 second to 1 minute Hold ons. 10 or so script changes in an hour means I'm losing 10 minutes waiting for Unity!

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.