Skip to content

Unreal Engine Optimization Checklist: 50 Ways to Increase FPS

A practical, profile-first checklist for Unreal Engine 5: 50 concrete steps across Nanite, LODs, HLOD, World Partition, Virtual Shadow Maps, instancing and shaders to find and fix what is really costing you frames.

0
A frame from the Unreal Engine 5 reveal demo, the first public showing of Nanite

Epic Games

Low frame rate in Unreal Engine 5 is rarely caused by one big mistake. It is usually twenty small ones: a masked foliage card here, a shadow cache that never stays valid there, ten thousand actors that should have been instances. This checklist collects 50 concrete things to check, grouped by system, so you can work through a project the same way every time.

One rule before you start: measure, change one thing, measure again. Every tip below has a cost or a trade-off, and some will do nothing for your particular bottleneck. Settings and console variables are from Epic's UE5 documentation; names occasionally change between engine versions, so check them against the version you ship on.

Measure first (1–5)

  • 1. Find out which thread is the bottleneck. Type stat unit in a running game. It shows Frame, Game, Draw (render thread) and GPU times. Your frame time follows the slowest of them, so optimizing the GPU when the Game thread is at 25 ms gains nothing.
  • 2. Break the GPU frame down. stat gpu gives a live per-pass view (shadows, Lumen, base pass, translucency, post-processing). For a one-frame snapshot use ProfileGPU (Ctrl+Shift+,). Epic notes these counters can be misleading when you are CPU-bound, so confirm with step 1 first.
  • 3. Record a trace with Unreal Insights. For hitches and CPU work, a trace shows every thread frame by frame. Launch with -trace=cpu,gpu,frame (add more channels as needed) and open the file in Unreal Insights.
  • 4. Profile a packaged build, not the editor. The editor adds its own overhead. Use a Development or Test build, a fixed camera path or a saved benchmark spot, and the same hardware every time so numbers stay comparable.
  • 5. Do the screen-percentage test. Run r.ScreenPercentage 50. If FPS jumps, you are pixel-bound (materials, shadows, post-processing) and an upscaler like TSR will help. If nothing changes, your cost is elsewhere: geometry, draw calls or the CPU.

Nanite settings (6–13)

Nanite removes most traditional polygon budgets, but it is not free. Its cost moves to overdraw, programmable materials and the meshes it handles badly.

  • 6. Enable Nanite on opaque, high-poly static meshes. Continuous solid surfaces (rocks, architecture, kitbashed sets) benefit most. Nanite geometry also renders far more cheaply into Virtual Shadow Maps, which is a reason to enable it even on medium-poly meshes.
  • 7. Prefer real geometry over masked cards for foliage. Masked materials cost more than opaque ones in Nanite, and masked-out pixels cost almost as much as visible ones. Epic warns card-based foliage can render slower with Nanite than without, so test both. Turn on Preserve Area for foliage meshes (only foliage).
  • 8. Keep World Position Offset under control. WPO runs per vertex, so dense Nanite meshes pay more for it. Set Max World Position Offset Displacement in the material so Nanite's per-cluster culling stays accurate, and use the component's World Position Offset Disable Distance to stop the animation far away.
  • 9. Check the Nanite Overdraw view. Brighter means more overdraw. Avoid closely stacked surfaces right under the visible layer: Nanite cannot tell which is on top and draws both. Geometry buried deep inside other meshes is culled cheaply and is mostly free.
  • 10. Check the Nanite Triangles view for faceting. If a mesh has close to twice as many vertices as triangles (or more), it usually has unsmoothed or split normals. Fix them in your DCC tool; it costs memory and performance.
  • 11. Be careful with aggregate geometry. Hair, grass and dense leaves defeat Nanite's LOD and occlusion culling, so triangle counts stay high at distance. They can be slower than a solid mesh with the same triangle count. Profile them separately.
  • 12. Keep Nanite tessellation modest. If you use displacement, keep Magnitude as small as possible, use the 0–1 range of the Displacement output, and set Start/End Fade Size (Pixels) so it fades out with distance. Large displacement is especially expensive with Virtual Shadow Maps.
  • 13. Mind the fallback mesh. Nanite meshes keep a simplified fallback used where Nanite is not (ray tracing, some collision and platforms without Nanite support). Tune the fallback settings in the mesh's Nanite Settings so it is detailed enough, but not a second full-resolution copy.

LODs (14–19)

Not everything can be Nanite: skeletal meshes on many projects, translucent meshes and anything targeting mobile still rely on classic levels of detail.

  • 14. Give every non-Nanite mesh a LOD chain. In the Static Mesh Editor, set Number of LODs under LOD Settings and click Apply Changes to generate them automatically, then hand-fix the ones that pop.
  • 15. Use LOD Groups. Assigning meshes to a LOD Group (small prop, large prop, foliage…) gives consistent reduction and screen sizes across the project instead of per-asset guesses.
  • 16. Tune screen sizes with the LOD Coloration view. Switching too late wastes triangles; switching too early causes visible popping. Watch the colours while moving the camera at gameplay speed.
  • 17. Reduce skeletal mesh LODs aggressively. Lower LODs can drop bones as well as triangles, which cuts animation cost, not just rendering. Crowds and background characters benefit the most.
  • 18. Stop animating what nobody sees. On skeletal mesh components, set Visibility Based Anim Tick Option to only tick the pose when rendered, and enable Update Rate Optimizations so distant characters animate at a lower rate.
  • 19. Cull small things at distance. Use Cull Distance Volumes or each component's Max Draw Distance for small props, decals and lights that contribute nothing past a certain range.

HLOD (20–24)

Hierarchical LOD replaces whole groups of distant actors with a few cheap proxies, cutting draw calls in large worlds. In World Partition, HLODs are set up per HLOD Layer.

  • 20. Put actors into HLOD Layers. Only actors assigned to an HLOD Layer with Mobility set to Static are included. Movable actors are silently left out.
  • 21. Use the Instancing layer type for trees and foliage. It replaces meshes with Instanced Static Mesh components at their lowest LOD, which suits imposter-style content.
  • 22. Use Merged Mesh or Simplified Mesh for buildings and terrain features. Merged combines meshes into one proxy; Simplified also reduces it. The Merge Distance proxy setting closes gaps such as doors and windows that should not be visible from far away.
  • 23. Make HLODs cheap themselves. Enable Generate Nanite Enabled Mesh where it fits, and disable Allow Distance Fields if the proxy is only ever seen at distance to save memory. Avoid tiny sampling distances on large geometry: Epic notes they have a very high memory cost.
  • 24. Build HLODs automatically. Use Build > Build HLODs in the editor, or run the WorldPartitionBuilderCommandlet with -Builder=WorldPartitionHLODsBuilder on a build machine so they never go stale. Each layer has its own Cell Size and Loading Range: tune when HLODs take over.

World Partition (25–30)

  • 25. Tune Cell Size and Loading Range. The runtime grid decides how much of the world is loaded around each streaming source. A loading range bigger than you need keeps thousands of extra actors in memory and in the scene.
  • 26. Use more than one runtime grid when content differs. Large landmarks can stream from far away on one grid while small props use a smaller grid with a short loading range.
  • 27. Keep "Is Spatially Loaded" on for almost everything. Actors with it turned off are always loaded. Reserve that for game managers and things that truly must exist everywhere.
  • 28. Use Data Layers for content that is not always needed. Interiors, quest states, seasonal variants or debug content can live in Data Layers that you activate only when required.
  • 29. Limit streaming sources. Each player controller and World Partition Streaming Source component loads its own area. Extra sources (cameras, AI, cinematics) multiply what is in memory.
  • 30. Visualize streaming at runtime. wp.Runtime.ToggleDrawRuntimeHash2D draws the grid and loaded cells on screen, which quickly shows a loading range that is far larger than the camera ever needs.

Virtual Shadow Maps (31–38)

Virtual Shadow Maps give film-quality shadows, and their performance depends almost entirely on caching. Most VSM problems are cache invalidation problems.

  • 31. Make shadow casters Nanite. Epic recommends Nanite wherever it is supported because non-Nanite geometry is much more expensive to render into VSMs. Non-Nanite meshes that remain need full LOD chains.
  • 32. Find what keeps invalidating the cache. Use the Virtual Shadow Map view mode or r.Shadow.Virtual.Visualize cache, plus ShowFlag.VisualizeShadowCasters 1. Moving lights invalidate everything; moving casters invalidate the pages under their bounds, so keep bounds tight.
  • 33. Set Shadow Cache Invalidation Behavior per object. The default (Auto) invalidates on WPO and transform changes. Rigid ignores WPO-driven invalidation and Static also ignores transform changes. Use them carefully: if such an object really moves, the shadow will be wrong.
  • 34. Tame WPO for shadows. Swaying foliage re-renders its shadow pages every frame. Combine World Position Offset Disable Distance, Max World Position Offset Displacement and displacement fading so only nearby foliage animates in the shadow map.
  • 35. Reduce softness before reducing rays. Smaller Source Radius or Source Angle makes shadows cheaper to project. Only then lower r.Shadow.Virtual.SMRT.RayCountDirectional and r.Shadow.Virtual.SMRT.RayCountLocal for low scalability settings.
  • 36. Use resolution bias for lower quality tiers. r.Shadow.Virtual.ResolutionLodBiasDirectional and ...ResolutionLodBiasLocal trade sharpness for speed (each +1 halves resolution). The ...Moving variants let moving lights use lower resolution than cached ones.
  • 37. Be strict with shadow-casting local lights. Many small shadowed lights are still costly. Turn off dynamic shadows on small or distant lights and use Contact Shadows instead, and keep attenuation radii as small as the scene allows.
  • 38. Watch the page pool and small objects. Checkerboard or missing shadows mean r.Shadow.Virtual.MaxPhysicalPages ran out: reduce resolution or shadowed lights, or raise the pool. r.Shadow.RadiusThreshold culls tiny non-Nanite casters on the CPU.

Instancing (39–43)

  • 39. Use instanced meshes for anything repeated. Instanced and Hierarchical Instanced Static Mesh components (and the Foliage tool, which uses them) draw thousands of copies with a handful of draw calls. Check the effect with stat rhi.
  • 40. Turn repeated modules into Packed Level Actors. A building assembled from 300 kit pieces becomes a few instanced components instead of 300 actors, which helps both rendering and the CPU.
  • 41. Let PCG spawn instances, not actors. Procedural scattering of rocks, debris and vegetation should output instanced meshes. Thousands of individual actors bring per-actor CPU, memory and streaming cost even when Nanite renders them efficiently.
  • 42. Use Per Instance Custom Data instead of unique materials. Colour tints, wear and variation can be driven per instance from one material, so instances stay in the same batch.
  • 43. Count components, not just triangles. Nanite handles geometry well, but every actor and component still costs CPU time for ticking, culling and streaming. Merging and instancing reduce the Game and Draw thread times from step 1.

Shader optimization (44–50)

  • 44. Start with the Shader Complexity and Quad Overdraw views. Red and white areas show expensive pixels. Large screen areas covered by heavy materials are the first targets.
  • 45. Prefer opaque over masked over translucent. Translucency is shaded for every layer, so overlapping particles and glass multiply cost. Shrink particle sprites, cut overdraw and avoid full-screen translucent planes.
  • 46. Use Material Instances and keep static switches in check. Instances avoid recompiling; every static switch combination is another shader permutation to compile, store and load. Use the Quality Switch node to give low scalability settings a cheaper path.
  • 47. Cut texture samples and memory. Pack masks into channels of one texture, reuse shared samplers and size textures for how big they appear on screen. stat streaming shows whether the texture pool is over budget, which causes blurry mips and stalls.
  • 48. Move per-pixel math to vertices. Customized UVs calculate UV math once per vertex instead of per pixel, a cheap win for tiling and panning materials.
  • 49. Remove shader compilation hitches with PSO caching. From UE 5.3, PSO precaching compiles pipeline states in the background before they are needed. For anything precaching misses, record a bundled PSO cache. Use loading screens to wait for outstanding compiles.
  • 50. Re-measure and set a budget. Go back to step 1 after every change, write down the result, and give each system a millisecond budget (for example 4 ms shadows, 2 ms translucency at 60 FPS). A budget turns optimization from guesswork into a checklist you can actually finish.

Quick reference: console commands from this checklist

; find the bottleneck
stat unit
stat gpu
ProfileGPU
stat rhi
stat streaming
r.ScreenPercentage 50

; world partition streaming
wp.Runtime.ToggleDrawRuntimeHash2D

; virtual shadow maps
r.Shadow.Virtual.Visualize cache
ShowFlag.VisualizeShadowCasters 1
r.Shadow.Virtual.ResolutionLodBiasDirectional 1
r.Shadow.Virtual.SMRT.RayCountDirectional 4
r.Shadow.Virtual.MaxPhysicalPages 4096

Values in the last block are examples to experiment with, not recommended defaults. Put the ones you keep in your scalability settings or device profiles instead of typing them every session.

Sources

Keep reading

Comments

0

No comments yet — be the first.

More from Tutorials

See all