skip to content

How would you choose how a game's indirect light is produced (baked, run-time probe updates, screen-space or voxel GI) when it has a day-night cycle and destructible buildings?

level: principalimportance: should knowfreq 32%

answer

  1. start from what changes
  2. moving sun versus moving walls
  3. world-space versus screen-space data
  4. layers and fallbacks per tier
  5. bake time is a production cost

basics

~20 s

Start from what changes: static light and geometry can be baked cheaply, a moving sun needs relightable or run-time-updated probes, and destruction favours run-time probes, voxel GI or a screen-space layer. Then fit per-tier budgets, memory, leak risk and bake iteration time.

solid answer

~50 s

I start with what changes at run time. If lighting and geometry are static, baked lightmaps on static surfaces plus baked irradiance and reflection probes give the best quality per millisecond, paid for in bake time and memory. A **day-night cycle** breaks pure baking: the options are baking a few key times and blending, precomputing light transport so probes can be relit as the sun moves, or updating probe volumes at run time a slice per frame, with lag and an ongoing cost. **Destruction** breaks anything precomputed against the geometry, which pushes toward fully dynamic layers: **voxel GI** (world-space and sees off screen, but coarse, memory-hungry and leaky at thin walls) or **screen-space GI** (detailed but blind off screen). The usual answer is layered: probes everywhere, screen-space detail on top, a fallback chain per hardware tier. I settle leak tolerance with art and bake times with production.

go deeper

for a junior

Recall the main families of non-traced indirect light, baked data, probes, screen-space and voxel techniques, and that each assumes something about what stays still.

for a middle

Explain what each family can and cannot react to, such as a moving sun or a wall that breaks, and what each costs per frame and in memory.

for a senior

Show you can make one approach work in production: amortised probe updates, leak control, fallbacks for screen-space misses, and debug views that make failures visible.

for a principal

Own the choice: map content needs to a layered approach per hardware tier, weigh bake iteration time against run-time cost, and set the rules artists build levels by.

## The decision How the game's indirect light is produced is a project-wide call. It shapes level-building rules, the bake pipeline, memory, the frame budget, and how much art time goes into fighting artefacts. There is no single right answer; it follows from **what changes at run time** and on which hardware. In the scenario, the sun crosses the sky over a day, and the walls of the timber hall can be blown open, letting courtyard sunlight pour in. ## What each approach handles | Approach | Moving sun | Destruction | Run-time cost | Main failure | |---|---|---|---|---| | Baked lightmaps plus baked probes | only by blending several bakes | no | lowest | stale light, long bakes | | Probes relit from precomputed transport | yes | no, transport assumes fixed geometry | low to moderate | wrong after geometry changes | | Probes updated at run time | yes, with lag | partly, if captures and visibility update | grows with probes updated per frame | lag, leaks, update hitches | | Screen-space GI | yes | yes | moderate, per pixel | blind to anything off screen | | Voxel GI | yes | yes, after revoxelising the change | high in memory and time | coarse, leaks through thin walls | Hardware ray tracing is another dynamic option on capable tiers, with its own design and budget. A common form of **voxel GI** turns the scene near the camera into a 3D grid, often nested levels of detail that follow the camera, stores lit radiance and opacity per voxel, and gathers bounce light by marching cones through progressively coarser levels of that grid. **Screen-space GI** marches the depth buffer like screen-space reflections, gathering bounce light from lit pixels already on screen. ## Questions that decide it - **Does the sun move, and how fast?** A slow day cycle tolerates seconds of lag in probe updates; a switched-off chandelier or a lightning flash does not. - **What can break?** If a hall wall can be blown open, anything precomputed against that wall is wrong afterwards. - **How big is the world?** Probe grids and voxel volumes grow with volume; open worlds need cascades around the camera or sparse placement. - **Which hardware tiers ship?** A low tier may carry only baked data and probes; a high tier adds screen-space or voxel layers. - **How long do bakes take?** A bake that blocks lighting artists for hours on every iteration is a production cost that can outweigh run-time savings. - **How tolerant is the art direction** of leaks, noise and lag? ## Amortising run-time probe updates When probes must follow the sun, the work is spread over frames: 1. Set a per-frame budget, counted in probes updated as well as in milliseconds. 2. Prioritise probes near the camera and in view; refresh the rest round-robin. 3. Relight a stored capture of each probe's surroundings (albedo, normal and depth per direction) instead of re-rendering the scene, then project the result into the probe's coefficients. 4. Blend each new value into the old one with a hysteresis factor, so changes fade in instead of popping, at the price of lag. 5. Raise priority for a region where something sudden happened, such as an explosion. As the scenario's figure: refreshing 1,000 of 131,072 grid probes per frame needs 132 frames for a full pass, about 2.2 seconds at 60 Hz. That is fine for a slow sun and too slow for a wall blown open, unless that region jumps the queue. A stored capture of a wall that no longer exists is also stale, so destruction must invalidate captures and visibility data too. ## Layering and tiers - A probe layer gives every object some indirect light everywhere, including off screen. - Screen-space GI and screen-space reflections add near-field detail where the camera can see the sources. - Reflection probes and the sky catch what the screen-space layers miss. - Each tier keeps a coherent fallback chain, and the low tier is designed, not merely the high tier with features switched off. ## Making the choice stick - Write the level-building rules that follow from it: wall thickness, a probe volume per room, where destruction is allowed. - Ship debug views of probes, weights and screen-space confidence so artists can see failures themselves. - Budget the bake farm or the run-time cost explicitly, and revisit the choice when content scale or target hardware changes.

  • The sun moves continuously; how do you keep run-time probe updates inside a fixed budget?
    Fix a per-frame budget in probes and milliseconds, and spend it on probes near the camera and in view first, the rest round-robin. Relight a stored capture of each probe's surroundings instead of re-rendering the scene, and blend each update into the old value so changes fade in. A slow sun hides seconds of lag; sudden events need a priority boost for the affected region.
  • When would you choose voxel GI over screen-space GI for a game with destructible buildings?
    When bounced light must come from things the camera cannot see, such as a sunlit courtyard behind the player lighting the hall through a fresh hole. Voxel GI keeps a world-space volume, so it survives the camera turning; screen-space GI knows only what is on screen. You pay in voxelisation time, memory and coarse, leak-prone results at thin walls, so it suits a high tier or a coarse far-field layer.
  • What do you ask the art and production teams before committing to fully baked indirect light?
    How often lighting or level geometry changes after a bake, how long a full bake takes and who waits on it, whether thin-walled interiors dominate, and how much lag or noise they would accept from dynamic alternatives. If content changes daily and bakes take hours, iteration cost can outweigh the run-time savings.

  • Fully baked lighting supports a day-night cycle at no extra cost.
  • Screen-space GI alone can light a whole game without a fallback.
  • Voxel GI cannot leak light because it works in world space.
  • One GI method should ship unchanged on every hardware tier.
  • Run-time probe updates are free once the probes exist.