Process

Loading Screens That Do Not Freeze: Async Scene Loading in Unity

Your loading bar sits at 90 percent and then the whole screen locks for a second. Here is why that happens with LoadSceneAsync and the setup we use to keep loading screens smooth on mobile.

Vectra Play 5 min read
A phone on a desk showing a game loading bar next to a laptop running the Unity editor

Unity async scene loading keeps the screen alive only if you handle activation yourself. Load with SceneManager.LoadSceneAsync, set allowSceneActivation to false, animate the loading screen with unscaled time, and activate once progress reaches 0.9. The freeze you see usually comes from activation, where Awake, Start and asset uploads run on the main thread.

Why the bar freezes even with async loading

Async loading moves file reading and most deserialisation off the main thread. What it cannot move is the integration step, where objects get created, Awake and OnEnable run, and textures and meshes get uploaded to the GPU.

That step happens in one go when the scene activates. On a fast PC it is a blink. On a budget Android phone it can be a visible stall, and your spinning icon stops mid-turn.

So the goal is two things: keep the loading screen drawing while data streams in, and make the activation frame as light as possible.

The basic loader

Here is the shape we start from. It loads additively so the loading scene stays on screen the whole time.

IEnumerator LoadRoutine(string sceneName)
{
    var op = SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);
    op.allowSceneActivation = false;

    while (op.progress < 0.9f)
    {
        bar.fillAmount = op.progress / 0.9f;
        yield return null;
    }

    bar.fillAmount = 1f;
    op.allowSceneActivation = true;

    while (!op.isDone)
        yield return null;
}

After isDone, call SceneManager.SetActiveScene on the new scene, then unload the old one with UnloadSceneAsync.

Why progress stops at 0.9

With allowSceneActivation false, progress climbs to 0.9 and waits there. The last tenth is activation, and Unity holds it until you say go.

That is why the bar above divides by 0.9. Without it, your bar parks at 90 percent and players assume the game hung.

One gotcha worth knowing: while a scene is waiting for activation, other async operations can queue behind it. If you start an unload or another load in that window and it never finishes, this is the first thing to check.

Keeping the loading screen animated

A loading screen only looks alive if something on it moves every frame. A few settings help.

A short minimum display time also helps. If a scene loads in a quarter of a second, a loading screen that flashes on and off looks like a glitch. Holding it for around half a second with WaitForSecondsRealtime reads as intentional, and players stop noticing it.

Moving the hitch out of activation

This is where most of the real gains are. Everything that runs at activation runs in one frame, so spread it out.

  1. Slim down Awake and Start. Move heavy setup into a coroutine that runs across several frames after activation.
  2. Prewarm pools behind the loading screen. Spawn pooled objects a few per frame while the loader is still visible. Our object pooling guide covers the pool itself.
  3. Warm shaders early. A ShaderVariantCollection with WarmUp() called during loading avoids first-use stalls later in play.
  4. Fade out only when ready. Have the new scene signal it is done with setup, then fade the loading screen.

Here is the pattern for spreading setup across frames:

IEnumerator Prewarm(GameObject prefab, int count)
{
    for (int i = 0; i < count; i++)
    {
        pool.Add(Instantiate(prefab));
        if (i % 5 == 4) yield return null;
    }
    ready = true;
}

Testing it on a real phone

Real loading times only show up on a real phone. Your SSD and desktop CPU hide almost every hitch in the editor.

Build to the slowest Android phone you own and attach the Profiler with Development Build and Autoconnect Profiler ticked in Build Settings. Look at the frame where the scene activates. If it is long, expand it and see which scripts and uploads are inside.

Test loading on your weakest target device every time you add a big asset. Loading hitches creep in quietly, one prefab at a time.

For more on low-end targets, see our notes on Unity performance on low-end Android.

What we would do

We would set up an additive loader with a tiny persistent loading scene on day one, before content grows. It is a small job early and a painful one late.

Then we would profile the activation frame on a budget phone and push every heavy Awake into a spread-out prewarm step. That alone fixes most frozen loading screens we see.

The short version

If loading times are holding up your next release and you want a second pair of hands, get in touch.

Related reading: Unity Addressables vs Asset Bundles, Debugging frame drops on Android fast, Reducing Unity build size

#Unity#Mobile#Development#Android
Your turn

Got a game idea? We build it.

You bring the concept. We design, build, test and launch it, and you own 100% of the finished game.

Share Your Game Idea  →