Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Performance Issues after Updating from Unity 2021.1 to 2021.3

Discussion in 'Addressables' started by Thut, Sep 2, 2022.

  1. Thut

    Thut

    Joined:
    Oct 30, 2014
    Posts:
    25
    After updating my 2021.1 project to 2021.3 (LTS) my localization addressables are taking 100x+ time longer to load when Addressables Play Mode Script is set to Use Asset Database.

    From the profiler I noticed the issue was stemming from LocalizedAssetBehaviour.OnEnable->Loading.ReadObject->Loading.ReadObjectThreaed->ReadObjectFromSerializedFile (took 765992 ms)

    When the Addressable Play Mode Script is set to "Use Existing Build" the performance is much the same as it was before updating Unity.

    I attempted to debug what was taking so long, but not sure If I got good results or not, my best guess would be some method in ContentBuildInterface like GetPlayerObjectIdentifiersInAsset or GetPlayerDependenciesForObject.

    Also, build times around Localization tables have increased significantly, specifically due to "Calculate Asset Dependency Data".

    Notable changes from update
    • Updated from Unity 2021.1.15f1 to Unity 2021.3.8f1
    • Updated from Localization Package 1.1.1 to 1.3.2
    • Updated from Addressables 1.19.15 to 1.19.19
    • Updated from Scriptable Build Pipeline 1.19.5 to 1.20.1
     
  2. Thut

    Thut

    Joined:
    Oct 30, 2014
    Posts:
    25
    Just as a follow up, I reverted back to using the older versions of Addressables and Localization and the problem persisted, so I'm guessing the error is somewhere in the editor/engine code.