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 · THE LEVEL
PART 2 · THE LOADING SCREEN
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.
Enable the plugin
Open Edit ▸ Plugins, search for ShaderCompilationScreen and tick the box. Restart the editor when it asks.
The plugin also needs the Niagara plugin, which is enabled by default in Unreal Engine 5.
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.
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.
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.
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.
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.
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.
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=0to 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.
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.
Get Num Total
That is the whole contract. The actor does not pass anything to the widget. The widget asks the subsystem.
| Part of the widget | What it does |
|---|---|
| Border | The background panel. |
| ProgressBar | Its 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:
The progress bar's GetPercent divides one by the other. The counter's GetText joins them with a “/”.
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.
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.
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.
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.
SETTINGS & TROUBLESHOOTING
Everything below is on the BP_ShaderCompiler actor, in the Details panel.
| Setting | What it does |
|---|---|
| Open Level on Finish | The level that opens when the compilation is done. |
| Loading Widget | The widget that is shown while compiling. |
| Compile Materials / Material Instances | Untick to leave materials out. |
| Compile Niagara Systems / Cascade Systems | Untick to leave particle systems out. |
| Preload Static Meshes / Skeletal Meshes | Untick to leave meshes out. |
| Error Causing Path Elements | Assets 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 Version | Type your game's version. A new version makes the compilation run again. |
| Skip Repeated Compilation | Tick 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
-clearPSODriverCacheto 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.