SETUP
GUIDE

Add the compilation level in eight steps, then make the loading screen look like your game.

Written for Unreal Engine 5. Blueprint only, no C++ needed. Every step below has a screenshot with the exact thing to click highlighted in orange.

PART 1 · ADD THE COMPILATION LEVEL

The compilation level is a tiny level that only contains one actor. Your game starts in it, the shaders compile behind a loading screen, and then it opens your first real level.

1

Enable the plugin

Open Edit ▸ Plugins, search for ShaderCompilationScreen and tick the box. Restart the editor when it asks.

The Edit menu with Plugins highlighted
Edit ▸ Plugins
Plugins window with the plugin found and ticked
The plugin ticked in the Plugins window

The plugin also needs the Niagara plugin, which is enabled by default in Unreal Engine 5.

2

Show engine and plugin content

In the Content Browser open Settings and tick Show Engine Content and Show Plugin Content.

The plugin's blueprints and widget live in the plugin's own content folder. The Content Browser hides those folders until these two options are on.

Content Browser settings menu with both options ticked
Both options ticked
3

Find BP_ShaderCompiler

Open the plugin's Blueprints folder. The actor you need is BP_ShaderCompiler.

The folder tree can look a little different depending on where the plugin is installed. If you do not see it, click All at the top of the folder tree and type BP_ShaderCompiler into the search box. The search finds it wherever the plugin lives.

Content Browser showing the Blueprints folder with BP_ShaderCompiler
1
2
1 The plugin's Blueprints folder. 2 The BP_ShaderCompiler actor.
4

Create an empty level

Choose File ▸ New Level, pick Empty Level and press Create. Then save it with Ctrl+S and give it a name such as L_ShaderCompilation.

Empty matters: this level should contain nothing but the one actor you add next.

File menu with New Level highlighted
File ▸ New Level
New Level dialog with Empty Level selected
1
2
1 Pick Empty Level. 2 Press Create.
5

Drag the actor into the level

Drag BP_ShaderCompiler from the Content Browser into the viewport. It appears in the Outliner. Save the level again.

Where you drop it does not matter.

BP_ShaderCompiler dragged into an empty level
1
2
1 Drag BP_ShaderCompiler into the empty level. 2 It now shows up in the Outliner.
6

Pick the level to open afterwards

Select the actor. In Details set Open Level on Finish to the level your game should start in, for example your main menu.

When the compilation is done, the plugin opens this level. Leave Loading Widget on its default for now; you will replace it in Part 2.

Details panel of BP_ShaderCompiler
1
2
1 Open Level on Finish. 2 Loading Widget (leave the default for now).
Level picker with a search for 'start'
Type part of the level name to find it quickly
7

Make it the startup level

Open Edit ▸ Project Settings ▸ Maps & Modes and set Game Default Map to your compilation level.

Your packaged game now starts in the compilation level, and the plugin takes the player on to the level from step 6.

The Edit menu with Project Settings highlighted
Edit ▸ Project Settings
Maps and Modes settings
Game Default Map = your compilation level
8

Package and test

Package your game and run it. The first start shows the compilation screen with a progress counter, then opens your first level.

  • Test packaged builds. Shader compilation and caching behave differently inside the editor, so judge the result in a packaged game.
  • Simulate a player's first launch. Start the game with -clearPSODriverCache.
  • Compare with and without. Add -dpcvars=ShaderWarmup.Enable=0 to turn the compilation off.
  • See every hitch that is left. Add -LogCmds="LogPSOHitching Verbose" and read the log.

The compilation screen only appears again after a game update, a GPU or driver change, or a change of graphics settings, when Skip Repeated Compilation is ticked (see the settings table below).

PART 2 · YOUR OWN LOADING SCREEN

The loading screen is an ordinary widget. You can restyle it freely, because it only needs two numbers.

1

How the included widget works

The plugin ships W_ShaderCompilationProgress. It is a normal User Widget that reads two whole numbers from the Shader Warmup Subsystem.

BP_SHADERCOMPILERThe actor in your level. It creates the loading widget and adds it to the viewport.
→
YOUR WIDGETShows the progress. Reads the two numbers every frame.
←
SHADER WARMUP SUBSYSTEMGet Num Completed
Get Num Total

That is the whole contract. The actor does not pass anything to the widget. The widget asks the subsystem.

Hierarchy of W_ShaderCompilationProgress
What the widget is made of: a Canvas Panel with a Border, a Progress Bar and two Text blocks
The widget in a running game
How it looks in the running game
Part of the widgetWhat it does
BorderThe background panel.
ProgressBarIts Percent is bound to the function GetPercent: completed ÷ total.
Text “Performing Shader Compilation”Plain title text. Change it freely.
Text “512/1127”Its text is bound to GetText: completed, a “/”, then total.

Both bindings call one small helper, GetProgress. It returns Current and Target from the subsystem:

GetProgress function reading Get Num Completed and Get Num Total from the Shader Warmup Subsystem
GetProgress: Get Num Completed becomes Current and Get Num Total becomes Target

The progress bar's GetPercent divides one by the other. The counter's GetText joins them with a “/”.

GetPercent divides Current by Target
GetPercent: Current ÷ Target feeds the Progress Bar
GetText joins Current, a slash and Target
GetText: Current, “/”, Target feeds the counter text

Why bindings? The total can grow while the game is compiling, so the widget asks again every frame instead of reading it once. Keep that in your own widget: bind to the two numbers or read them in Event Tick.

To get the subsystem in your own graph, right-click an empty spot and search for Shader Warmup Subsystem. Then drag from it to Get Num Completed and Get Num Total.

2

Make a copy of it

Right-click W_ShaderCompilationProgress and choose Duplicate. Put the copy in your own Content folder and name it, for example, W_MyLoadingScreen.

Do not edit the original. It lives in the plugin folder, and plugin updates replace everything in that folder. Your copy is safe in your project and already has both bindings wired up.

Tip: select All in the folder tree and search for W_ShaderCompilationProgress to find it without browsing.

Content Browser search for W_ShaderCompilationProgress
Search finds the widget from the All root
Context menu with Duplicate highlighted
Right-click ▸ Duplicate
3

Change the look

Open your copy and restyle it in the Designer tab.

  • Replace the title text, fonts and colors.
  • Add your logo, a background image or an animation.
  • Restyle or replace the Progress Bar. For a counter-only screen, delete it.
  • Keep the two bindings (Percent on the bar and Text on the counter), or recreate them with the nodes from Part 2 · step 1.

Anything else is up to you. A widget that never reads the numbers is fine too, for example a plain image with a spinner.

The numbers are whole counts of work done and work in total, not percentages. Divide them if you want a percentage.

4

Hand your widget to the actor

Open your compilation level, select BP_ShaderCompiler, and set Loading Widget to your copy. Save the level.

Your widget now appears in the class list. The actor creates it and adds it to the viewport, and your widget shows the progress.

Details panel with the Loading Widget field
Loading Widget
Class list of widgets, the included widget at the bottom
Pick your copy from the list. The included widget is the one at the bottom here.

SETTINGS & TROUBLESHOOTING

Everything below is on the BP_ShaderCompiler actor, in the Details panel.

SettingWhat it does
Open Level on FinishThe level that opens when the compilation is done.
Loading WidgetThe widget that is shown while compiling.
Compile Materials / Material InstancesUntick to leave materials out.
Compile Niagara Systems / Cascade SystemsUntick to leave particle systems out.
Preload Static Meshes / Skeletal MeshesUntick to leave meshes out.
Error Causing Path ElementsAssets whose path contains one of these words are skipped. The list comes with DLSS and Streamline entered, because some third-party plugin content is known to crash during compilation. Add your own entries here.
Game VersionType your game's version. A new version makes the compilation run again.
Skip Repeated CompilationTick it to skip the screen on later launches. It runs again after a new Game Version, a different GPU or driver, or changed graphics settings.
The screen shows up on every launch.
Tick Skip Repeated Compilation and keep Game Version the same between launches. Without them, the compilation runs every time.
The screen never shows up.
Check that your compilation level is the Game Default Map (Part 1 · step 7) and that you are testing a packaged game. If you ticked Skip Repeated Compilation, a finished earlier run skips the screen; start with -clearPSODriverCache to see it again.
It opens the wrong level afterwards.
Select BP_ShaderCompiler in the compilation level and check Open Level on Finish. Save the level and package again.
I don't see the plugin's folders in the Content Browser.
Tick Show Engine Content and Show Plugin Content (Part 1 · step 2), or select All and search by name.
I edited the included widget and my changes vanished.
Plugin updates replace the plugin folder. Work on a duplicate in your own Content folder (Part 2 · step 2) and select it on the actor.
The progress counter's total changes while it runs.
That is expected. The total can grow while the game is compiling. Use the bindings from Part 2 so the bar and text follow it.