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

2020.3.12f1: Massive Asset Bundles

Discussion in 'Asset Bundles' started by Petter_H, Dec 4, 2021.

  1. Petter_H

    Petter_H

    Joined:
    Jul 25, 2020
    Posts:
    12
    I thought it would be a good idea to put some of my scenes into a single separate asset bundle in order to reduce the loading time of my WebGL build. However, what I get is that the separate asset bundle takes about 700 MB with LZ4 compression enabled or 1.6 GB uncompressed, whereas my complete game with all scenes (albeit gzipped) takes 65 MB. Not too optimistic about server side gzipping fixing this.

    Pure speculation: The impression I get based (based on the sizes involved) it's as if the WebGL asset bundle build ignores correct asset import settings. Note: I haven't specified specific settings for WebGL for e.g. textures, but in geneeral put texture quality on low, plus have 1/8 texture sizes enabled in quality settings. If the BuildPipeline.BuildAssetBundles one or both of these things, that could account for what I'm seeing.

    Anybody that any idea of what cause this?

    I'm on 2020.3 LTS (mildly outdated 12f1) currently (since every time I change Unity version something breaks as a rule rather than exception).