Reflections: #63's sky bound at 1x the light around (eyes, glass and floors stop mirroring the sky indoors) #393

Open
github-bot wants to merge 2 commits from github-bot/gh-393 into main AGit
Owner

@⁠tippythetaidum on GitHub · 2026-11-27 21:51 UTC · original
tippythetaidum:reflections-bound-1x → main · +408 −24 · 3 files · 2 commits · open

What

PR #63 (by @⁠wasonidas: the sky's light in reflections bounded where the miss program has no depth of the picture) with its two bounds' defaults at 1 times the light around instead of 6:

  • VICTORY_AMBIENT_SPECULAR_ALPHA unset: the alpha layer (glass, the eyes' wet layer, decals) is bounded at 1x (was 6x).
  • VICTORY_AMBIENT_SPECULAR_NO_DEPTH unset: the opaque layer where CS_RayMiss_de6b91a6 has no depth is bounded at 1x (was 6x).

Either switch still sets another multiple. The first commit is #63's as it is (author kept); if #63 is merged first, only the second commit (ambient.rs, two constants and their comments) is left.

Why

Without a bound, on an RTX 5080, every reflection ray that finds nothing keeps the title's sky light: the stand-in for reflections ran in 0 frames of a whole session (as in #163: variant 06bb6e728c7c99bf binds no depth of the picture, only 853x480 R32_UINT/R32_FLOAT textures beside its image; the program after it in the same list, 130d3d04172e5456, has the 1706x960 depth at s0+448). In the frames that gives white sky patches over the day room's floor and a blue-violet sheen on the whites of the eyes in the café's close-ups.

With #63's bound at 6 the player still saw eyes and glass shine too much indoors and an oily look on the floors. At 1 they saw neither, and in the captured close-ups the eyes are as dark as the room.

Measured

RTX 5080 16 GB, driver 621.14, Windows 11, 31 GB RAM, Series X profile, 2560x1440, DLSS Quality, DLSS frame generation 4x, title 1.0.2.1, the prologue (café flashback, cell, corridor, day room). Diagnostics builds with every 96th world frame saved (VICTORY_CAPTURE_WORLD_EVERY):

bound off (..._ALPHA=0, ..._NO_DEPTH=0) #63 (6) 1 (this)
ten-second line, dispatches bounded 0 266-288 281-378
day room floor white sky patches player: still oily player: even, no oil
whites of the eyes (café close-ups) blue-violet sheen player: still too shiny as dark as the room

The release build of this branch on 0f0ada1 was run too (since rebased onto df2daaf, whose changes are to the launcher and FSR 3: the checks below were run again, the game was not): the ten-second line says the alpha layer: Bound(1.0); the opaque layer ...: Some(1.0), DLSS took every upscaling (1.00 upscalings by DLSS, 0.00 failed), no device removal or unhandled exception.

Not shown

  • Outdoors: the bound is the geometric mean of the picture's light, which outdoors is of the sky's order; at 1 bright outdoor reflections (glass in the sun, car paint) may come out duller than at 6. The runs here stayed indoors.
  • Views were not identical between the sides (the player moved), so the table compares the same places, not the same frames.
  • This is a stand-in either way: the proper fix is the depth for 06bb6e728c7c99bf (or the title's own rays).

Checks

  • cargo test -p victory-gpu --lib ambient::: 8 passed. cargo xtask policy: 286 files ok.
  • cargo test -p victory-gpu --lib on this machine: the same two indirect::tests budget tests fail as on unmodified main (see #67), nothing else.

Made with AI help (Claude Code); the numbers are from the runs' logs and captures, the "player" lines from the person playing them.

🤖 Generated with Claude Code

**@⁠tippythetaidum** on GitHub · 2026-11-27 21:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393) `tippythetaidum:reflections-bound-1x` → `main` · +408 −24 · 3 files · 2 commits · open ## What PR #63 (by @⁠wasonidas: the sky's light in reflections bounded where the miss program has no depth of the picture) with its two bounds' defaults at **1** times the light around instead of 6: - `VICTORY_AMBIENT_SPECULAR_ALPHA` unset: the alpha layer (glass, the eyes' wet layer, decals) is bounded at 1x (was 6x). - `VICTORY_AMBIENT_SPECULAR_NO_DEPTH` unset: the opaque layer where `CS_RayMiss_de6b91a6` has no depth is bounded at 1x (was 6x). Either switch still sets another multiple. The first commit is #63's as it is (author kept); if #63 is merged first, only the second commit (`ambient.rs`, two constants and their comments) is left. ## Why Without a bound, on an RTX 5080, every reflection ray that finds nothing keeps the title's sky light: the stand-in for reflections ran in 0 frames of a whole session (as in #163: variant `06bb6e728c7c99bf` binds no depth of the picture, only 853x480 `R32_UINT`/`R32_FLOAT` textures beside its image; the program after it in the same list, `130d3d04172e5456`, has the 1706x960 depth at `s0+448`). In the frames that gives white sky patches over the day room's floor and a blue-violet sheen on the whites of the eyes in the café's close-ups. With #63's bound at 6 the player still saw eyes and glass shine too much indoors and an oily look on the floors. At 1 they saw neither, and in the captured close-ups the eyes are as dark as the room. ## Measured RTX 5080 16 GB, driver 621.14, Windows 11, 31 GB RAM, Series X profile, 2560x1440, DLSS Quality, DLSS frame generation 4x, title 1.0.2.1, the prologue (café flashback, cell, corridor, day room). Diagnostics builds with every 96th world frame saved (`VICTORY_CAPTURE_WORLD_EVERY`): | | bound off (`..._ALPHA=0`, `..._NO_DEPTH=0`) | #63 (6) | 1 (this) | |---|---|---|---| | ten-second line, dispatches bounded | 0 | 266-288 | 281-378 | | day room floor | white sky patches | player: still oily | player: even, no oil | | whites of the eyes (café close-ups) | blue-violet sheen | player: still too shiny | as dark as the room | The release build of this branch on `0f0ada1` was run too (since rebased onto `df2daaf`, whose changes are to the launcher and FSR 3: the checks below were run again, the game was not): the ten-second line says `the alpha layer: Bound(1.0); the opaque layer ...: Some(1.0)`, DLSS took every upscaling (`1.00 upscalings by DLSS, 0.00 failed`), no device removal or unhandled exception. ## Not shown - Outdoors: the bound is the geometric mean of the picture's light, which outdoors is of the sky's order; at 1 bright outdoor reflections (glass in the sun, car paint) may come out duller than at 6. The runs here stayed indoors. - Views were not identical between the sides (the player moved), so the table compares the same places, not the same frames. - This is a stand-in either way: the proper fix is the depth for `06bb6e728c7c99bf` (or the title's own rays). ## Checks - `cargo test -p victory-gpu --lib ambient::`: 8 passed. `cargo xtask policy`: 286 files ok. - `cargo test -p victory-gpu --lib` on this machine: the same two `indirect::tests` budget tests fail as on unmodified `main` (see #67), nothing else. Made with AI help (Claude Code); the numbers are from the runs' logs and captures, the "player" lines from the person playing them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On the RTX 5080 profile (Series S and X) CS_RayMiss_de6b91a6 has a 1x1
texture at its depth's place in every frame of the world, so the estimate
for reflections never ran: floors and glass indoors mirrored the sky. The
opaque layer there, and the alpha layer everywhere unless asked otherwise,
now keep the title's sky light up to six times the geometric mean of what
the picture sends out (VICTORY_AMBIENT_SPECULAR_NO_DEPTH,
VICTORY_AMBIENT_SPECULAR_ALPHA). The miss program's tables are listed again
at its 1024th and 8192nd unmatched dispatch.

VICTORY_CAPTURE_WORLD_EVERY sets how often a frame of the world is saved
(8 as before): a saved frame takes about 50 ms more, which was the 95th
percentile of every run measured with captures.

VICTORY_AMBIENT_SECOND caps the resolve's second image of light; a probe,
off unless asked for (it is not where the violet paper comes from).
With #63's bound at 6 a player on an RTX 5080 (Series X, 1440p, DLSS
Quality) still saw eyes and glass shine too much indoors and an oily look
on the floors: the miss program CS_RayMiss_de6b91a6 (variant
06bb6e728c7c99bf) has no depth of the picture in any frame of the prologue,
so every reflection ray that found nothing keeps the bounded sky light, and
6 times the room is still far above what the screen-space resolve writes
beside it. At 1 the player saw neither; in the café's close-ups the whites
of the eyes lose the blue-violet sheen they have without a bound, and the
day room's floor is even.

Both defaults (VICTORY_AMBIENT_SPECULAR_ALPHA's bound and
VICTORY_AMBIENT_SPECULAR_NO_DEPTH) go from 6 to 1; either switch still sets
another multiple.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:52:49 +00:00
Author
Owner

@⁠SkylerizMe on GitHub · 2026-11-27 22:34 UTC · original

Tested on a second RTX 5080 (Ryzen 9 9950X3D, Windows 11) in the same scenes: fxceless/victory-fork 2eade68 with this PR, #142 and #58 on top, Series S, DLSS Performance, frame generation 2x. The day room floor and the eyes no longer mirror the sky; across the first 6 to 10 minutes of the prologue the reflection problem from #163 is gone. The ten-second line shows 500 to 870 dispatches a window that "kept the title's sky light, bounded by the light around" with Bound(1.0). Steady 36.6 fps against 31.0 before on the same settings, no errors. Grainy shadows, aliasing and some lighting flicker remain, but those are separate from this.

**@⁠SkylerizMe** on GitHub · 2026-11-27 22:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7229440132) Tested on a second RTX 5080 (Ryzen 9 9950X3D, Windows 11) in the same scenes: fxceless/victory-fork `2eade68` with this PR, #142 and #58 on top, Series S, DLSS Performance, frame generation 2x. The day room floor and the eyes no longer mirror the sky; across the first 6 to 10 minutes of the prologue the reflection problem from #163 is gone. The ten-second line shows 500 to 870 dispatches a window that "kept the title's sky light, bounded by the light around" with `Bound(1.0)`. Steady 36.6 fps against 31.0 before on the same settings, no errors. Grainy shadows, aliasing and some lighting flicker remain, but those are separate from this.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/393/head:github-bot/gh-393'
git switch 'github-bot/gh-393'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-393'
git switch 'github-bot/gh-393'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-393'
git switch 'github-bot/gh-393'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-393'
git switch 'main'
git merge --squash 'github-bot/gh-393'
git switch 'main'
git merge --ff-only 'github-bot/gh-393'
git switch 'main'
git merge 'github-bot/gh-393'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.