UE5 How To Speed Up “Compiling Shaders”

Advertisement

If your computer is taking too long compiling shaders, try these tweaks that assign more CPU power to compilation. Unreal Engine by default sets shader compilation priority to low. 

Summarised Solution

  1. Add ShaderCompileWorker.exe to antivirus exclusions or temporarily disable real-time scanning.

  2. Increase shadercompileworker.exe priority in task manager or engine config files

Full Solution Steps

Antivirus Exclusions

We need to exclude the process shadercompilerworker.exe from the antivirus real-time scanner. If you look at the task manager while compiling shaders in UE5, you may notice that your antivirus is using a lot of CPU power or actively scanning. This shows it’s interfering with the process and thus slowing it down. How to exclude processes depends on your antivirus program so this tutorial will focus on Windows Defender.

  1. Open windows defender
  2. Click Virus & Threat Protection
  3. Under Virus & Threat Protection Settings, Click “manage settings”
  4. Scroll down to Exclusions and select “Add or remove exclusions”
  5. On the next window select “Add an Exclusion” then choose “Process”
  6. Under process name type “ShaderCompileWorker.exe”
  7. You can also add another process for “UnrealEditor.exe”
Add Unreal ShaderCompileWorker to antivirus exclusions

Increase Process Priority

A temporary solution is to do this in the task manager while the process is running. We prefer a permanent fix so follow these steps to increase shadercompileworker.exe priority for all future shader compilation.

  1. Navigate to the path C:\Program Files\Epic Games\UE_5.0\Engine\Config and open BaseEngine.ini.
unreal engine baseEngine.ini config file
  1.  Search for WorkerProcessPriority and set its value to 0, which is normal. By default, it’s set to -1, which is below normal.

This should be enough to see a drastic change. All your future shader compilation tasks should be at least 5x faster than before.

If you want an even bigger boost and you have a lot of CPU cores, you can change the variable; PercentageUnusedShaderCompilingThreads , to a lower value. A lower number or percentage means unreal engine should use more  CPU cores when compiling shaders.

5/5

Gamechanger plugin for notehighway rhythm games and music visualizers

5/5

Add Text and 2D UMG widgets to Level Sequences

Consider investing in some of our plugins. They might save you some time.  Also helps supports these tutorials.

Instantly get access to our plugins like Blender Curves Importer and UMG Cinematics and more when  you support us on Patreon!

 Join Us On Discord For More Daily Tips!