I’m using UE 4.19 and everytime I make a change on a material (It can be a simple color or texture change) the shaders start compiling in a slow way. I tried doing the same action in 4.18.3 and the changes on materials are almost instantaneous.
Does anyone know if the new version is having some problems?
Hi Tabacudo, This is indeed true.
My UE 4.19 took over one hour to compile shaders, for an Android Launch
My PC was under full stress for the entire duration.
I request the development team to look into this issue as well.
I was able to compile. But still, it didn’t help me.
I tried using the code, but no change was made. The .exe runs but it seems the engine always try to keep the original priority, and the fix has to keep trying to change it. I haven’t noticed big changes even with the fix cause Unreal keeps changing the priority and shaders keep going slow.
The fix’s logs became insane, lol.
I downloaded the version 4.18 again, since I’m just working with render by now. Hope it gets fixed soon.
This trick will only work if u have a single core CPU or if UE4Editor.exe is eating and up more than 1/(Total cores if ur CPU). For my UE4Editor and 3 ShaderCompiler exe is taking up 25% of all CPU’s so no performance gain.
I’ve found that disabling XGE shader compilation really helps with stability and percieved speed. With default settings, I save a material and UE4 locks up for 5 minutes, regardless of complexity, it also spawns very few shader compiler threads.
Disabling XGE stops the lockup from happening and creates as many shader compilers as it can to use up most of my CPU.
Check the ConsoleVariables.ini for these lines “; r.XGEShaderCompile is now enabled by default in source. Uncomment to disable XGE shader compilation.
r.XGEShaderCompile = 0”
Can confirm this. Just tested it on the free Fantasy and Medieval Architecture Kit pack from the Marketplace. 3 mins to compile materials when this line is commented and 1 min when it is uncommented. Also the Material Editor is more responsive, no more compiling hundreds of shaders for the simple changes and no more annoying sound signal. Need to test it more but for now it works.
I’m incurring in the same problem. I’ve started study game programming from less than 1 month, so I’m not so good with programming at the moment and I don’t know what I have to do to uncomment that line or where I can find it. Please, can you describe me the process to follow to solve the problem?