How to speed up the editor?

Whenever I tab back to Unity from my IDE, I get a popup that says “Repaint…” this or that, whatever it’s doing, basically redrawing the inspector I guess. Generally this take about 2 seconds, sometimes longer, which is not a long time, but it happens every time, no matter what changes I made, even if it’s just a single line of code. Even though it’s a small delay, it’s quite annoying over the course of a day of work, and makes iterative testing a bit frustrating. I feel disincentivized to make small changes and test, and rather end up writing too much code at once and then have to debug the entire script.

Anyway, when I watch videos of other people using Unity I don’t usually see this issue, which leads me to believe it’s either a settings issue or a hardware issue. My CPU isn’t super new (Ryzen 7 3800X), but I have 32GB of DDR5 RAM and an RTX 3060. I have the “Do not reload domain or scene” option enabled to make entering play mode faster, but I’m hoping there’s something similar for this issue so I don’t have to buy new hardware.

There’s a few misc things you can do to improve unitys in editor experience. Amongst my favorite are, under Project Settings, Enabling Play Mode options, and leaving reload scene / domain off. Next up, is another fan favorite, and this one actually might be noticeable for you right away… underneath Asset Pipeline, found in Preferences, disable Auto Monitor Directory’s.

Next up, the greatest fav! of all… dont start plugging in all sorts of third party code based assets etc. Can really bung your project up. :stuck_out_tongue:

Anyways, Theres a few other things one can do, but those first two seem to have a decent impact.

Oh, one last thing, if you DO turn off directory monitoring, remember to hit Ctrl + R (refresh) whenever you make changes you want updated, or nothing updates. Cheers.

2 Likes

To add to the above, also remove as many packages that you don’t need. Packages like Visual Scripting add a lot to domain reloads which can easily be gained by removing it.

1 Like

Thank you very much, the Auto Refresh (as it’s called in Unity 6) completely solved the issue for me.

1 Like