Loading speed is too slow

I tested Addressables and Resources. Resources are much faster, about 80%-100% faster.

Resources load time: 00:00:00.2168990

Addressables load time: 00:00:00.3991120

Test environment
Unity 2020.2.0f1 windows 64 IL2cpp
Addressable: 1.16.15
Other settings are default.

 public void Load()
    {
        var stopwatch = new Stopwatch();
        stopwatch.Start();
        var o = Resources.LoadAsync<GameObject>("GameObject");

        o.completed += operation =>
        {
            go = Instantiate(o.asset as GameObject);
            stopwatch.Stop();
            Debug.Log("load time:" + stopwatch.Elapsed);
        };
    }




public void Load()
{
    var stopwatch = new Stopwatch();

    stopwatch.Start();
    asyncOperationHandle = Addressables.InstantiateAsync("GameObject");
    asyncOperationHandle.Completed += handle =>
    {
        stopwatch.Stop();
        Debug.Log("load time:" + stopwatch.Elapsed);
    };
}
1 Like

When first call Addressable.xxxx, it will call Addressable.InitializeAsync(), that might take some time, you should exclude that by calling it manually.