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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Shaders are really large after build - URP Android

Discussion in 'Android' started by Antony-Blackett, May 11, 2020.

  1. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,772
    The two largest assets in my game are shaders. is that normal for URP?

    Used Assets and files from the Resources folder, sorted by uncompressed size:
    4.6 mb 1.8% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/UberPost.shader
    3.4 mb 1.3% Packages/com.unity.render-pipelines.universal/Shaders/Lit.shader
     
  2. Alexaroth

    Alexaroth

    Joined:
    Feb 4, 2019
    Posts:
    29
    Same here on latest unity/package.
     
  3. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    319
    Lit.shader is 9.9mb here... that is huge.
     
  4. Kevin-VFX

    Kevin-VFX

    Joined:
    Apr 17, 2016
    Posts:
    54
    I wish my lit shader was only 10mb...
     

    Attached Files:

  5. AydinDeveloper

    AydinDeveloper

    Joined:
    Sep 8, 2017
    Posts:
    89
    2022.1 alpha Github URP
     
  6. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Upgrade to URP, they said. It's production ready, they said.
     
    AydinDeveloper likes this.
  7. AydinDeveloper

    AydinDeveloper

    Joined:
    Sep 8, 2017
    Posts:
    89
    It is very interesting that I have projects that use the same version but have produced a much smaller shader. they have the same light setups and features. Even though I managed to fix things, it still generates a lot of shaders (120mb). The overall RAM usage of the application is 800 mb.
    400mb in a different project.
     
  8. florinel2102

    florinel2102

    Joined:
    May 21, 2019
    Posts:
    75
    Any update ? Lit.shader 280 MB RAM .