Reflections: #63's sky bound at 1x the light around (eyes, glass and floors stop mirroring the sky indoors) #393
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/393"
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?
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_ALPHAunset: the alpha layer (glass, the eyes' wet layer, decals) is bounded at 1x (was 6x).VICTORY_AMBIENT_SPECULAR_NO_DEPTHunset: the opaque layer whereCS_RayMiss_de6b91a6has 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
06bb6e728c7c99bfbinds no depth of the picture, only 853x480R32_UINT/R32_FLOATtextures beside its image; the program after it in the same list,130d3d04172e5456, has the 1706x960 depth ats0+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):..._ALPHA=0,..._NO_DEPTH=0)The release build of this branch on
0f0ada1was run too (since rebased ontodf2daaf, whose changes are to the launcher and FSR 3: the checks below were run again, the game was not): the ten-second line saysthe 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
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 --libon this machine: the same twoindirect::testsbudget tests fail as on unmodifiedmain(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
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
2eade68with 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" withBound(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.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 todraw.rsthat gives the alpha layer the estimate by default unlessVICTORY_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),=1still asks for the estimate and=0leaves 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 thatmatchwould 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 --lib456 passed, 0 failed (the twoindirect::testsbudget tests pass again on this main);cargo xtask policy294 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
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.
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_RayMissdispatch (variant06bb6e728c7c99bf, 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.
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.
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.
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_RayMissis 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:Next I'll play current main with #428 on this card and report on #428 if anything shows up.
Pull request closed