gpu: opt in to timed ambient settling, and make VICTORY_AMBIENT_MOST real #62

Closed
github-bot wants to merge 1 commit from github-bot/gh-62 into main AGit
Owner

@⁠superboynick on GitHub · 2026-11-27 15:29 UTC · original
superboynick:pr/ambient-settle → main · +94 −3 · 1 files · 1 commits · closed without merging

What 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 a fresh window that holds the title's own residue down while a new place settles. Unset, the old 0.04 stands.

VICTORY_AMBIENT_MOST was documented but not read. README.md tells users to keep VICTORY_AMBIENT_MOST=2, but nothing in the tree read it — ambient.rs wrote 4.0 into 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=1 selects 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

  • The AMBIENT_MOST part 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.
  • The settle part needs a second opinion on the time constant (what ms looks 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.

**@⁠superboynick** on GitHub · 2026-11-27 15:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/62) `superboynick:pr/ambient-settle` → `main` · +94 −3 · 1 files · 1 commits · closed without merging ## What 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 a `fresh` window that holds the title's own residue down while a new place settles. Unset, the old 0.04 stands. **`VICTORY_AMBIENT_MOST` was documented but not read.** `README.md` tells users to keep `VICTORY_AMBIENT_MOST=2`, but nothing in the tree read it — `ambient.rs` wrote `4.0` into 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=1` selects 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 - The `AMBIENT_MOST` part 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. - The settle part needs a second opinion on the time constant (what `ms` looks 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.
Unset settings preserve the original 0.04/frame interpolation, 4.0 luminance cap, once mode and both upstream probe filters. Honor AMBIENT_MOST when supplied. MAGENTA=1 selects the reference magenta-only threshold, while 0 keeps upstream's blue rejection too. No ambient fps measurement was supplied.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:36:43 +00:00
github-bot force-pushed github-bot/gh-62 from f7cdea1885 to cefc4c04aa 2026-11-27 19:58:48 +00:00 Compare
github-bot force-pushed github-bot/gh-62 from cefc4c04aa to 21a98e4b02 2026-11-27 21:01:27 +00:00 Compare
github-bot force-pushed github-bot/gh-62 from 21a98e4b02 to 8acd9efdd3 2026-11-27 22:49:33 +00:00 Compare
github-bot force-pushed github-bot/gh-62 from 8acd9efdd3 to c3bc49394a 2026-11-27 23:53:13 +00:00 Compare
github-bot force-pushed github-bot/gh-62 from c3bc49394a to c294b5f4f9 2026-11-28 01:35:30 +00:00 Compare
github-bot force-pushed github-bot/gh-62 from c294b5f4f9 to 1238fefbcf 2026-11-28 03:54:57 +00:00 Compare
Author
Owner

@⁠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.

**@⁠trustno1-coder** on GitHub · 2026-11-28 19:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/62#issuecomment-7244237446) 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.
github-bot closed this pull request 2026-11-28 19:08:46 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!62
No description provided.