Search Unity

Question How NOT to decompress downloaded bundles?

Discussion in 'Addressables' started by Peter77, Dec 1, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    Unity 2019.4.20f1, Addressables 1.19.9

    Is there an option that remote bundles, compressed with LZMA, keep compressed when downloaded and cached locally?

    I want to keep the install size of our game for Android and iOS relatively small and trade loading-performance for a smaller install size.
     
    Last edited: Dec 17, 2021
  2. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    763
    Hey Peter, currently there isn't. Downloaded bundles do get recompressed, but they're recompressed to LZ4Runtime. It's a mechanism on the side of the engine's AssetBundle/Caching system. There's not any control the Addressables package has on that unless some engine side changes were to happen. I'm not sure if there's a specific technical reason this was never exposed or not.

    Sorry about that. I can bring it up to the team and see what their thoughts are. Maybe we can address something like this in the future, but since it would require (somewhat significant, I think) changes in the engine, I don't know how feasible it is so long as Addressables leverages AssetBundles.
     
    Peter77 likes this.
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    Hey David, thank you for your reply.