Ambient: keep the traced diffuse light in a band while ray tracing runs (VICTORY_AMBIENT_RT, off by default) #1592
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!1592
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1592"
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?
@JCreecher on GitHub · 2026-11-28 22:04 UTC · original
JCreecher:rt/ambient-band-v2→main· +188 −14 · 2 files · 3 commits · merged 2026-11-29 08:16 UTCNo issue tracks this. With the title's ray tracing on, the traced diffuse light can go black or swing while the
structures the rays walk are partly wrong (docs/findings.md, RTX 5080: "blown-out light and black patches").
What it changes
With ray tracing on (
VICTORY_BVH_BUILDER=1), the stand-in for the indirect light turns itself off(
ambient::on()needs!builder_runs()).VICTORY_AMBIENT_RT=<least>,<most>keeps the diffuse stand-in on withrays too, after the title's resolve, and keeps what the resolve left between
leastandmosttimes the estimate:the traced detail stays, black rooms and swings do not.
CS_CacheScreenSpaceRadiance) and the raise (CS_ScreenProbes_TemporalResolve) run with rays;reflections (
CS_RayMiss) and the air stay the title's.on()takes the program's role for that.VICTORY_AMBIENT's share (victory playsets 0.8); with it unset or a constant the band doesnothing and says so once in the log. With
VICTORY_AMBIENT_RTunset nothing changes.max(was, found * least),the opt-in chroma scrub, the depth state);
VICTORY_PROBE_NEUTRALsteps aside while the builder runs.least. In diagnostics buildsVICTORY_AB=<s>,VICTORY_AMBIENT_RTflips it in a run.0.7,1.5), fitted tothis tree. Files:
crates/victory-gpu/src/ambient.rs,crates/victory-gpu/src/draw.rs(+188/-14), with teststhe_band_with_rays,what_runs_with_rays,the_constants_agree.How it was tested
off, ray tracing on,
VICTORY_AMBIENT_RT=0.7,1.5; a diagnostics build withVICTORY_AB=20,VICTORY_AMBIENT_RT, so theband flipped every 20 s inside one run.
run with the band on throughout: 16.8 fps median, the store evenly lit, no black areas, no crash.
9ce3cf9). This head is the same change carried onto main923e38c(the 14th constant, main's new stand-in code kept); its own run in the game, with a before/after picture pair in a
dark room, is still to come.
VICTORY_LDS_WRITE_ONLY_OK=1: since #43, three of the structure builder's programs are refused on 32-lane cards and ray tracing stays off without it (#1435, #1575).not recompiled title programs.
cargo testpassed for the crates it touches: yes.cargo test --locked -p victory-gpu --lib: 553 passed,0 failed, 43 ignored; with
--all-features: 607 passed, 0 failed, 43 ignored (Rust 1.98.1). Clippy shows no lintsin
ambient.rsordraw.rs.Checked for overlap
open PR that also changes
ambient.rs(it addsAlphaand reflection roles); the two conflict there, so whicheveris merged second needs a rebase.
draw.rsis changed by 25 open PRs; this one changes only the two calls ofambient::on.AI use: Claude Code (Claude Opus 5.5) found the fork commit, ported and adapted it, carried it onto today's main, wrote
the tests, read the logs of the runs above and wrote this description. The runs were played on the PC named above.
d459907: issue forms, PR template) into rt/ambient-band-v2 6e0fec1fd2