Lumen uses a Surface Cache to store information about scene surfaces for lighting calculations. Card coverage, capture work, material complexity, and cache resolution are useful areas to inspect when profiling a Lumen scene.
Separate card placement from runtime captures
Epic’s Lumen technical documentation distinguishes offline card placement for meshes from the surface information captured at runtime. The original post’s description of cards being generated entirely in real time blurred that distinction.
The documented default is up to 12 cards per mesh. Max Lumen Mesh Cards can improve coverage for complex meshes, but increasing it also adds work. Inspect coverage before changing it.
Inspect coverage and updates
r.Lumen.Visualize.CardPlacementdisplays card placement.- View Mode → Lumen → Surface Cache highlights coverage. Pink regions lack Surface Cache coverage.
r.LumenScene.SurfaceCache.LogUpdateswas shared as a way to inspect updates in the author’s engine build.r.Lumen.Visualize 22was shared for examining card-sharing groups.
Check that diagnostic commands exist in your engine version and confirm their meaning before interpreting the output. Visualization modes and implementation details can change.
Review materials and shared captures
Where available, Compatible with Lumen Card Sharing is an option to investigate for compatible material instances. Validate the lighting result rather than assuming visually similar instances can safely share captured data.
The RayTracingQualitySwitchReplace material node can simplify a material’s Surface Cache capture path. Compare the simplified lighting and reflections with the original material; the appropriate simplification depends on which details affect the result.
Adjust capture work and resolution
Pavel Ksenofontov shared the following console variables as tuning points:
| Variable | Area to investigate |
|---|---|
r.LumenScene.SurfaceCache.CardCapturesPerFrame | Capture work scheduled per frame |
r.LumenScene.SurfaceCache.CardCaptureRefreshFraction | Refresh work for existing captures |
r.LumenScene.SurfaceCache.CardMaxResolution | Per-card resolution budget |
r.LumenScene.SurfaceCache.AtlasSize | Surface Cache atlas allocation |
Query the values in the engine build you ship. The original post’s numerical defaults are not retained as version-independent settings.
Reduce one budget at a time and compare frame time, coverage, reflections, and lighting during camera movement. Lower refresh rates may leave changing surfaces out of date; smaller resolution or atlas budgets can reduce quality. Keep changes only when the measured saving is acceptable for the scene.
Reference screenshots
