Working faster with Unity compilation

Hey,

It would be amazing if when Unity is compiling the scripts the editor was not frozen!
Because it takes a good 20 seconds to finish compiling. And it’s only going to get worse over time with more scripts.

In that moment, I could do simple operations in the Editor: moving around my scene view, dragging objects in components, … Anything really :wink:
But here I must patiently wait, staring at this progress bar.

Is there a way to make the compiling not freeze the entire editor?
I think that would make users gain quite a bit of time when creating their game. I know at least it would for me.

2 Likes

Slowness at AssetDatabase.Refresh smells like this issue:

1 Like

As it stands compiling takes around 13s, and AssetDatabase.Refresh() takes around 10s.

Are you saying I can get rid of these 10 seconds?

(I’m asking because it might take some time to try to edit my scripts and I would rather avoid doing it if it’s not for a significant gain :slight_smile: )

Sorry, all I know is I read that thread recently and the image you posted looked like it was stuck at the exact place the thread was saying was a performance regression. Wish I knew more.

1 Like