- Home /
Compiling HDRP/Lit shader takes 41 minutes, how can I reduce this?
Hello
I am making good headway constructing a CI pipeline on Azure but have ran into a pretty major blocker in that compiling the HDRP/Lit shader takes 41 minutes which means we always hit the 1 hour timeout. Do I have any options for improving this time? Is it possible to reduce the number of variants that need compilation?
I've already disabled the "optimise meshes" checkbox which I've seen solve a lot of other users' build time problems.
Thanks in advance! - TokaDev
Answer by TokaDevopsUnity · Nov 04, 2020 at 11:07 AM
For anyone else who comes across this:
I had some success altering the HDRenderPipeline rendering settings.
This page states what each of the settings do and what affects build time so in lieu of an in-depth knowledge of shaders themselves, I'm unchecking all and progressively re-checking them when I encounter errors : https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@7.1/manual/HDRP-Asset.html
This process has reduced the build time for the shader in question from 41 minutes to about 6
Your answer
Follow this Question
Related Questions
Does Unity support atomic counter? if does, is there example? 0 Answers
Cannot access render pipelines - missing from Package manager (Unity 2018.3.12f1) 2 Answers
Why my Shader Graph always purple? [SOLVED] 1 Answer
How to access vertex color in a code-based URP shader? 1 Answer
I would like to know how to make a tessellation shader with LightWeightRenderPipline(Unity2018.2.13) 0 Answers