Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question 29s to recompile a script - AssetDatabase.V2.ImportAndPostProcessOutOfDateAssets.ReloadAssemblies

Discussion in 'Asset Database' started by bjarkeck, Dec 1, 2019.

  1. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    301
    Since we updated everything, our recompile times - which was slow before - is now way way slower. (29 seconds+).

    It looks like most of the time is taken up by URP and PostProcessing, so maybe this is something I bring to those forums? But since I only just started noticing these long recompile times after updating everything to AssetDatabaseV2, I'm not sure what to make of it.

    Here's what our update looked like:
    1. Updated a bunch of packages, manly Unity.Entities to the latest preview.
    2. Updated Unity to 2019.3.0f1 and selected AssetDatabase V2
    3. Deleted the library folder folder (which was required by the Entities update to get rid of a bug). It's also worth pointing out that the complete re-import of all assets took really really long, don't remember it taking this long before. It took like 2-3 seconds for each and every little .fbx file, is that normal? (Even .fbx less than 30kb takes several seconds to import)
      asdasdasd3.gif
    I have the data dump of the profiler screenshot below, I can PM you a download link if it's helpful.
    upload_2019-12-1_10-37-23.png
     
    Last edited: Dec 1, 2019
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132