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
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    111
    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,132
    Is shader striping enabled in graphics settings?
     
  3. Ts1nd

    Ts1nd

    Joined:
    Jan 24, 2021
    Posts:
    111
    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,132
    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:
    716
    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,040
    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:
    716
    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,040
    Well, I guess it's both :)
    It will definitely help with the runtime memory usage.