The shader compiler in 4.22 is very slow

The engine is way slower than it should be at compiling shaders.

The compiling is very slow on any material, even one from a blank/template project.

The problem appeared with version 4.22. A blank/template project created with the 4.17 engine version won’t have the issue. This is highly unlikely to be a a hardware problem. The compiling on 4.17 was pretty fast.

Another user using the same project and the same engine version (4.22) on another computer doesn’t seem to have the issue.

What’s very strange is that the engine is not only very slow at compiling shaders, but it also adds the shaders to the queue of shaders to be compiled whenever the material is changed, instead of restarting the queue. Simply changing the value of a constant or variable in a material doesn’t reset the compiling time, it adds the amount to the number already present. The “shaders compiling” counter can easily add up to over 10 000 by rapidly changing the value of a constant in a moderately simple material. There is no way this is intended. In the 4.17 engine, the counter resets when a value is changed.

If anyone has a clue it’d be very nice i’m stuck with the same problem :frowning:

Same problem here. i7-9700K 3.60GHz GeForce RTX 2080

Removing IncrediBuild from the computer returned the compile speed to normal. A good enough fix until this issue is resolved.

Worked for me. Thx!

Hi, I have the same problem but I couldn’t find IncrediBuild installed on my laptop. Very long updating times despite high specs (i7 CPU, 16GbRam, 2080rtx). help :confused: