Search Unity

Inspector Lag when marked as Addressable

Discussion in 'Addressables' started by KingKRoecks, Sep 15, 2021.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    I have a fairly complex project. I have a series of folders cascading down from Assets/ root to where my object is defined.

    Assets/A/B/C/D/E/F.asset

    When this object is selected in inspector, it works fine.

    As soon as it's marked as Addressable, it lags noticeably.

    I attempted to profile my own custom inspector, but the results were consistently ~1ms with/with-out.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    I'll forward this to the team. Which version of Addressables are you using?
     
  3. Feelnside

    Feelnside

    Joined:
    Sep 30, 2016
    Posts:
    83
    I'm also facing the issue using Addressables.
    Unity 2019.4.31f1, Addressables 1.18.16 (2019.4 verified).
    I have added an addressable group. Into the group I have added Asset Folder. Once I'm trying to select any asset from this folder (Texture, Prefab, Material, etc) it freezes for ±0.5s and then selected asset details appears in the inspector. If I do multiple select let's say 10 objects than it could take about 5s to proceed.

    If I remove the addressabel group - then all assets select immediately.

    But in 1.19.9 I can't see that issue. So looks like we are good now.
     
  4. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    294
    This looks like a performance regression from a change we made to identify if an Asset inside a folder was Addressable or not, when displaying the inspector for it.

    From 1.19.9 working for you. The optimisations to those also, with the change log entry "Improved performance of displaying Addressables Inspector in a very large Project." Which hopefully confirms the cause and the fix for you.