HDRP/Lit Forward takes ages.

What’s causing my build time to take so long whenever I change a few graphical settings? It’s been 6 hours already. My PC is quite new, and I am running the project on a SSD.

I am using Unity 2023.1.0f1

9133954--1268287--igfsdmage.png

That’s a lot of shader variants used. Check your:

  • Graphics settings, make sure lightmapping variants that aren’t used - aren’t enabled. Same goes for the fog.
  • Check your materials. Disable features you don’t actually need or can be sacrificed.
  • Do not use multiple quality HDRP presets. Each will be loaded into VRAM and it will explode. Less shader variants as well.
  • Use something like Shader Control to figure out what shader variants being built.