Search Unity

Question Very long compilation time (Shader Graph / HDRP)

Discussion in 'Shader Graph' started by GalaadMoutoz, Nov 30, 2019.

  1. GalaadMoutoz

    GalaadMoutoz

    Joined:
    Apr 6, 2018
    Posts:
    6
    Hi,

    I've upgraded to 2019.3 and started to work with Shader Graph.

    I tried to make a few simple shaders that I had previously done by code before, and it's been difficult to progress because of the very long compiling time, even with small simple shaders (less than 30 nodes).

    Maybe shader graph is compiling a lot of shader variants, although I don't need any (I never used them in my previous hand coded shaders) : inspector says 297 for a small unfinished shader.
    I noticed it was long when I connected / deconnected a node linked to the master node.

    Is there a solution to stop compiling all those shader variants and/or make shader graph compilation faster ?

    I'm sorry to come complaining about this but it makes the whole iteration process even more tedious than writing them by hand, which of course isn't the point.

    Thank you anyway for those great features. :)
    Have a nice day,
    Galaad
     
    Bastienre4 likes this.
  2. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    I'm also interested for insights on this! :)
     
    Olmi likes this.
  3. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Agree! I put this as one of my top 5 annoyances in the survey they put out... the long compile times when connecting/disconnecting nodes linked to the master node, as well as when renaming variables.