Search Unity

Analyze "Check Duplicate Bundle Dependencies" consuming too much RAM (32GB)

Discussion in 'Addressables' started by dwit_mass_creation, Sep 18, 2019.

  1. dwit_mass_creation

    dwit_mass_creation

    Joined:
    Jun 18, 2015
    Posts:
    74
    I have only 32GB RAM and Analyze "Check Duplicate Bundle Dependencies" is using all of it. I mean more, so Unity is crashing due to no free RAM.

    I think it is due to number of resources I have in Addressables. Currently almost 6000 resources in 150 bundles. There will be much more.

    So if I'm correct Analyze needs (N * K * K * (data size)) memory (N - resources number, K - bundles number). So for me it is 135 million * (data size). If data size is more than few hundred bytes (long asset paths and so on) it would need much more than 30GB RAM.

    I've created simplier version only showing duplicated files without bundles which duplicate them (I don't really need that information). It only needs N * (data size) memory. I hope it helps someone: place files in addressable directory (Addressables/Editor/Build/AnalyzeRules/).
     

    Attached Files:

    LarsGameloft and RecursiveFrog like this.