Reflections on glass/windows worse since #428 (the opaque layer's miss program carries them) #2224
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#2224
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@rgroenewoudt on GitHub · 2026-11-29 10:42 UTC · original
Release: v2026.11.29.01 (
829188e9). v2026.11.28.03 looked better.Setup: AMD Radeon RX 9070 16 GB, Windows 11 build 26300 (native), Series X, release build,
scripts\play-foxhound.ps1withVICTORY_AMBIENT_SPECULAR=1(F1 menu) andVICTORY_NATIVE_SIZE=2560x1440.What happens
Reflections on glass and windows are clearly worse than in v2026.11.28.03 (seen in the opening). Floors are better, so this is a tradeoff and not only a regression.
Cause
#428 (
e2d7854e) leavessr_tracing:CS_RayMissout for the opaque and transparent layers to remove the white grain on floors. The reflection stand-in (VICTORY_AMBIENT_SPECULAR) follows that dispatch, so it stops on those surfaces too, as the commit says.Logs, same switches otherwise:
~210 dispatches of CS_RayMiss followed (surfaces: opaque, alpha)VICTORY_RAYMISS_KEEP=1310 dispatches … (surfaces: opaque, alpha)97 dispatches … (surfaces: alpha)The last row matters: running the miss program for the transparent layer alone does not bring the windows back. Their reflections come from the opaque layer's miss dispatch, the same one that gives the floor grain. So a per-layer switch can't fix both.
Possible direction
Inside the opaque layer, decide per pixel instead of per dispatch: keep the sky/stand-in for smooth surfaces such as glass, and drop it for rough floors at grazing angles, for example by roughness or view angle. I'm looking into this with a frame capture and will add what I find here.
Workaround for now:
VICTORY_RAYMISS_KEEP=1if glass matters more than floors.Investigated locally with AI assistance (Claude Code); I checked the results before posting.
@github-actions[bot] on GitHub · 2026-11-29 10:43 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@rgroenewoudt on GitHub · 2026-11-29 10:56 UTC · original
Update after more tests (same setup, indoor room by the windows in the opening):
VICTORY_RAYMISS_KEEP=1plusVICTORY_AMBIENT_SPECULAR=1(stand-in replaces the sky)VICTORY_AMBIENT_SPECULAR=0(title's sky only)CS_RayMiss(06bb6e728c7c99bf) has oneimage_store, to table offset 0x1a0 =MISS_LIGHT(1, 104): the same image the stand-in'sreflect_lightoverwrites whole, so nothing of the sky survives the stand-in there.reflect_light(by|dot(v, n)|from the depth's normal) did not help: the grain is also on floor seen from fairly steeply above.Likely direction: decide per texel by roughness. The miss program reads it to pick the sky cube's mip, so the stand-in could keep the miss's light only for smooth texels (glass) and write nothing for rougher ones (floors). Not done yet.
Side note:
VICTORY_RAYMISS_KEEP=1withVICTORY_AMBIENT_SPECULAR=0.3gave a device removal while loading, twice (0x887A0004, "no breadcrumbs");=1and=0load fine. Not looked into.Investigated locally with AI assistance (Claude Code); I checked the results before posting.
@rgroenewoudt on GitHub · 2026-11-29 11:27 UTC · original
Second update: a per-texel fix from the rays' directions doesn't work either. I'm stopping here.
What I tried:
CS_RayMissreads the rays' directions at (1, 88) (32-bit, octahedral 2x12 bits; top bits 1 = no ray; bound as an SRV). The miss program samples the sky cube at mip 0 only (_lz), so roughness lives in the directions: the title jitters each ray around the mirror direction. A local test made the stand-in compare each texel's ray with its 8 neighbours' and write 0 where they scatter (mean cosine below a threshold), keeping the estimate where they're parallel (glass). Run withVICTORY_RAYMISS_KEEP=1.So writing 0 into the missed texels isn't what leaving the miss program out does. With the program left out, those texels keep whatever an earlier pass of the title wrote there, and the denoiser depends on that. Overwriting them with any value (sky, estimate, or 0) gives grain or worse. A per-pixel choice in the stand-in can't bring back that earlier content once the miss program has run.
Conclusion: without the title's own ray tracing (
VICTORY_BVH_BUILDER=1, 0-2 fps here), it stays a tradeoff:VICTORY_RAYMISS_KEEP=1: good glass, grain on smooth floorsA possible lead for someone else: skip the miss program per texel (or have it skip by itself) for scattered rays, instead of overwriting its result afterwards. That would need a change to the translated program or a pre-pass that marks those texels as "no ray" (top bits 1) before it runs. Not tried.
Side note: after the
SPECULAR=0.3device removals in my first update, every later run device-removed while loading, also with settings that had loaded fine before. After a reboot they load fine again, so it was likely a bad driver state after the first removal.SPECULAR=0.3itself wasn't retried after the reboot.Investigated locally with AI assistance (Claude Code); I checked the results before posting.
@rgroenewoudt on GitHub · 2026-11-29 11:29 UTC · original
To be clear about the direction: the real fix here is ray tracing, not more workarounds.
On the console these reflections (and the indirect light) come from the title's own ray tracing. Every stand-in in
ambient.rsand the miss-program tricks (#428,VICTORY_RAYMISS_KEEP, and what I tried above) only estimate what the console computes exactly. Each fixes one symptom and moves the problem somewhere else: #428 cleaned the floors and took the glass reflections with it.The faithful path already exists as
VICTORY_BVH_BUILDER=1, but it ran at 0-2 fps here (RX 9070). Making that fast and correct (the emulated BVH test instruction, the per-frame builder, structures landing late) would make these heuristics unnecessary, so effort is better spent there than on more tweaks to the stand-in.@tippythetaidum on GitHub · 2026-11-29 12:49 UTC · original
Same trade-off on NVIDIA, but #428 doesn't leave the floors clean here: they turn green instead.
RTX 5080 16 GB (driver 621.14), Windows 11 26200, source build of
829188e9plus #1926, #1930 and #2263. Series X 2560x1440, DLSS Performance, DLSS frame generation 4x,play-foxhound.ps1defaults (VICTORY_AMBIENT_SPECULAR=1,VICTORY_THIN=1,VICTORY_ALIAS_TARGETSat its default, on). Same save in Jason's house in daylight, three starts, judged from window captures every 20 s:VICTORY_RAYMISS_KEEP=1VICTORY_BVH_BUILDER=1the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53, but #428 still leaves the miss program out (reflections' miss program left out for opaque and transparent surfaces), and the window static stayed. So building the structures alone doesn't bring the glass back while the miss dispatch is skipped.Not tried here yet, from the related reports: frame generation off (#2272 says that clears the glass static), and
VICTORY_ALIAS_TARGETS=0with #428 on (#2323 traced glass glitter to it on an RTX 2060 SUPER).@milesah3ad on GitHub · 2026-11-29 17:16 UTC · original
PR #2764 should fix this: the reflections' miss program is still left out for floors (the white-grain fix), but its output is now cleared to zero instead of keeping earlier frames' bytes, so glass no longer shows the coloured blocks/static. Tested on an RTX 5080 (clean with it, back with
VICTORY_RAYMISS_ZERO=0). A test on other cards would help get it merged.@saltdam36 on GitHub · 2026-11-29 20:59 UTC · original
Another data point, RX 7800 XT 16 GB (Series S profile, 1280×720 scene to 1080p), on a fork build that includes #428 and the FSR upscaler from #1236. Three runs from the same save:
VICTORY_RAYMISS_KEEP=1: reflections are right. Slight grain on faces and eyes; I did not notice any on floors.VICTORY_RAYMISS_KEEPunset: reflections are right.So on this card the left-out miss program is only visible with the upscaler on. Logs for all three runs available if useful.
@milesah3ad on GitHub · 2026-11-29 21:01 UTC · original
@saltdam36 Thanks, that fits: without the miss program the target keeps whatever was there, and an upscaler that reads it every frame shows that. Could you try PR #2764 on your RX 7800 XT with the FSR upscaler on and
VICTORY_RAYMISS_KEEPunset? It clears that output to zero instead of running the program, so the floors keep the grain fix. It's confirmed on four NVIDIA setups (Windows and Linux) but not yet on AMD.@saltdam36 on GitHub · 2026-11-29 21:14 UTC · original
@milesah3ad Tested #2764 on the RX 7800 XT 16 GB (Series S profile, 1280×720 scene to 1080p): the port's main of 2026-11-29 with the FSR upscaler from #1236 merged in and #2764 applied, FSR upscaler on (AMD's library reports 4.1.2),
VICTORY_RAYMISS_KEEPunset. Same save as my earlier three runs.VICTORY_RAYMISS_KEEP=1gave slight grain there).reflections' miss program left out: its output cleared to zero instead.A short session so far; I'll report back if anything shows up over a longer one.
@milesah3ad on GitHub · 2026-11-29 21:19 UTC · original
Thanks @saltdam36! That's the first AMD confirmation, and with the FSR upscaler too. I've noted it on the PR.