Search Unity

Feedback [PSA] Close package manager if experiencing inexplicable editor lag and pauses

Discussion in 'Package Manager' started by Rib, Oct 8, 2019.

  1. Rib

    Rib

    Joined:
    Nov 7, 2013
    Posts:
    3
    Just spent the evening trying to bisect why my project had become so sluggish to deal with in Unity, with any code change leading to about 15seconds of the editor being hung doing something synchronously blocking the UI.

    After incrementally deleting everything in my project until I basically had a pristine scene with one script it was still hanging and the only thing left to do was to factory reset the layout of the editor!

    It turned out that just because I had docked the package manager, then I would see the editor pausing whenever it had to recompile scripts.

    I can also reproduce this by creating a new project (2019.2.8f1 or 2019.2.3f1) and adding a boilerplate script to an empty. If I modify the script without the package manager open it just takes a moment to recognise and re-compile vs if I open the package manager then it takes about eight seconds. (and presumably it takes longer in my other project since I have installed more packages)

    Something is apparently triggering the package manager to also check for updated package (the status bar says 'Loading packages...') every time scripts are recompiled and that's blocking the main thread for a long time (at least on my machine).

    Curious to know if anyone else is seeing this, and if not I wonder why. Hopefully someone at Unity can find a way to make whatever the package manager does here happen asynchronously?

    Regards
     
  2. BobTheMinion01

    BobTheMinion01

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    6
    Hello there,

    thank you for your feedback.
    I'll send it to the team.

    It is indeed a fix we want to apply, it is not yet on the roadmap though.

    Thank you,
     
    Rib likes this.
  3. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    309
    I also want to add that this is a huge issue, especially for the people (like us) that are fully endorsing the package manager and trying to create our own packages. Your best users! ;)
     
    Rib likes this.