Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Entities 0.50 Build Size

Discussion in 'Entity Component System' started by StickyMitchel, Apr 28, 2022.

  1. StickyMitchel

    StickyMitchel

    Joined:
    Sep 2, 2019
    Posts:
    19
    Hello!

    After the upgrade to Entities 0.50 I have noticed a major increase in build size.

    My builds went from 8,7 GB to about 22,0 GB (IL2CPP builds).
    The EntityScenes folder (formerly SubScenes in Entities 0.17) in the builds have increased from 4,6 GB to 17,8 GB.
    Has something been changed in how the subscenes are bundled together or am I missing an extra step in the upgrade?
     

    Attached Files:

  2. StickyMitchel

    StickyMitchel

    Joined:
    Sep 2, 2019
    Posts:
    19
    An update on this issue, I found out after unpacking the SubScene .bundle files that the External References are empty.

    Taking a build Subscene from before the package upgrade and after (same SubScene), the bundle file from before the upgrade has a lot of External References. The bundle file after the package upgrade has only 1: "Library/unity default resources".

    I tried deepdiving into the SubScene import code to see what might have changed in the package upgrade and if we need to add more steps to our SubScene conversion in order to get these External References set up correctly but I am hitting a roadblock.

    It is also worth noting that the EntityScenes folder in the build only has 59 files (17,8GB) post package upgrade and 332 files (4,6GB) pre package upgrade. The amount of .bundle files has decreased significantly.
    This has also lead to an increase in build time as a side effect.

    Does anyone run into the same issue or know how we can investigate this even further?