Unity Slow Compile and Domain Reload
Workaround available Windows, macOS, Linux Updated November 13, 2026Based on 3 user reportsHow we research
Quick answer
Unity gets slow after every script change because of domain reload and full recompiles. Disabling domain reload on entering Play mode and splitting code into assembly definitions cuts the wait the most.
Most likely fix: Turn off domain reload for Play mode
How to fix it
Try these in order — the most common fix is first.
1. Turn off domain reload for Play mode
- Open Edit > Project Settings > Editor
- Enable Enter Play Mode Options
- Untick Reload Domain (and optionally Reload Scene)
- Reset static variables yourself since they are no longer cleared
Did this fix it?2. Use assembly definition files
- Right-click in Project > Create > Scripting > Assembly Definition
- Split stable code (plugins, libraries) from code you edit often
Did this fix it?3. Control Auto Refresh
- Open Edit > Preferences > Asset Pipeline
- Set Auto Refresh to Enabled Outside Playmode or Disabled and press Ctrl/Cmd+R to refresh manually
Did this fix it?4. Move the project to an SSD
- Keep the project and Library on a fast SSD
- Exclude the project folder from antivirus real-time scanning
Did this fix it?
Symptoms
Long 'Compiling scripts' or 'Reloading domain' bars after each edit or when pressing Play, sometimes taking tens of seconds.
Why it happens
- Domain reload and scene reload on every Play mode entry
- One big Assembly-CSharp so every change recompiles everything
- Many Asset Store plugins and large Library
- Slow disk or too little RAM
- Auto Refresh recompiling on each file save
This guide also covers
- unity slow compile
- unity domain reload slow
- unity compiling scripts takes forever
- why is unity so slow
Still not working?
If Unity keeps failing, you're not alone. See every Unity problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to us