Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feedback (7.0) New particle shader has a lot of variants and they slow down the build
#1
It doesn't seem to be the case for Obi 6.x. In 7.0 there is a new particle shader built with Shader Graph. I'm not against Shader Graph, but this one shader alone takes 90s to compile. Considering it's something not shown in the game usually, that's 90s wasted. Is it possible to work around it?

Also my project doesn't has HDRP, so it shows this "unknown" target. But when I delete it the whole shader gets broken:

   

(not sure if it's related to the compile time tho)
Reply
#2
It's getting quite unbearable at this point. By adding Obi 7.0 RC to a blank project, the build time goes from several seconds to several minutes.

The stupidest part (probably Unity's fault) is that built-in shaders take the most time to compile, but my project doesn't even use built-in pipeline.
Reply