Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Reload Script Assemblies pops up constantly in newer versions

Discussion in 'Editor & General Support' started by CyberKn1ght, Aug 1, 2022.

  1. CyberKn1ght

    CyberKn1ght

    Joined:
    Apr 5, 2019
    Posts:
    16
    I have used editor version 2019 for a while, but decided to upgrade recently; However, whenever I try any newer versions, I get a very annoying "Reload Script Assemblies" window popup. It happens every time I change a script and save and go back to the editor, and takes about 2-3 seconds. Its fast so it doesn't exactly interrupt my workflow, but its extremely annoying since it pops up every single time I change anything, not depending on the project size or script size, so even if I add one single line to the only script in a completely empty project I encounter the popup. My PC is very fast and I have never encountered any such problems in 2019 and older editor versions, so it really feels like its more of a bug or something setup wrong on my part. I tried multiple versions of unity 2020 and 2021 and this happens in all of the version I tried. Is there any way to fix this and stop the popup from appearing?

    Thanks for your help!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,749
    It is such an infuriating and irritating problem that there are pinned threads on this forum and in the Scripting forum.

    Do those pinned threads solve the problem for you? Only one way to find out!
     
  3. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,881
    This is just a part of the domain reload that's always been there, there's just now a pop-up in newer versions of Unity to show that's actually doing something and not just locked up as it runs the domain reload. There are options in the editor preferences to change the time it takes for this to show up, but that doesn't mean that it's not there.
     
  4. CyberKn1ght

    CyberKn1ght

    Joined:
    Apr 5, 2019
    Posts:
    16
    How could I change it so the popup doesn't show up? I tried increasing the "Busy Progress Delay" option in the general section of the preferences to 10 and more, and tried restarting, but that doesn't seem to have any effect on my popup (which lasts 5 seconds at most)
     
  5. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,881
    I might've been mistaken, actually. That option might only be for when Unity's main thread is locked up for n amount of seconds, outside of domain reloads. I think Unity always lets you know when it's performing a reload.

    Nonetheless, even if you can prevent the pop-up, Unity will still have to perform the domain reload and will otherwise be locked up as it does. You might as well know when Unity is doing this, and the reload is required to properly recompile your code and reset the state of everything. Otherwise none of your code changes would take effect.

    I do agree that's not great that it's gotten longer in recent versions. There's ways to reduce this, one of which I like to recommend is to remove all unneeded packages that come with the default project templates.

    You can also turn of Auto-Refresh and manually invoke it with CTRL-R when you do want Unity to recompile/reload.
     
  6. CyberKn1ght

    CyberKn1ght

    Joined:
    Apr 5, 2019
    Posts:
    16
    So there isn't anything I can do to hide the window? I don't think it could be any faster since I have a completely barebones empty project with no additional packages.
     
  7. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,881
    If I remember the default templates bring in a lot of packages you don't need; at least not right off the bat. Such as the code editor packages for Visual Studio, Visual Studio Code, and Rider. Naturally you don't need all three of those in a project.

    But like I said, the domain reload has always been there. Pop-up or no pop-up Unity will be locked up while it's happening.

    If you're getting 2-3 seconds reloads then that's pretty short compared to what most folks are experiencing.
     
  8. CyberKn1ght

    CyberKn1ght

    Joined:
    Apr 5, 2019
    Posts:
    16
    Alright, thanks for the help!