Repository navigation
denoiser-ffx: Gi1Denoiser, a port of AMD GI-1.0's image-space GI denoiser - #33
Merged
Merged
Conversation
… denoiser (Capsaicin v1.3) ReprojectGI, FilterGI x2 and gi_denoiser.hlsl ported from Capsaicin 914b915 (gi1.comp:3997-4154, gi1.cpp:2881-2926), AMD's notice kept. Core: optional FrameGuides.previousDepth/previousNormal and TemporalDenoiser.encode(). Test bed: examples/ffx-denoiser/gi1.html (constant, noisy, blur mask, reprojection, ghosting checks); run-headless.mjs runs on Windows too.
…, README, spec section (GI-1.0 port: passes, deviations, interface additions, check results)
… 'neighbourhood' | 'none'), changed-region history reset (changeReset, Gi1Inputs.changedRegions); test bed options
…ting check); temporal.md and README document the clamp and change reset with measured numbers
…ax of spatial and temporal sigma, delta on the unclipped history), soft change reset over changeFrames, rgba16float history with nearest-half stores, delta and mask packed, guides read in place, own previous copies only when the caller has none, NaN/Inf bit guards; bed: tile noise, 2% ghosting gate, NaN injection
…ly, box = 2 standard errors of the short mean (spatial sigma only while young), default historyClip 2; temporal.md, README; bed fixes
DennisSmolek
marked this pull request as ready for review
November 23, 2026 14:49
This was referenced Nov 23, 2026
DennisSmolek
added a commit
to pmndrs/gi
that referenced
this pull request
Nov 26, 2026
…the main merge publish-workflow.test.ts pinned ci.yml's steps without the sibling fetch step rc-into-main added, so PR #41 failed on Ubuntu (the describe skips on Windows). The step stays until Gi1Denoiser is published in denoiser on npm (pmndrs/denoiser#33). Co-Authored-By: Claude Opus 5.5 <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.
Ports AMD GI-1.0's image-space GI denoiser (Capsaicin v1.3, commit
914b915, MIT) intodenoiser-ffxasGi1Denoiser, beside the FidelityFX ports. Dennis decided on 2026-11-19 that it goes here "like the other fidelity work". pmndrs/gi's radiance cache (a multi-cache GI system built from GI-1.2) is its first user.Draft. Reworked after an independent review; a second review follows. Not for release until Dennis's list in pmndrs/gi is done (gi DECISIONS 2026-11-19).
What's in it
ReprojectGI(gi1.comp:3997-4103),FilterGIrun twice (4105-4154), and helpers fromgi_denoiser.hlsl, dispatched as in gi1.cpp:2881-2926.packages/denoiser-ffx/src/gi1.ts. WGSL:src/shaders/gi1.ts.TemporalDenoiser<Gi1Inputs>(DiffuseInputsplus optionalchangedRegions).NOTICE, and the package README has a row for it.docs/specs/temporal.md§ "GI-1.0 port":saturate(NaN) = 0. RemoveNaNs runs on the history's mean, so irradiance is no longer capped at 1e4 / count.historyClamp: 'neighbourhood' | 'none':'none'is Capsaicin's history, which takes 45–160 frames to follow a lighting change.changeReset+inputs.changedRegions: inside changed regions (or everywhere, for'everything') the history keeps at most 3 samples with Capsaicin's 4-sample cap, for 8 frames. OnlyresetHistory()drops the history.FrameGuides.previousDepth/previousNormal;TemporalDenoiser.encode(encoder, …), which records into the caller's encoder (one frame per instance per submit).examples/ffx-denoiser/gi1.html:run-headless.mjsruns on Windows.Numbers (RTX 3060 Laptop, defaults)
rc4-3), frame-to-frame change of the denoised term, still camera, jitter on, clamp vs no clamp:Not verified yet
Timing, the Intel UHD and Apple GPUs since the rework, and a by-eye check. The repo has no unit-test setup, so the CPU maths is covered by the GPU checks only.