Dual Xeon - 40 Cores. Painfully Slow Shader Compiling.

Im having extremely slow shader compilings on these latest versions of UE4. A compile of 5000 takes me about 15 minutes. Moreover when i edit any parameter in the material editor, the compiler starts compiling. and any other change just adds and increases the number to compile. Its not possible to work like this in any efficient way.

Please watch this screen recorded video as its self explanatory -

Any suggestions on how to fix this are welcome. Ive searched all over but cant find any viable answer, or barely anyone havign similar issue. Bare in mind that i did not have this issue on previous versions. Ive also tried removing and re-installing UE. Building from source (v4.19 - 4.20 - 4.21) with no improvements. Thank you for reading.

Ok, I finally figured it out. It was a software called Incredibuild that was slowing down the compiler.
I installed it at some point as Visual studio was claiming it needed it to build UE4… (bare in mind im not a programmer so i blindly follow instructions and follow error messages)

So that software has just been sitting on my computer. However when i was compiling, i checked the processes and incredibuild was running under UE4. Moreover it seemed to be using just one core. So i uninstalled it and now everything is smooth again. Glad i managed to resolve it, but also cursing incredibuild for behaving in such a way. really wasted loads of my time this past week.

  • To the UE devs, id suggest some kind of notification when a application outside of UE4 is running things for or instead of your engine. (not sure this is the right way, again… im not a programmer)

  • To the incredibuild team… wtf?

  • To anyone else… hope this prevents you from wasting time on any similar issue.

Ta.

2 Likes

Thanks for posting this! I suspected it was Incredibuild doing this. I uninstalled it and I’m flying again when it comes to shader compile times.
I agree that there should be some kind of notification regarding Incredibuild.

Your most welcome, im happy that the post helped! And glad you agree that other programs should not be able to take over tasks performed by UE without at least a notification.

I want to add some info: incredibuild does slow down UE4 shader compilation in 4.22 at least. If it is installed via Visual Studio, it has to be uninistalled via Visual Studio as well. If you just use Add or Remove Programs, it will reinstall itself.

Ohhhhh! Thank you for your post, this saved my life crunching!

OMG THANKS!!! This is a major bug @anonymous_user_98e98e9a . Please find a wait that doesn’t happen to user, just lost a couple of hours today, trying to figure out what was going on. Tried to uninstall programs, cleanup unreal versions, modified config files. I’ve realized unreal was getting very slow in the compiling since a couple of weeks. Thanks for the cue !