Unity Slow Compile and Domain Reload

Share
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. 1. Turn off domain reload for Play mode

    1. Open Edit > Project Settings > Editor
    2. Enable Enter Play Mode Options
    3. Untick Reload Domain (and optionally Reload Scene)
    4. Reset static variables yourself since they are no longer cleared
    Did this fix it?
  2. 2. Use assembly definition files

    1. Right-click in Project > Create > Scripting > Assembly Definition
    2. Split stable code (plugins, libraries) from code you edit often
    Did this fix it?
  3. 3. Control Auto Refresh

    1. Open Edit > Preferences > Asset Pipeline
    2. Set Auto Refresh to Enabled Outside Playmode or Disabled and press Ctrl/Cmd+R to refresh manually
    Did this fix it?
  4. 4. Move the project to an SSD

    1. Keep the project and Library on a fast SSD
    2. 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
Fixed it? Share this guide

Other Unity errors

All 12 Unity errors and fixes →