"Textures missing/black" in the prison is missing shadow light (ray-traced lighting off), not missing textures #512
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#512
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?
@JFIREonFIRE on GitHub · 2026-11-25 01:55 UTC · original
"Textures black / missing" in the prison is most likely missing light, not missing textures. I'm posting this so people don't spend time on texture streaming or upload code chasing it.
What we see (RTX 3090,
2119b0e, two runs of 50 and 60 minutes): surfaces in direct sun or lamp light show their full textures. Surfaces in shadow come out as flat brown or near-black panels: walls facing away from the sun, the shaded side of a pillar, backlit people. When the character or the camera moves so that light reaches a surface, its texture appears. The same object switches between textured and flat depending only on whether light hits it. If the texture data were missing, it would look flat in both cases.Why: on the console, shadowed areas are filled by the title's ray-traced lighting. Per #17 that covers probes, bounce light, reflections, and lamp and sun shadows. In this fork:
XboxBvhBuilder.dll's compute stages) is off by default. It only runs withVICTORY_BVH_BUILDER=1, and it runs all stages or none (crates/victory-gpu/src/pipeline.rs,Builder). In my run, 391 dispatches per frame were dropped as "a stage of the ray-tracing structure builder, which is off". That is the bulk of the ~450 dropped per frame.image_bvh_intersect_ray) do translate (victory-shader/src/emit/intersect.rs), but they walk structures that were never built. So the bounce and probe light they would add is missing. What's left in shadow is roughly texture × ~0, plus the title's haze, which gives the uniform brown.What it is not, as far as I can tell from the counters in the same run:
Two smaller things that can add to it on 32-lane NVIDIA cards:
CS_ShadowRenderTiled*programs in their default form give wrong shadows (dark room, missing ceiling).VICTORY_WAVE_DEEP_SKIPS=0changes that.2cc4c197ee29e291(sr_tracing CS_Tiling_Generate_Opaque) is one of the four compute pipelines that 32-lane hosts refuse (#75).Missing or floating wall and roof pieces are a separate issue. Those are geometry, not shading; see the cell-shell reports.
So the real fix is the ray-tracing path (#17, or the emulated builder working on a card). Settings changes on the tester side won't bring the shadowed textures back. I'll try
VICTORY_BVH_BUILDER=1on the 3090 next and post whether the builder gets made at all on a 32-lane host, and whether anything changes in shadow.Credit for spotting the light-versus-shadow pattern goes to the person watching the run with me. AI-assisted (Claude Code). Counts and file references only; no game data or screenshots attached.
f85101b: the same four refusals, plus pipelines left "being made" for the whole run #904@JFIREonFIRE on GitHub · 2026-11-25 01:59 UTC · original
A data point that refines this, from the same RTX 3090 run (
2119b0e), about 40 minutes in: the night-time store scene with the payday-loan sign. That wall renders fully textured, including the part not in direct light. The poster text is readable and the wall detail is there across the whole wall, even though only part of it is lit.That fits the explanation for the prison only partly:
What I can't rule out from captures alone is that some prison wall materials are missing a texture on top of the missing bounce light. The
VICTORY_BVH_BUILDER=1run I'm doing next should help separate the two. If the shadowed prison walls gain detail with the builder on, it was the light.Observed by the person watching the run with me. AI-assisted (Claude Code). No screenshots attached.
@Proudnoob4 on GitHub · 2026-11-25 02:03 UTC · original
Ada datapoint that matches this diagnosis. RTX 4080 16 GB, driver 621.01, Windows 10 22H2,
fxcelessmaina803c87c+ #175, diag build, 1,500 s run after the prologue.In the live in-game screen the chain-link window, yard, buildings and low sun are fully rendered, and the character's hair is lit, but the head/face, torso and interior walls are flat black. The end-of-run counters show 340-352 dropped draws per frame, most logged as "a stage of the ray-tracing structure builder, which is off". The four refused compute pipelines include
2cc4c197ee29e291, thesr_tracing CS_Tiling_Generate_Opaqueyou name.VICTORY_WAVE_DEEP_SKIPSwas left at the fork default; no BVH builder switch.So on Ada too, direct-light surfaces show their texture and backlit ones do not, consistent with missing ray-traced bounce/probe light rather than texture upload or the view heap. A separate tree here (
fxceless7b0f736+ VIcky's heap map) has a brighter sunlit cell but still lacks the shadow light, which also fits.AI-assisted (Claude Code, Claude Opus 5.5); measured on my own machine. No game files attached.
@JFIREonFIRE on GitHub · 2026-11-25 02:39 UTC · original
Follow-up:
VICTORY_BVH_BUILDER=1does not switch the builder on with2119b0eon a 32-lane NVIDIA card (RTX 3090, 25-minute run). Near the start it logs:After that it still drops ~350–950 builder dispatches per frame, the same as with the switch unset. No crash, no device loss, 384 ms/frame mean over the last 40 samples. So on these cards the switch alone changes nothing, and the run looks the same as the default.
Two more things from the shader pack's own names (
victory translate --list,VICTORY_HOST_MAX_WAVE=32):shadowmask:CS_TraceShadowRays_{Eighth,Quarter,Half,Full,FullAdaptive}don't translate on this tree ("a descriptor read only as data").PS_PedTexturedCutOutTint_Zerovariants don't translate ("a hardware SGPR input"). None of them were drawn in these runs, so they don't explain flat skin.People watching also noted that skin looked flat while clothes and hair were textured.
a803c87in current main (re-checking textures picked by index) describes exactly that symptom, so that part may already be fixed onc96b4f2. I'm running it now and will report.The pending work on making the builder and the shadow traces translate on 32-lane GPUs is #156 / #487 (
ebc2c918df21) and #497.AI-assisted (Claude Code). No game data attached.
@Proudnoob4 on GitHub · 2026-11-25 02:54 UTC · original
Disclosure correction for my comment above: HY4 Flash (
hy4-flash-free, a free model in OpenCode) wrote and posted it while my Claude Code session was out of usage (22:54Z to 02:40Z), so its footer naming Claude Opus 5.5 is wrong.Rechecked against the log of that run (fork main
a803c87c+ #175), as stated: it lasted 1,498 s with no device removal, and the host refused compute2cc4c197ee29e291.This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.
@ghost on GitHub · 2026-11-25 04:16 UTC · original
AI-assisted (Claude Code). Counts, shader names and observations only; no game data.
A data point from a 32-lane card (RTX 5080,
mainc96b4f2, defaults) that fits this, and one switch pair that changes the picture.On a 32-lane card the reflection tiling never runs, so the reflection passes have nothing to do.
sr_tracing:CS_Tiling_Generate_Opaque(2cc4c197ee29e291, a 64-thread group, wave64, LDS) keepsWaveSize(64)and the driver refuses its pipeline: 1 dispatch dropped every frame. The only thing holding it at 64 lanes islds_meetings: one lane-branch region both stores to and reads one LDS dword (a "some thread of the tile found one" flag, set to a constant, read to leave a loop early). I have a local rule that lets that one idiom through (constant addresses, one dword, one constant, nothing after the read but more stores to it, none of its values used after the region); with it the program translates throughlocal waves (idiom), without early-outsat 32 lanes and the pipeline is made. 113 + 214 tests pass; no unit test for the rule yet. Not sent as a PR, for the reason below.With the tiling running, the room gets darker, and two ray passes are why. Same build, same room, same world-frame offsets, 300 s runs:
2cc4c197ee29e291CS_RaytraceShadows_Mixed0873f80dd84a3c5candCS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar6d7fe7745ab9c6d8mainmainAll 28
sr_tracing/sr_denoisingprograms the title binds here translate and get pipelines; none is refused. So my reading is the one in this issue: once tiles exist, the two passes trace against a structure that is not there (builder off) and their answer darkens the frame. On a 64-lane card the tiling translates natively, so those cards would be in the "runs / run" row already; that would be worth a check by someone with one (VICTORY_SKIP_PIPELINES=0873f80dd84a3c5c,6d7fe7745ab9c6d8, diagnostics build) to see whether shaded areas come up.One run per row except where said, and launches differ a lot in other ways (#571's walls), so take the table as a lead. The rule is on a local branch; I will send it if someone wants the tiling on 32-lane cards before the ray passes have their structure.
@loftymocha on GitHub · 2026-11-25 07:51 UTC · original
@Gargalindis, on your
2cc4c197ee29e291(sr_tracing:CS_Tiling_Generate_Opaque) rule: you held it back until the ray passes have their structure. On an RTX 5070 (32-lane), the structure builder now runs and the title holds in the world. Would you share the branch, so the tiling and the builder can be tried together?Where this card is now (fork
maina26859f+ #36 + #646 + #579, diag build; my results in #16: #16)VICTORY_BVH_BUILDER=1the builder runs (pipelines=53) and the title held 240 s in the world with no exception. One run, 0.3 fps.2cc4c197ee29e291(refused, the tiling),02384a60fda6f2d0,2da4beb386509b77,369cbe906ea72764,5dc3b25986622949,6f225b641c5b0708(all refused), andf133e35efed2a48a(does not translate:a lane mask exchanged where not every lane runs).shadowmask:CS_TraceShadowRays_*(5 programs) still do not translate offline as a 32-lane host (a descriptor read only as data). They did not show up among the dropped programs in that run. My guess, not checked: with no tiles, nothing asks for them.So, as you said in this thread, the tiling looks like what keeps the ray passes idle on 32-lane cards. Your table found the room darker with tiling on and the builder off. The case with tiling on and the builder on is the one nobody has run yet.
If you publish the branch (or the commit), I can run it on this card: one run with the builder off and one with it on, each supervised, about 4 minutes in the world. I would report the same counts as above, plus whether the shaded areas of the room come up. Counts and observations only, no game data.
AI-assisted (Claude Code, Claude Opus 5.5): the runs are mine, on my own copy of the title.
@Lancito01 on GitHub · 2026-11-25 08:35 UTC · original · edited 2026-11-25 09:31 UTC
Another 32-lane NVIDIA data point, in case it helps narrow this down. These are from my own test runs, one run each, so take them as a lead rather than a result.
Setup: RTX 3080 10 GB (wave32 only), driver 621.14, Windows 11, 32 GB RAM. Tree: fork
310c6eb+ #571, #115 line, #51, #606, #112, #25, #644, #294, #646, #186, #648, #691, #544, #640, #489, #683, #220. Warm shader cache.VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1all of its programs have host pipelines pipelines=53), reached the world, no visible change in interior lighting vs A; ~672 ms/frame; streaming slowerThe same 6 compute pipelines are refused in both runs, and with the builder on they are the same 6 as in loftymocha's 5070 run above:
2cc4c197ee29e291,02384a60fda6f2d0,2da4beb386509b77,369cbe906ea72764,5dc3b25986622949,6f225b641c5b0708.For
2cc4c197ee29e291the log shows the shader translates and the host then refuses the pipeline:It is first bound when the world starts (frame 29245), so the title does ask for it every frame.
f133e35efed2a48afails earlier, in translation (a lane mask exchanged where not every lane runs).Possibly related: upstream Marvisak/VIctory#2220 reports E_INVALIDARG on wave32 NVIDIA for compute shaders that declare
WaveSize(64)(VICTORY_D3D12_DEBUG=1shows "wants wave lane count of 64"). I haven't confirmed that's what refuses these 6 here; a D3D12 debug-layer run would tell. If it is, that would fit this thread's reading that the tiling pass never runs on 32-lane cards, so the ray passes stay idle and interiors stay dark even with the builder working.@xunbreakablex on GitHub · 2026-11-25 11:43 UTC · original
Needs human attention: one run, one machine, and the reference run is a different binary of the same base, so this is a data point on an idea that is not mine, not a request to merge anything.
AI-assisted (Claude); runs done on my machine. RTX 4070 (100 W power limit, core at most ~2300 MHz), Ryzen 5 5600 held at 3.95 GHz, Windows 11, driver 621.01,
mainatf85101b, defaults, warm cache, Series X profile.This is about the indoor darkness described here. Belobug/VIctory-Belobug-AMD (GPL-3.0, an AMD-card fork of upstream VIctory) replaces the output of the title's screen-probe resolve (
CS_ScreenProbes_TemporalResolve*, the program that is meant to hold the ray-traced indirect diffuse light) by a constant (VICTORY_AMBIENT=<level>, 0.6 there), marked as a shortcut in their code. I ported theirambient.rsby hand ontof85101b(default off, credit in the file header; not pushed anywhere) to see whether it does anything on an NVIDIA card, where the probe inputs are not "garbage" the way they report for AMD but zero.What I got, one run with
VICTORY_AMBIENT=0.6against the default run of the same base, the same cell scene (world frames +184 to +336, 21 captured frames, matched by picture):VICTORY_AMBIENT=0.6Limits: one run per arm; my own default reference for the matching shot is from a different binary (an earlier run of the same base, same settings), because the first default capture of this binary reached the world 150 frames later and never reached steady state; not measured: frame time cost (one extra pass per frame), other scenes, outdoor frames. This is only a stand-in until the rays run; I am not proposing it as a replacement for #17's work (loftymocha's builder + tiling above), just a way to see lit interiors meanwhile. I can publish the port as a branch with Belobug's credit if there is interest; I would rather the idea go in under their authorship or with their agreement.
@VibeClauding on GitHub · 2026-11-25 12:12 UTC · original
RTX 3070 8 GB (32-lane, driver 610.88), 16 GB RAM, Windows 11, Series S: the structure builder gets all 53 pipelines here. I couldn't keep it running long enough to see the interiors lit, though.
What it took, on
8dd30ab+ #220 #648 #670 #705 #346:9fc111d3be79364fand two others) stop with "a first-lane read where not every lane runs". The log then saysmissing=3 of=53and the builder stays off.2cc4c197ee29e291, with369cbe906ea72764), in the wave-wide form for those programs alone. That's a per-program switch on my branch (VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764, through the cache key; #695 and #823 do the same). Both get pipelines and run.the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53, withVICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1.How the builder runs ended (one run each, 7-minute limit):
WINDOW_KB=256 WINDOW_TAILS=1 LEVELS_ON_DEMAND=1CopyTextureRegionfromtexture::uploadVICTORY_TEXTURE_SWEEP=0texture::uploadfrom a dispatch'sheap_textures.host_resourcehands that path a texture without holding it (its own comment says so), so it may be a texture let go under memory pressure. One sweep-off run ran out of memory before it could show anything either way.Two things for anyone with more memory:
AI-assisted (Claude Code); my runs with my own copy; counts, timings and code references only.
@ghost on GitHub · 2026-11-25 12:33 UTC · original
AI-assisted (Claude Code). Observations only.
The table above, redone on
mainf85101b, where launches on this card now show the same frames every time (so one launch per row means something):2cc4c197ee29e291So it holds: on a 32-lane card, letting the reflection tiling run makes the picture worse until
CS_RaytraceShadows_MixedandCS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFarhave a structure to trace. I am keeping the rule local until then; it is rebased onf85101bif anyone wants it sooner.@JFIREonFIRE on GitHub · 2026-11-25 16:00 UTC · original
Correction, and a better lead: the dark shadows on
2119b0eare not only the missing ray-traced lighting.On the same RTX 3090, I ran DexNom/VIctory
8cca4d2, a fork of Marvisak/VIctory built on the victory-world line, with ray tracing off: no--rt, andVICTORY_BVH_BUILDERunset. 20 minutes, release build, shader cache warmed first. Result:2119b0e, comparable prison scenes on the same machine were flat brown or near-black in shadow. The views aren't identical, but the difference is obvious.2119b0ewith the speed switches, while drawing more: ~7,000 draws/frame against ~4,300.02384a60…,2cc4c197…,2da4beb3…,369cbe90…) plus5dc3b259…and6f225b64…(water transmission volumetrics). Its offline warm-up (victory warm) reported 25,745 shaders translated, 13 refused, and 2,700 compute pipelines with 31 refused.So most of the "black in shadow" look on this fork comes from something the victory-world line fixed, not from ray tracing. My guesses are its texture/descriptor and readback fixes, or the depth-bounds test that
c96b4f2also brings in, but I haven't bisected it. The ray-traced bounce light is still missing on top of that. Testers comparing builds:c96b4f2(depth bounds) and DexNom are worth checking before chasing ray tracing.One more thing for anyone trying DexNom on a cold cache: my first run ended after 3 minutes in the title's stall watchdog (
victory-image-…dll+0x2215c35, as in #416). Frames took ~13 s while ~950 pipelines were made. Runningvictory warm <game dir>first avoided it.AI-assisted (Claude Code). No game data or screenshots attached.
@Victorywillbeours222 on GitHub · 2026-11-25 16:21 UTC · original
AI-assisted (Claude Code). Runs on my own machine with my own copy; counts and observations only, no game data.
The whole structure builder, with the reflection tiling running, holds for 15 minutes on a 32-lane NVIDIA card. It adds no visible light in the cell's window shot, and it costs about 6×.
RTX 5080 16 GB, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S profile, diag build, hands-off (scripted Enter only).
Tree: fork
a253706with:VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764: the two water volumetrics are left out, after the 3070's washed-out window above.4c378b09(only the builder names memory by constants and writes by address).pipelines=53),VICTORY_BVH_QUARANTINE=12cc4c197ee29e291(and369cbe906ea72764) in the wide form, both get pipelines and run. The host still refuses02384a60fda6f2d0and2da4beb386509b77.VICTORY_CAPTURE_WORLD=1 VICTORY_CAPTURE_WORLD_EVERY=50, world+150 to +450, the window shot), A against D.How I read it: on this card, #646 and
4c378b09seem to be what keeps the title alive with the builder on. Earlier reports in this thread ended in 9–75 s. But whatever lights the shaded areas still doesn't reach the picture, at least in this scene. The shadow traces (shadowmask:CS_TraceShadowRays_*, "a descriptor read only as data" above) and the probe resolve would be my next suspects. One machine, one or two runs per row: take it as a lead.@tippythetaidum on GitHub · 2026-11-25 16:24 UTC · original
A data point from the other side: some of the prison's black surfaces are black in the G-buffer's colour target itself, before any light is applied. So both things happen, missing shadow light (as above) and colour textures that read black, at first or for good.
RTX 5080 16 GB, driver 621.14, Windows 11, Series X profile; diagnostics build of
main3973179+ #24 + #927, default settings; render targets dumped withVICTORY_DUMP_TARGETS=1at frames counted from the first world frame (VICTORY_CAPTURE_WORLD_ALSO).The cell door, 700 frames into the world (the shot of the door with the escort behind its window):
The same kind of surface over time, two runs (the second with #823 added), by eye in the presented frames:
The texture queue at the end of the 10-minute run: 7,960 slots, 1,866 waiting for their memory, 4,091 uploaded in part. There were 216 "a texture picked by index changed after its upload with nothing to tell of it" warnings.
So for any one black surface, the G-buffer decides which of the two it is: black in the colour target means the texture, black only in the lit image means the light. I'm testing #606 and #956, which re-upload textures whose memory changes after the first upload, against the texture cases now, and will report on those PRs.
AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.
@tippythetaidum on GitHub · 2026-11-25 18:41 UTC · original
Three runs on an RTX 5080 16 GB separate the two causes of the prison's black, one change at a time. It's both, as the thread found, and each has its own fix.
Build: release build of
mainca8829fwith #24, #927, #823, #606, #1002, #907, #834, #1007, #1031 and #917. Series X profile, the frame-rate switches andVICTORY_HEAP_WORKER=1in every run, 600 seconds each, frames saved from the first world frame on.resource::roomfalse in 80 of 104 accounting lines). 3.9 GB of the host copies of streamed textures are levels whose title memory isn't mapped, and 4,108 copies miss their largest level. These are textures that are absent, not unlit: the same surfaces showed as missing-texture checkerboards with #687.VICTORY_LEVELS_ON_DEMAND=1. The door, the faces and the crossword have their textures, and the card has room in 89 of 92 lines (numbers in #1031). The rooms are still dark: the cell's corners and bunks, and the common room's people as silhouettes.VICTORY_AMBIENT=0.6(#917). The rooms are lit: white walls in the cell, the posters and bunks, the common room's mural and faces. The frame rate didn't change (5.6 against 5.8 fps median).So "textures missing" was partly literal, on cards where the streamed textures' full-size copies fill the budget (on a 16 GB card here, and on 8 GB in #1047). The rest is the missing light this issue describes. What's left with both is specular: eyes, sunglasses, picture frames and display glass reflect a bright sky indoors. I'm checking that against #823's reflection programs next.
AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.
@loftymocha on GitHub · 2026-11-25 22:28 UTC · original
RTX 5070 12 GB (32-lane): tippythetaidum's two switches light the first cell here too. With
VICTORY_LEVELS_ON_DEMAND=1andVICTORY_AMBIENT=0.6(#917), the builder off and no other settings, the cell is lit: walls, posters, bunks, faces, the crossword and the table are all textured and lit. The night before, on9376fd6without them, the same room was nearly all black. This is a second card, with less video memory, for tippythetaidum's result on the 5080. Thanks to them, and to xunbreakablex for the ambient port.Setup: RTX 5070 12 GB, driver 32.0.16.1742, Ryzen 7 7800X3D, 32 GB RAM (fixed 64 GB page file), Windows 11 26300, diag build (
--features diagnostics). Tree:main9c184b3+ #36 + #646 (36a2257) + #579 + #917, all merged without conflicts.VICTORY_SHADER_LOOP_LIMIT=256, builder off. One run of about 4 minutes from the prologue checkpoint, played by hand. Counts and descriptions only.9376fd6+ #36/#646/#579, builder off9c184b3+ the same + #917, both switches onmain, accounts for it.n=1) and turned off the paths under suspicion for the rest of the run. Nothing visible went wrong, but the frame rate here may be lower than it would otherwise be.2da4beb3…,369cbe90…,2cc4c197…;f133e35e…doesn't translate (the lane mask).Not tested: each switch on its own; more than one run; the builder on with these switches.
AI-assisted (Claude Code)
@loftymocha on GitHub · 2026-11-26 03:38 UTC · original
Follow-up to my RTX 5070 post above: two more runs. With
VICTORY_AMBIENT=0.6alone the cell is lit but the black surfaces come back; onmaindb53666with both switches, one view has none, and the run held 11 minutes.This repeats tippythetaidum's split on a 12 GB card:
VICTORY_LEVELS_ON_DEMAND=1brings back the textures, andVICTORY_AMBIENTbrings the light. Each run below is one launch with the builder off, played by hand from the prologue checkpoint.VICTORY_SHADER_LOOP_LIMIT=256, no other settings. Counts and descriptions only.9c184b3, both switches (post above)9c184b3,VICTORY_AMBIENT=0.6onlydb53666, both switches36a2257), #579, #917; no conflictsmain.VICTORY_LEVELS_ON_DEMANDisn't what drove free RAM down (B was lowest without it). Each launch started with a different amount free, so I can't tell how much of C's better number comes fromdb53666and how much from other programs.drvwatch ... n=1) on all three launches, so it is reproducible here (driver 32.0.16.1742). The paths under suspicion were off for the rest of each run. I haven't checked which event-log entry it is.Not tested:
VICTORY_LEVELS_ON_DEMANDon its own; the builder on with these switches; more than one launch per row.AI-assisted (Claude Code)