Search Unity

AssetDatabase v2 Refresh Significantly Slower Than v1

Discussion in 'Asset Database' started by austin-beck, Jan 2, 2020.

  1. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    We'll look into this.
     
    SomeGuy22 likes this.
  2. LoneDev6

    LoneDev6

    Joined:
    May 22, 2013
    Posts:
    20
    Is there any news on this issue?
    Thanks all
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
  4. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
    FYI I have the same issue with 2020.3 - AssetDatase.Refresh taking 5-6 mins on every project open but only with Cache Server Enabled. The project opens in a few seconds when Disabled.
     
  5. LoneDev6

    LoneDev6

    Joined:
    May 22, 2013
    Posts:
    20
    So basically disabling the cache server will fix that issue?
    Wasn't cache server meant to speedup assets refresh?
     
  6. FloBeber

    FloBeber

    Joined:
    Jun 9, 2015
    Posts:
    166
    Our project contains hundreds of 8K textures. Cache Server (hosted on Google Cloud Storage) does speed up things when opening the project after a major VCS update. We can see textures getting downloaded instead of imported looking at the Task Manager. But we recently ran into that new issue of project opening taking longer than it should after upgrading from 2019.4 to 2020.2 (as far as I remember).

    Oh and I should have mentioned that this AssetDabase.Refresh problem also happens every time saving an Amplify shader node graph... We now got used to enable Cache Server only when importing a set of big assets and to manually delete EditorEncounteredVariants before opening which is definitely not ideal.
     
  7. gliealonso

    gliealonso

    Joined:
    Oct 21, 2018
    Posts:
    117
    For those having slow script compile issues, this worked for me:

    upload_2021-7-27_18-58-52.png

    Before I had 2 VS installed, one from 2019 and the other from 2017, I uninstalled the one from 2017 and updated the one from 2019, then I selected the 2019 version in External Script Editor
     
  8. LoneDev6

    LoneDev6

    Joined:
    May 22, 2013
    Posts:
    20
    I'm using Rider, so I guess it's not the issue for me
     
  9. Crossway

    Crossway

    Joined:
    May 24, 2016
    Posts:
    509
    It solved my issue too :)
     
    catherineomega and Unity_Javier like this.