Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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:
    108
    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:
    5,043
    Is shader striping enabled in graphics settings?
     
  3. Ts1nd

    Ts1nd

    Joined:
    Jan 24, 2021
    Posts:
    108
    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:
    5,043
    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:
    715
    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:
    3,014
    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:
    715
    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:
    3,014
    Well, I guess it's both :)
    It will definitely help with the runtime memory usage.