Search Unity

Too long AssetBundle loading scene. But 70% of loading time is Waiting for something.

Discussion in 'Asset Bundles' started by YuriyVotintsev, Sep 7, 2021.

  1. YuriyVotintsev

    YuriyVotintsev

    Joined:
    Jun 11, 2013
    Posts:
    46
    I'm using AssetBundles to load scenes. When scenes was built-in loading time was 5-7 seconds. After i start using assetbundles loading time increased to 15-27 seconds. But all this difference in time is just waiting according to profiler. In fresh new project loading same assetbundle works ok. But in profiler i don't see any of my sctipts that is working when assetbundle is loading scene.
    (unity 2021.1.16f)
    In screenshots all this yellow lines are some Profiler methods. In release build without profiler loading time is same, so i don't think that profiler is the problem.
     

    Attached Files:

  2. YuriyVotintsev

    YuriyVotintsev

    Joined:
    Jun 11, 2013
    Posts:
    46
    Here is what happens on GPU thread on this frame:
     

    Attached Files:

unityunity