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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug Lit Shader build size increased 100x

Discussion in '2022.2 Beta' started by Ts1nd, Nov 26, 2022.

  1. Ts1nd

    Ts1nd

    Joined:
    Jan 24, 2021
    Posts:
    75
    In 2022.2.13 build size suddenly increased from 200Mb to around 1Gb because of lit shader:
    upload_2022-11-26_16-30-51.png
    How can it contribute almost 800Mb on a simple android game with 1 scene?
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,219
    Is shader striping enabled in graphics settings?
     
  3. Ts1nd

    Ts1nd

    Joined:
    Jan 24, 2021
    Posts:
    75
    No, I will enable it and give it a go but it will take some time as I also have problem with build times approaching 4h... On my 12gen CPU 32Gb Ram 3070 PC.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,219
    Maybe test in 2021 as well and also make a bug report since that shouldn't happen. Welcome to the beta haha
     
  5. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    697
    I'd suggest you update to Unity 2022.2.15 or above. This came in and should solve the issues you are having.
     
  6. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,818
    Unlikely. Variant prefiltering shouldn't change the number of variants that end up in the build.
     
  7. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    697
    Oops my bad, I mixed up memory usage with disk space. I thought he meant 1 gb of ram.
     
    DevDunk likes this.
  8. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,818
    Well, I guess it's both :)
    It will definitely help with the runtime memory usage.