Repository navigation
The specular history is held to its neighbourhood on animated shading alone - #287
Merged
Merged
Conversation
… alone `stemporal` clamped a reflection's history into the band of this frame's nine samples in three cases: while the lighting changes, where a reflection moves against its surface, and on animated shading. The first two go: the change chart follows them already, and at one sample a pixel the band cut light that comes by rare bright samples and flickered with them. On animated shading (waves) it stays: without it running water blurs. Before -> after, this machine: - bench-object-ghosting --scene orb, dE at mid / end / +0.1 s / +0.3 s: 9.48 / 8.30 / 4.67 / 2.94 -> 9.44 / 7.45 / 4.30 / 2.90; trail 334 / 393 / 121 / 63 -> 326 / 233 / 63 / 40 px - bench-temporal --shot edit: 'lamp on, bounce' settles in 128 frames for 256, the floor beside the sign dE 0.9 / 0.88 -> 0.79 at 32 frames, the other rows within 0.03 - bench-temporal --shot water, bench-ghosting --quick --check: the same - not taken, the band off on animated shading too: the water's reflections, time held / running 3.22 / 12.45 -> 1.16 / 20.58 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
stemporalclamped a reflection's history into the band of this frame's nine samples in three cases: while the lighting changes, where a reflection moves against its surface, and on animated shading. This removes the first two and keeps the third.One condition in
live.wgsl(held), comments anddocs/RUNTIME.md. No constant goes: all are still used by the animated case. The kernel is untouched.Measured (before -> after, one machine)
bench-object-ghosting --scene orb, dE mid / end / +0.1 s / +0.3 sbench-temporal --shot edit, 'lamp on, bounce': dE at 32 frames, frames to settlebench-temporal --shot water, reflections, time held / runningbench-ghosting --quick --checkThe other rows of the edit shot are within 0.03.
Not taken: the band off on animated shading too. The water's reflections then read 1.16 / 20.58 (time held / running) for 3.22 / 12.45.
Heavy clips (main -> this; dE / SSIM against the offline render, flicker)
The six other clips with a quality score read the same. Worse: jewellery's dE (+6 %, with its flicker -10 %) and the crowd's flicker (+3 %).
A frame's GPU time summed over twelve clips: 93.52 ms against 93.58 on main (-0.1 %), each clip within 0.5 %.
Checks
🤖 Generated with Claude Code
Note
Medium Risk
Changes live specular temporal behaviour for lighting and camera motion (ghosting vs. brightness), but leaves water animation on the old path and benchmark tables document expected deltas.
Overview
Specular temporal filtering no longer clamps reflection history to the nine-sample neighbourhood band when lighting is changing or when reflections slide on rough surfaces—those cases now rely on the chart alone. The neighbourhood band (Karis-style clamp) remains only for animated shading (waves/ripples:
albedo.w > 1.5and gloss), where the normal moves each frame and the chart does not track what is reflected.In
stemporal,heldis narrowed fromlive || anim || parallax-on-roughtoanimonly, so the heavy 9-tap clamp path runs just on that case;SPEC_ANIM_RAREis always used in the band width there since non-animated pixels never enter the clamp. Comments inlive.wgslanddocs/RUNTIME.mdare rewritten to match and include 2026-11-27 bench numbers (improved orb ghosting trails, faster edit-shot settle, water unchanged when the band stays on anim).Reviewed by Cursor Bugbot for commit c1cb45c. Bugbot is set up for automated code reviews on this repo. Configure here.