gpu: opt in to timed ambient settling, and make VICTORY_AMBIENT_MOST real #62
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!62
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-62"
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?
@superboynick on GitHub · 2026-11-27 15:29 UTC · original
superboynick:pr/ambient-settle→main· +94 −3 · 1 files · 1 commits · closed without mergingWhat I tested
RTX 5070 Ti Laptop (12 GB), Windows 11 26100, release build,
--console series-x, the 36-item play set. Two separate things here, both default off.What happened
The settle was a per-frame constant. The estimate moved 4% of the way to its target every frame (
0.04f32.to_bits()), so how long a room took to look right depended on the frame rate — about 0.25 s at 60 fps, 3.5 s at 7 fps — and a room change did not reset it.VICTORY_AMBIENT_SETTLE=<ms>[,<jump>[,<fresh>]]makes it a time constant (follow = 1 - exp(-frame_ms/ms)), with an optional jump allowance on room changes and afreshwindow that holds the title's own residue down while a new place settles. Unset, the old 0.04 stands.VICTORY_AMBIENT_MOSTwas documented but not read.README.mdtells users to keepVICTORY_AMBIENT_MOST=2, but nothing in the tree read it —ambient.rswrote4.0into the constant buffer. It is read now, with the old 4.0 as its default, so existing set-ups are unaffected.Also
VICTORY_AMBIENT_MAGENTA=1selects the older magenta-only probe filter; unset, the wider magenta-and-blue filter upstream added stays in charge.With every switch unset, the seven ambient shaders compile to bytecode identical to the build before this change.
What would make it mergeable
AMBIENT_MOSTpart is a fix for a documented-but-dead switch, so it should stand on its own; if you would rather have only that, I will split it out.mslooks right on a slower card), because I only measured that the room settles in wall-clock time rather than in frames.Written with an AI assistant.
f7cdea1885tocefc4c04aacefc4c04aato21a98e4b0221a98e4b02to8acd9efdd38acd9efdd3toc3bc49394ac3bc49394atoc294b5f4f9c294b5f4f9to1238fefbcf@trustno1-coder on GitHub · 2026-11-28 19:01 UTC · original
Thanks for this. I'm closing it without merging: it conflicts with #48, merged now, in crates/victory-gpu/src/ambient.rs (both change the probe shader's constants). If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed