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

Closed
tippythetaidum wants to merge 2 commits from upstream-pr/393 into main
tippythetaidum commented 2026-11-27 21:51:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-27T21:51:05Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5533543987 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-27T21:51:05Z. --- ## 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)
SkylerizMe commented 2026-11-27 22:34:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SkylerizMe on 2026-11-27T22:34:23Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7229440132 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7229440132). Originally posted by [SkylerizMe](https://github.com/SkylerizMe) on 2026-11-27T22:34:23Z. --- 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.
tippythetaidum commented 2026-11-28 10:48:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T10:48:18Z.


Thanks for testing it on a second RTX 5080, and for the numbers.

Rebased onto 63b902f (it conflicted with main's change to draw.rs that gives the alpha layer the estimate by default unless VICTORY_AMBIENT_SPECULAR_ALPHA=0). The conflict is resolved on #63's side: the alpha layer keeps the title's sky light bounded at 1x the light around (Alpha::Bound), =1 still asks for the estimate and =0 leaves the title's sky light. That is the setting the runs above were made with, so the PR stays what was tested; if you'd rather keep main's estimate-by-default for glass, only the alpha branch of that match would change, and the opaque layer's bound where the miss program has no depth stands either way.

Checks on the same changes on 63b902f (my play branch, whose diff against main is identical to this one's): cargo test -p victory-gpu --lib 456 passed, 0 failed (the two indirect::tests budget tests pass again on this main); cargo xtask policy 294 files ok. Not run in the title after the rebase yet; the same commits on this base are what I'm playing next.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7238133222 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7238133222). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-28T10:48:18Z. --- Thanks for testing it on a second RTX 5080, and for the numbers. Rebased onto `63b902f` (it conflicted with main's change to `draw.rs` that gives the alpha layer the estimate by default unless `VICTORY_AMBIENT_SPECULAR_ALPHA=0`). The conflict is resolved on #63's side: the alpha layer keeps the title's sky light bounded at 1x the light around (`Alpha::Bound`), `=1` still asks for the estimate and `=0` leaves the title's sky light. That is the setting the runs above were made with, so the PR stays what was tested; if you'd rather keep main's estimate-by-default for glass, only the alpha branch of that `match` would change, and the opaque layer's bound where the miss program has no depth stands either way. Checks on the same changes on `63b902f` (my play branch, whose diff against main is identical to this one's): `cargo test -p victory-gpu --lib` 456 passed, 0 failed (the two `indirect::tests` budget tests pass again on this main); `cargo xtask policy` 294 files ok. Not run in the title after the rebase yet; the same commits on this base are what I'm playing next. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Yoshi-233 commented 2026-11-28 13:01:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T13:01:43Z.


Reproduced the effect on an RTX 4070 Ti SUPER in the safehouse living room. I switched both miss-stage bounds together every 12 seconds during the same process, with the opaque fallback and alpha bound at 1× while enabled. The camera faced the glass tank on the left and the wooden floor in front. Series X, BVH builder off, DLSS Quality M (2560×1440 to 3840×2160), 2× frame generation.

The illuminated tank changed every time the bound changed. With it off the glass was almost uniformly white. With it on the contents were visible. For 12 off and 11 on screenshots matched on the doorway, the median share of the central tank patch above luma 210/255 was 99.58% and 0.01%, respectively. The corresponding paired GPU captures show the same effect before DLSS. The tank patch's median linear luma went from 0.28 to 0.02.

White streaks on the wooden floor persisted in both states. The same fixed floor patch measured 216 and 215 on the 8-bit luma scale. I can confirm the tank improvement on this card and save. I haven't isolated which of the two bounds accounts for it, or established a frame-time benefit.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239637201 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7239637201). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-28T13:01:43Z. --- Reproduced the effect on an RTX 4070 Ti SUPER in the safehouse living room. I switched both miss-stage bounds together every 12 seconds during the same process, with the opaque fallback and alpha bound at 1× while enabled. The camera faced the glass tank on the left and the wooden floor in front. Series X, BVH builder off, DLSS Quality M (2560×1440 to 3840×2160), 2× frame generation. The illuminated tank changed every time the bound changed. With it off the glass was almost uniformly white. With it on the contents were visible. For 12 off and 11 on screenshots matched on the doorway, the median share of the central tank patch above luma 210/255 was 99.58% and 0.01%, respectively. The corresponding paired GPU captures show the same effect before DLSS. The tank patch's median linear luma went from 0.28 to 0.02. White streaks on the wooden floor persisted in both states. The same fixed floor patch measured 216 and 215 on the 8-bit luma scale. I can confirm the tank improvement on this card and save. I haven't isolated which of the two bounds accounts for it, or established a frame-time benefit.
tippythetaidum commented 2026-11-28 13:34:30 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T13:34:30Z.


Thanks for the careful A/B, that matches what the ten-second line shows in the open world here (RTX 5080, Series X, DLSS Quality).

In the safehouse the opaque layer's CS_RayMiss dispatch (variant 06bb6e728c7c99bf, first root constant 0) does get a full-size depth of the picture, so the opaque layer takes the estimate, not the bound. The line says so: per 10 s, about 240 dispatches "followed (surfaces: opaque), each by an estimate along the reflected direction", about 240 alpha-layer dispatches "bounded" (Bound(1.0)), and about 240 of layer 2 (water) left as the title has them. The opaque bound in this PR only applies where that program has no depth, which is the prison's case and not the safehouse's.

So switching the bounds changes the glass tank (alpha layer), but the floorboards are opaque surfaces and go through the estimate both ways. That explains why the floor patch read 216 vs 215. I see the same white speckle on the safehouse floorboards, door frame and bed sheet, and bright eyes in the wardrobe close-up. In the prison, where the opaque layer is bounded, both are gone.

Next I'm testing the opaque layer with the estimate vs. bounded at 1x even with a depth vs. the title's own sky light, at the same floor spot. I'll post the numbers here. If the estimate is the cause, the fix belongs in the estimate (or in when it is used), not in this PR's bounds.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7240032141 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7240032141). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-28T13:34:30Z. --- Thanks for the careful A/B, that matches what the ten-second line shows in the open world here (RTX 5080, Series X, DLSS Quality). In the safehouse the opaque layer's `CS_RayMiss` dispatch (variant `06bb6e728c7c99bf`, first root constant 0) does get a full-size depth of the picture, so the opaque layer takes the estimate, not the bound. The line says so: per 10 s, about 240 dispatches "followed (surfaces: opaque), each by an estimate along the reflected direction", about 240 alpha-layer dispatches "bounded" (`Bound(1.0)`), and about 240 of layer 2 (water) left as the title has them. The opaque bound in this PR only applies where that program has no depth, which is the prison's case and not the safehouse's. So switching the bounds changes the glass tank (alpha layer), but the floorboards are opaque surfaces and go through the estimate both ways. That explains why the floor patch read 216 vs 215. I see the same white speckle on the safehouse floorboards, door frame and bed sheet, and bright eyes in the wardrobe close-up. In the prison, where the opaque layer is bounded, both are gone. Next I'm testing the opaque layer with the estimate vs. bounded at 1x even with a depth vs. the title's own sky light, at the same floor spot. I'll post the numbers here. If the estimate is the cause, the fix belongs in the estimate (or in when it is used), not in this PR's bounds.
Yoshi-233 commented 2026-11-28 13:52:15 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T13:52:15Z.


Thanks, @tippythetaidum. That explains why the tank changed while the floor stayed at 216 and 215 in my #393 test. In the same safehouse view, I kept both #393 bounds enabled and toggled only the post-resolve hold from #818. The same floor patch went from 212 to 96 in median luma, and the wood grain became visible again.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7240243653 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7240243653). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-28T13:52:15Z. --- Thanks, @tippythetaidum. That explains why the tank changed while the floor stayed at 216 and 215 in my #393 test. In the same safehouse view, I kept both #393 bounds enabled and toggled only the post-resolve hold from #818. The same floor patch went from 212 to 96 in median luma, and the wood grain became visible again.
trustno1-coder commented 2026-11-28 19:22:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:22:28Z.


Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7244495995 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7244495995). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T19:22:28Z. --- Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
tippythetaidum commented 2026-11-28 21:59:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T21:59:06Z.


Thanks, that's fair. I won't reopen it. With #428 merged, CS_RayMiss is left out for the opaque and transparent layers, so the bounds here (and the follow-up I had for the opaque layer where the program does have the depth) would no longer run on main. Some data from today in case it helps whoever tunes that path. RTX 5080, Series X, frame generation off for the A/B:

  • One process, modes switched every 15 s, same scenes (Jason's bathroom): the title's own sky light covers the doors and walls in white-blue speckle; the estimate leaves glossy surfaces with a milky sheen (ceramic washed out, a white stripe on the tub's rim); the sky light bounded at 1x the light around is clean.
  • About 3.5 hours of normal play with the opaque layer bounded at 1x also where the program has the depth: the house's floorboards, the wardrobe's dark close-ups (eyes), the mini-mart's floor and the fridge all looked right. Car paint outdoors kept its highlights.
  • Still seen with that build: layer 2 (water), which every version leaves with the title's sky light. Once, while moving furniture indoors, Jason's skin, shorts and cap turned a speckled white-blue for a few seconds (one picture in three, 20 s apart) while the NPC beside him was normal. I haven't confirmed it's that layer. The bed sheet also stayed a shiny white satin in both builds.

Next I'll play current main with #428 on this card and report on #428 if anything shows up.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7246413391 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/393#issuecomment-7246413391). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-28T21:59:06Z. --- Thanks, that's fair. I won't reopen it. With #428 merged, `CS_RayMiss` is left out for the opaque and transparent layers, so the bounds here (and the follow-up I had for the opaque layer where the program does have the depth) would no longer run on main. Some data from today in case it helps whoever tunes that path. RTX 5080, Series X, frame generation off for the A/B: - **One process, modes switched every 15 s, same scenes (Jason's bathroom):** the title's own sky light covers the doors and walls in white-blue speckle; the estimate leaves glossy surfaces with a milky sheen (ceramic washed out, a white stripe on the tub's rim); the sky light bounded at 1x the light around is clean. - **About 3.5 hours of normal play with the opaque layer bounded at 1x also where the program has the depth:** the house's floorboards, the wardrobe's dark close-ups (eyes), the mini-mart's floor and the fridge all looked right. Car paint outdoors kept its highlights. - **Still seen with that build:** layer 2 (water), which every version leaves with the title's sky light. Once, while moving furniture indoors, Jason's skin, shorts and cap turned a speckled white-blue for a few seconds (one picture in three, 20 s apart) while the NPC beside him was normal. I haven't confirmed it's that layer. The bed sheet also stayed a shiny white satin in both builds. Next I'll play current main with #428 on this card and report on #428 if anything shows up.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

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