I found that reload script assemblies took a lot of time after the project modified the code. To verify the problem, I created a new empty project and created a new script to test, It’s still take a long time (2s~5s).
test in 2021.3.10
I remember clearly that in the previous version, when you had very few scripts, you could compile the code very quickly and not so slowly
They do, but this topic has been discussed to death and everyone has long since been aware that 2021 and 2022 are reasonably slower than 2020 and 2019.
And one last thing mentioned in that giant sticky thread, that may or may not help you, but definitely sped up my end, is that you can disable directory monitoring and asset refresh. Again, this may or may not help your specific case, but it sure as hell sped things up big time on my end.
Asset refresh on my end (amongst other things). This isn’t a long wait, it’s restart Unity and lose work because I’m not saving every 30 seconds - how do you disable this?
@davidnibi Not sure, but there seems to be some relationship between this blocking behavior and debugging with a breakpoint switching back to Unity. I see it most often when I have a debugger attached and I am flipping between Unity and Visual Studio. Is this at all similar to your scenario?
Yeah, it’s when both are open. It could be, but I don’t think Unity’s developers know anyway.
I’m really concerned as it is now hanging my PC at times, and I’m having to hard reset - I’ve lost work, and some of my save files have been corrupted, including my project/scene files. It’s become impossible to continue.
This is my current project load screen, and (desperately) trying to backup my project as a package … doesn’t look hopeful does it?