Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

[URP] UberPost included in build even if no prostprocessing

Discussion in 'Universal Render Pipeline' started by Captain_Flaush, Dec 6, 2019.

  1. Captain_Flaush

    Captain_Flaush

    Joined:
    Apr 20, 2017
    Posts:
    42
    Hello,

    The postprocessing shader is included in the build even if no postprocessing is done in the scene.
    Can be tested with the sample URP scene, by removing the post processing volume.
    Using unity 2019.3.01f

    Thanks!
     
  2. hellowill89

    hellowill89

    Joined:
    Jan 8, 2013
    Posts:
    42
    Yes, I have also realized this. Maybe you could make an issue for it as well so that it can be tracked?
     
  3. Captain_Flaush

    Captain_Flaush

    Joined:
    Apr 20, 2017
    Posts:
    42
    Ok. Submitted.
     
  4. hellowill89

    hellowill89

    Joined:
    Jan 8, 2013
    Posts:
    42
    What is the issue number. Can you link to it?
     
    charl3ss likes this.
  5. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    50
  6. drallcom3

    drallcom3

    Joined:
    Feb 12, 2017
    Posts:
    35
    I have the same issue. There are also a lot of FilmGrain texture that take up space in the build.
    All that in a fresh 2019.3 project without any scenes or other files.
     
  7. hellowill89

    hellowill89

    Joined:
    Jan 8, 2013
    Posts:
    42
    Still looking for the issue number
     
  8. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    50
    The bug I reported on this in October 2019 was closed in fogbugz when I checked now, but I can't seen any explanation why. I can't find it in the issue tracker either (though that might be because it's so hard to find things there). Perhaps they couldn't reproduce the problem and never made an issue of the bug report. I've contacted them again asking them to reopen the bug and investigate it as it's clearly still a problem.
     
  9. xsasoftware

    xsasoftware

    Joined:
    Sep 6, 2017
    Posts:
    18
    Also, I see that in my Android build, post process add the dirt lens textures ( even if I removed them from post processing settings ). This texture is 22mb size. 1/3 of my game size.
     
  10. OwlBoy-

    OwlBoy-

    Joined:
    Dec 11, 2015
    Posts:
    16
    I am also seeing this issue. Unity 2018.4.19f

    Edit:
    As a workaround I used the Package Manager to uninstall PPv2, and did my build. It works but complicates doing a build.
     
    Last edited: Apr 1, 2020
  11. FranFndz

    FranFndz

    Joined:
    Sep 20, 2018
    Posts:
    133
    I tought that was normal, and the Uber shader is kinda huge. lols
     
  12. Captain_Flaush

    Captain_Flaush

    Joined:
    Apr 20, 2017
    Posts:
    42
    Back on this. They closed the ticket and said that it's normal for the shader to be included in the package and there is nothing they can do.
    Could you guys please also submit a ticket ?
     
  13. Eckster

    Eckster

    Joined:
    Feb 9, 2017
    Posts:
    4
    Any update on this?

    The main offenders I'm seeing:
    4.6 mb 1.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/UberPost.shader
    262.6 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/SMAA/AreaTex.tga
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Thin02.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Thin01.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium06.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium05.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium04.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium03.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium02.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Medium01.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Large02.png
    256.1 kb 0.1% Packages/com.unity.render-pipelines.universal/Textures/FilmGrain/Large01.png
    62.5 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/FinalPost.shader
    60.0 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/BokehDepthOfField.shader
    46.1 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/Bloom.shader
    38.7 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/GaussianDepthOfField.shader
    37.5 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/SubpixelMorphologicalAntialiasing.shader
    37.1 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/LutBuilderHdr.shader
    24.1 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/CameraMotionBlur.shader
    17.9 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Particles/ParticlesUnlit.shader
    17.8 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/LutBuilderLdr.shader
    13.2 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepth.shader
    11.5 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Utils/ScreenSpaceShadows.shader
    11.0 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/PaniniProjection.shader
    10.0 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Utils/Blit.shader
    8.1 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Utils/Sampling.shader
    7.7 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/StopNaN.shader
    4.5 kb 0.0% Packages/com.unity.render-pipelines.universal/Shaders/Utils/FallbackError.shader

    I'm definitely not using a lot of those postprocessing effects listed, I can understand that some are probably needed for dependencies, but this is a bit silly to add several MB to a project just for using URP.
     
  14. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    50
  15. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    545
    We will add the option to strip disable (and then strip) post-processing from build.
     
    lostminds likes this.
  16. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    50
    That's great news @phil_lira . For future reference, when this is added could you add a reply here explaining where this setting can be found so we can all use it?
     
    virgobr, korbul and berkhulagu like this.
unityunity