GPU: reuse weighted terms in ambient light gather #2336
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2336"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yumaste on 2026-11-29T12:08:02Z.
What it changes
The ambient estimate gathers 2,304 cells at each of 14,400 points. This pass is used by the regular
victory playlighting estimate when ray tracing is off. It runs during diffuse resolve and can also run for the optional reflection estimate.Compute the weighted direction once per cell and re-use it for the RGB moments. Accumulate each colour's scalar weight in the fourth component of its moment. Process two consecutive cells per iteration to reduce loop bookkeeping. The grid, dispatch geometry and order of accumulation stay the same. Floating-point reassociation can change the low bits.
GPU timing
D3D12 timestamps around the production
gatherdispatch on Intel Graphics, Windows, driver 32.0.101.8826. Both PSOs used the same synthetic 1280 × 720 depth texture and all 2,304 input cells. Each run used four warm-up samples and 19 timed samples per variant with rotated order.NVIDIA timing and in-game frame times remain unmeasured.
How it was tested
7e-8on both.cargo test --locked -p victory-gpu --lib ambient::tests -- --test-threads=1passed all 15 tests. The staged asset-policy check passed.Checked for overlap