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

BuildPipeline.BuildAssetBundles 10x slower under Unity 5.5

Discussion in 'Scripting' started by MisterJones, Jan 30, 2017.

  1. MisterJones

    MisterJones

    Joined:
    Jul 23, 2013
    Posts:
    3
    Hi,

    We have been testing our project under Unity 5.5.1f1 and have discovered that our bundle building process is about 10x slower than under Unity 5.4.2f1.

    This is the function that we call:

    BuildPipeline.BuildAssetBundles( bundleOutputDir, buildMap, BuildAssetBundleOptions.ChunkBasedCompression, target );

    Looking at the release notes for 5.5.0 I found this under known issue:

    • Editor: Asset bundle building performance decrease when building multiple small asset bundles. (849376)
    https://issuetracker.unity3d.com/issues/drastically-lo…

    This issue was among the fixes for 5.5.1f1:

    • Asset Import: Fixed a bug when importing Alpha8 textures didn't import them as a single channel texture. (849376) - (it's odd that it says nothing about bundles)
    Unfortunately this does not fix the issue for us - we are still experiencing the slow bundle build problem.

    Upon further searching in the bug database we found issue 860738 "EVERY CALL TO BUILDASSETBUNDLES RECOMPILES SCRIPTS".

    https://issuetracker.unity3d.com/issues/every-call-to-…

    This issue could certainly explain what we are experiencing. Issue 860738 has a status of "postponed".

    Slow bundle building is a showstopper for our project as we use bundles extensively. Any assistance is greatly appreciated.

    Thanks,

    Mike
     
  2. MisterJones

    MisterJones

    Joined:
    Jul 23, 2013
    Posts:
    3
    Anyone else experiencing this?
     
  3. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,186
    I'm using 5.5.0p2 and unity's assetbundlemanager from the asset store. I have not experienced any issues when building assets and have been using this since I think 5.2. Currently do bundles for 4 platforms.
     
  4. Games-Foundry

    Games-Foundry

    Joined:
    May 19, 2011
    Posts:
    632
    I can confirm that we are experiencing this too on 5.5.2p4.