Search Unity

Addressables Window extremely slow with lots of addressables defined

Discussion in 'Addressables' started by austin-beck, Jan 14, 2020.

  1. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    14
    Hey guys,

    I spent some time digging through the forums for things similar to what I'm looking at. The closest I could find was https://forum.unity.com/threads/addressables-1-2-4-ui-becomes-very-slow-with-a-lot-of-assets.757013/ which hasn't had any additional comments since late October, so I decided to post my own.

    For a bit of background, we have probably around 40,000 addressables defined across 15 or so groups, though they're definitely not spread evenly.

    I checked the changelog since that post and I haven't seen any references to increased performance with lots of assets.

    Does anyone have any additional information about whether this is intended or will be fixed in a later release?

    Thanks for any insight you can provide!
     
    skwsk8 and SleepyAgapornis like this.
  2. wwmattn

    wwmattn

    Joined:
    Jul 2, 2019
    Posts:
    1
    We did some additional testing to try and find out how Addressables affect entering play mode.
    We tested the same project on three computers, two PCs with identical hardware and a Mac.
    This project has 104,976 assets in the AssetDatabase and 20,921 assets marked as addressable.
    These times are how long it takes from pressing play until the splash screen in our project loads.
    We used unity 2019.3.0f3 for all tests.

    Here are the baseline times (in seconds) without the Addressables package installed:
    PC1: 7.55, 6.68, 5.56
    PC2: 6.15, 6.11, 6.03
    Mac: 8.40, 8.34, 8.31, 8.45

    With Addressables v1.1.10 installed here are the times with the fast play mode script selected:
    PC1: 21.35, 15.45, 16.09
    PC2: 17.35, 21.10, 21.90
    Mac: 24.96, 21.47, 22.01, 21.89

    Here are the times with the virtual play mode script selected:
    PC1: 60.06 (error), 10.64 (error)
    Here are the times with the package play play mode script selected:
    PC1: 8.14, 8.12, 8.08
    PC2: 18.53, 16.01, 15.95

    We repeated the same tests with Addressables v1.5.1 installed.
    Here are the times with use asset database play mode script selected:
    PC1: 17.02, 14.45, 14.38
    PC2: 23.89, 23.43, 22.86
    Mac: 18.73, 18.14, 17.97, 18.53

    Here are the times with the simulate groups play mode script selected:
    PC1: 600+ (gave up)

    Here are the times with the use existing build play mode script selected:
    PC1: 7.05, 10.14. 7.23
    PC2: 19.04, 16.44, 16.24
    Mac: 10.74, 10.25, 9.95, 9.85

    I would like to reiterate austin-beck's requests for information.
    The amount of time the Addressables package adds to entering play is a tough pill to swallow.
    Are there any other projects where people are running into performance issues with addressables and a large number of assets?
    Does unity intend to improve performance when addressables are paired with a large number of assets?
     
    skwsk8 and SleepyAgapornis like this.
  3. JoeriCG

    JoeriCG

    Joined:
    Apr 25, 2018
    Posts:
    17
    I have around 14.000 assets in addressables and I'm having some of the same issues. Going into play mode isn't too much of an issue (at least on "asset database" mode or after building and running with "existing build"), but the addressables window does become veeeery slow. One thing causing this might be that it's, by default, always sorting everything based on "Group Name \ Addressable Name" column, every time you change something. Also when you select an asset in the addressable window, it's also trying to ping the asset in the project window which seems to slow down the process a lot when you select a lot of assets.
     
  4. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    55
    Hey again @JoeriCG! I'll send this post for you also :)
     
  5. AndersonDev

    AndersonDev

    Joined:
    Dec 13, 2015
    Posts:
    93
    Hi, question is not about this topic: how you deal with those huge database in version control? Because we modified Addressables to use with a lot of resources repositories on demand.
     
  6. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    14
    @Shaunyowns do you know who might be able to help us get more info here?
     
  7. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    55
    austin-beck likes this.
  8. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    14
  9. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    88
    I just made a post about this as well. It seems to be coming from the latest version.

    Anytime you open or interact with the addressables group window, it stalls for a few minutes. Our project isnt nearly as big as yours and its still about 3 minutes everytime this happens.

    We have found that it only happens when the window is in focus. So if you close the addressables window, pressing play wont slow down.
     
  10. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    14
    We still experience significant slowdown regardless of whether or not the window is open. It's just seconds compared to minutes but it's still enough to hamper productivity which is a dealbreaker for us unfortunately :(
     
  11. vzlomvl

    vzlomvl

    Joined:
    Jun 25, 2016
    Posts:
    25
    We have updated to 1.6.2 but we still have Addressables Group significant slowdown.
    @DavidUnity3d Do you able to reproduce this issue on your side? And if yes do you have any ETA for a fix?
    Thanks.
     
  12. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    88
    Bumping this so it stays at the top. This needs to be addressed urgently
     
  13. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    88
    Daily bump for this.

    Should also clarify that it doesnt take a ton of assets to cause this slowdown. We have maybe 1000 items and it still locks of for minutes each time.
     
  14. DavidUnity3d

    DavidUnity3d

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    229
    Hey all, sorry for the delayed reply. We're aware of and are actively working on improving the performance regressions of the Addressables UI window. I can't give any specific release date but it's one of our top priorities and should be out in either our next release or the one right after at the latest.
     
    Thermos and vzlomvl like this.
unityunity