GPU: reuse weighted terms in ambient light gather #2336
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2336
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@yumaste on GitHub · 2026-11-29 12:08 UTC · original
yumaste:nvidia/perf-ambient-gather→main· +137 −21 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat 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