Hi,
I am trying to load a larger mesh (around 65K) with around 350 blend shapes from an asset bundle.
This takes multiple minutes, and I don’t understand why this is the case. What’s even more strange, if I measure the time around the load function, the log tells me it takes less then 2 seconds. Here is the code for loading the asset and measuring the time:
float time = Time.realtimeSinceStartup;
var myLoadedAssetBundle = AssetBundle.LoadFromFile(Path.Combine(Application.streamingAssetsPath, "assets" , hairProperties.prefabName));
if (myLoadedAssetBundle == null)
{
Debug.LogError("Failed to load AssetBundle!");
return null;
}
GameObject prefab = myLoadedAssetBundle.LoadAsset<GameObject>(hairProperties.prefabName);
myLoadedAssetBundle.Unload(false);
Debug.Log("Time for loading hair asset: " + (Time.realtimeSinceStartup - time));