Breakdown 2 of 4

Optimisation pass

I profiled and optimised Project UMBRAE, and presented it as a case study at a profiling community event.

Overview

I was in charge of optimisation on Project UMBRAE. In pre-production I traced a GPU bottleneck in a single classroom and planned the level streaming that kept the house in budget. As the house was iterated on, weekly profiling caught problems as they appeared, including the item inspect render target. A final performance pass and a round of Lumen and mirror fixes then took the game to release.

Going in, my research was Reuter’s guide to profiling as a tech artist (Reuter, 2025), Oztalay’s talk on UE5 rendering performance (Oztalay, 2024), SimonDev on finding where the real cost is (SimonDev, 2024), and Cavanagh and Michaelides on automating performance capture (Cavanagh and Michaelides, 2025). From those, the plan was to produce data that could be compared across the whole project and review it every week, to catch bottlenecks while they were still forming.

Classroom bottleneck

In Week 2 of pre-production, our gameplay prototype level, an almost empty test level, ran at under 11 FPS on the PCs in one classroom, Winterfell. Using what I had learnt about telling CPU and GPU bottlenecks apart from Ben Cloward’s series (Cloward, 2025), I traced it to the GPU: the graphics queue was busy for 88.71ms a frame with no idle time, while the CPU sat at 14%.

The PCs in that room have a Quadro P400, an entry-level card with 2GB of VRAM, and Unreal’s volumetric clouds, lighting, post-processing and Temporal Super Resolution scale with the pixels on screen, so an empty level barely made them cheaper. The Quadro P400 also has no hardware ray tracing, which MegaLights (Epic Games, n.d.d) needs and Matty wanted for the lighting. When one of my tutors asked for data, I ran the full house in another classroom, Arrendale, and at home for comparison. We were then moved permanently into Arrendale, which ended the bottleneck.

Level streaming

I set up room-by-room level streaming over the Christmas holiday, while nothing depended on it yet. Every room has 2 sublevels: Gameplay for anything dynamic or interactable, and Environment for anything static. Because the Environment sublevels only hold static meshes, Unreal can instance them automatically, while the actors in the Gameplay sublevels are culled by distance instead.

Each room then got a Level Streaming Volume (LSV) (Epic Games, n.d.a) covering its own sublevels and any room visible from inside it. Unreal loads those while the player is in the volume and unloads everything else, so a floor the player can’t see costs no culling, memory or ticking. The aggressive culling meant props could be cluttered without going over budget, and having it early meant changes and adjustments were easy. I also took advantage of it to hide or show levels for the progress log, via the Cinematic Level Visibility Track property (Epic Games, n.d.b).

An overhead view of the house blockout in the editor, with the kitchen's Level Streaming Volume highlighted as a yellow box and the other rooms' volumes outlined in orange
The kitchen's LSV highlighted.

The item inspect render target

Item inspection, which Joel built, shows the item you’ve picked up through a render target. Every inspectable item in the level was writing to that render target every frame, at full resolution and format, and because the capture ran in a construction script it ran in the editor too, which made working in the level a problem as well. I didn’t know what was causing it, so I rolled back through the recent changelists as a binary search, then diffed the affected Blueprints to find the cause. I then reworked it, and together these changes were the biggest single performance gain of the project:

  • Resolution and format - The render target went from 1920x1080 in RGBA16f to 480x480 in RGBA8, which is 9 times fewer pixels at half the bytes each, so each capture went from 16.6MB to 0.9MB. This didn’t cause any noticeable visual regression.
  • Projection - Moving the capture from perspective to orthographic let the frame be used more effectively.
  • Lighting - The item has its own light channel and is lit only locally, by a rim light, which helped it stand out.
  • Capture rate - The capture mode was changed to Blueprint call only, and the new function only calls for a new capture if the mesh is moved.
  • Old captures - I removed old construction script captures that were still running on item Blueprints that weren’t inspectable at all.
A close-up of a black metal flashlight held up for inspection, its knurled grip and lens housing picked out by a rim light against a dim, out of focus storage shelf
The flashlight in item inspection.

Profiling with Jan’s community

Outside uni, I’m part of an optimisation community run by Jan Mróz, a graphics programmer at The Knights of U (Mróz, 2026), with regular calls on optimisation and profiling. When I brought up Project UMBRAE on one of the calls, people wanted to try it, so Jan and I set it up as a community optimisation challenge with the game as the case study. Members could play the shipping build, and open the editor project to take Unreal Insights and GPU captures.

For the event I built a performance free-cam mode, so everyone could capture the same views and compare them across machines. After Jan’s feedback I added a locked-off camera view and made the flashlight and the player toggleable to isolate variables, and everyone launched the game with the same script.

The player character seen from behind in a dark study, with a PERF CAPTURE key list in the top left (F6 pause, F7 fly cam, F9 trace, F10 bookmark, F12 cycle dev cameras, F flashlight, L main perf view, K player visible), frame, game, draw and GPU timings on the right with Frame at 38.63 ms, and a filtered timing graph against a 33.9 ms budget line
The performance free-cam mode.

The performance pass

Before the event, Jan went through a frame breakdown of the build with me, to find where the cost was going before anyone else started profiling it.

An NVIDIA Nsight frame capture timeline showing three consecutive frames of about 32ms each, with SceneRender at about 29ms and a MegaLights block of about 9ms inside each one, and an async compute queue below running DiffuseIndirectAndAO and Lumen screen probe gather
Jan's frame breakdown, before the performance pass.

Jan launched the event on the community from 14 to 28 March, with a profiling-ready build and deterministic benchmarks, and members profiled the game through the free-cam and sent back performance suggestions alongside general feedback on the game. Nikhil suggested the light cutoff, disabling Nanite and cutting back the volumetric fog, Malika suggested hair cards, and Emma gave general performance advice. Using their feedback and my own profiling, I did a performance pass in the week of Karl’s second showcase, recording each change’s GPU pass before and after.

A Skool community post by Jan Mróz titled 'Community Profiling Event: Project UMBRAE (RECORDING)', with the dates 14.03 - 28.03, a list of what members get, a profiling-ready build with deterministic benchmarks and the full Unreal Engine project, how the event works, 14 days to profile on your own and share findings followed by a live session to review them, thanks to Jamie Marland and the team, a link to the recording blacked out, and a row of slides starting with 'Community profiling event, Project UMBRAE'
Jan's post launching the event.
  • Lights - Any light further than 1,000 units from the view is disabled.
  • Nanite - Disabled on every mesh (Epic Games, n.d.e).
  • Hair - Swapped from strands to cards with a lower simulation quality, and the cinematic hair only switches on inside cutscenes.
  • Volumetric fog - Limited to 1,000 units at half quality, and the flashlight no longer affects it, which also got rid of a lot of trailing light.
Unreal's stat GPU overlay for the graphics queue, with a queue total averaging 14.02 ms, led by RenderDeferredLighting at 3.80 ms, MegaLights at 2.30 ms, Basepass at 1.32 ms and Shadow Depths at 0.98 ms, followed by Niagara, visibility, post processing, ray tracing, lights, Lumen reflections and volumetric fog
The GPU breakdown in game.

Turning Nanite on everywhere was originally my decision. The asset guide I wrote in pre-production says every mesh must be Nanite-enabled, and one of the default rules in Escape Asset Helper turns Nanite on for every static mesh, but profiling the finished house showed that was the wrong call for this project. The meshes weren’t dense or high-poly enough to justify Nanite’s flat base cost. Later I also capped every texture at 2K except walls, floors and large fixtures, which freed up VRAM with no visible loss at gameplay distances.

Lumen and mirrors

Lumen (Epic Games, n.d.c) needed a lot of work in a house with thin interior walls. Light leaked through them even after Charlotte extended them out, so I fixed it with 2 kinds of blocker. Shadow blockers sit inside the walls and floors everywhere and do the shadowing, which also stops the rooms around an unloaded room lighting up strangely from the missing geometry. Lumen blockers, masked boxes at zero opacity, cover the windows and anything else that shouldn’t cast a shadow, so they stop Lumen leaking light without blocking the direct light.

Bright magenta boxes stacked around the outside of the house walls in the editor, the invisible masked blockers
The blockers around the outside of the house, shown in magenta.

For the mirrors, I compared the reflection options while deciding on the portals, and went with planar reflections for cutscenes and Lumen screen space reflections for gameplay. This kept the performance and quality balanced, and limiting planar reflections to cutscenes meant culling could be even more restrictive there, to maximise the budget put into the reflection.

The bathroom's medicine cabinet mirror in gameplay, lit by the player's flashlight, with the reflection mostly lost in the glare and the tiled wall around itThe same bathroom mirror during the cutscene, a sharp planar reflection of the player character and a pale creature behind them, with red growth spreading across the reflected ceilingGameplayCutscene
The bathroom mirror in gameplay and in its cutscene.

Problems and fixes

  • Falling through unloaded rooms - Some of the LSVs used complex collision shapes, which Unreal refused to work with, so the player could fall through the floor. I switched every volume to simple shapes, splitting it into multiple volumes where needed to fit the shape, and made them bigger so they overlap to stop this.
The whole house in the editor covered by large overlapping orange Level Streaming Volumes, simpler and bigger than the room outlines underneath
The final volumes, simpler, bigger and overlapping.
  • Gameplay resetting on load - Gameplay actors were reinitialised every time their level loaded, which broke their state. I made the gameplay levels always loaded and culled the actors inside them by distance instead. Pickups also fell through floors that had unloaded underneath them, so I turned off their gravity as items didn’t need it.
  • White spheres from lights - A light with a soft radius of 0 rendered a white sphere that only showed up in reflections. Giving the lights a tiny soft radius removed this.
  • Pink light from the Lumen blockers - The blockers still had their magenta debug material, and although they were invisible, Lumen still saw that colour and bounced pink light into reflections. Switching them to a black material fixed it.

Reflections

My plan at the start was comparable data, reviewed every week. I wasn’t able to be as consistent as I would have wanted, but I was able to use Unreal Insights and gather deterministic profiling data. I really enjoyed diving into this more and learning so much on the side with Jan’s community.

Sources