Search Unity

Build massive number of assetbundle very very slow

Discussion in 'Editor & General Support' started by NoobCoderFake, Dec 19, 2018.

  1. NoobCoderFake

    NoobCoderFake

    Joined:
    Nov 24, 2015
    Posts:
    42
    For some reason, I need to pack my resources into small size of assetbundles, so there's about 5000+ assetbundles in my project. When I build them by using "BuildPipeline.BuildAssetBundles(string outputPath, AssetBundleBuild[] builds, BuildAssetBundleOptions assetBundleOptions, BuildTarget targetPlatform)", it goes very fast at first, but become extremely slow after built about 1000+ assetbundles. It will take ~1 sec to build one then; and it takes ~5 secs when finished about 2000 abs.
    For building 5000+ abs, it totally takes about 12 hours. Files total size is about 400MB uncompressed.
    It it the I/O problem or it's an issue of UnityEditor? Or just my own problem?
     
  2. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,517
    It happens for just about any Unity automated process.. I am guessing this has to do with some undo stuff or memory stuff. Only hope is to separate build process into more manageable chunks..
     
  3. NoobCoderFake

    NoobCoderFake

    Joined:
    Nov 24, 2015
    Posts:
    42
    Thanks for your reply! Guess I need to change many things to avoid that many assetbundles……
     
  4. unity_GBZcYUUgc4DE3A

    unity_GBZcYUUgc4DE3A

    Joined:
    Jul 15, 2019
    Posts:
    2
    I have the same problem. I have 15K assetbundles and it takes more than 20 hours!!!!