Flicker and stability
Reflections that flicker look worse than reflections that are a little off. A still image with a small error is easier to live with than one that boils. The library's defaults lean toward stable, and this page says where the dials are.
Why it shimmers
Rough glossy surfaces send a random ray each frame. Each frame's answer is slightly different, so the raw signal is noise. Three things calm it:
- The denoiser blends the signal over several frames.
- Anti-aliasing and the upscaler accumulate jittered frames of the final image.
- Fewer random choices, which means fewer rays that change from frame to frame.
If something flickers, first check that the denoiser is actually attached. Without it the reflections shimmer a lot (see Troubleshooting).
Settings, from the safest
Settings that trade colour for stability
These are the ones to know about, because they make the picture steadier by making it less exact:
mirrorBiastruncates the reflection lobe. Higher is quieter and less correct.- A longer denoiser history blurs fast change in exchange for calm.
- The denoiser's hit-source options (
denoiserHitSource,separateHitSources,missesMatchAnySource) keep screen hits, traced hits and misses from blending. They improved a car's sill band, but the band's orbit flicker rose by about 2.5 times in the measurements, so theperformancepreset leaves them off. Flicker ranks first. reflectionResolution: 'half'is steady but loses fine detail.- A higher
roughnessThresholdtraces more pixels. They are noisier, so the denoiser has more to do.
A working recipe
- Run the denoiser. Match its roughness gate to the tracer's threshold.
- Use the upscaler at ratio 1 for anti-aliasing, with
sharpnessat 0 and a longmaxAccumulation. - Keep
mirrorBiasand its compensation at the defaults. - If a thin feature still twinkles, try
samplesPerQuad: 2orquadCopy: 'sameSurface'. - Judge it on a still camera and on a slow orbit. The two behave differently.
The tuning bench (source: examples/showcase/bench.html in the repository) puts every
setting on one panel with a flicker measurement. See the settings reference for each knob, its default and its
trade-off.
Two small pages show the cause and the cure. Denoising glossy reflections has a flicker meter you can watch with the denoiser on and off. Animation and camera cuts shows the history staying steady through camera and object motion.