"Textures missing/black" in the prison is missing shadow light (ray-traced lighting off), not missing textures #512

Open
opened 2026-11-26 03:45:02 +00:00 by github-bot · 16 comments
Owner

@⁠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:

  • The ray-tracing structure builder (XboxBvhBuilder.dll's compute stages) is off by default. It only runs with VICTORY_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.
  • The programs that trace rays (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:

  • Not the texture upload queue. It is ~10,800 slots during the first minutes, then 39–244 for the rest of the run.
  • Not the view-heap cap. It is capped at 1,000,000 of 1,245,184, but no draw in the captured frame I checked used a slot past 729,080.

Two smaller things that can add to it on 32-lane NVIDIA cards:

  • #62: the 14 CS_ShadowRenderTiled* programs in their default form give wrong shadows (dark room, missing ceiling). VICTORY_WAVE_DEEP_SKIPS=0 changes 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=1 on 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.

**@⁠JFIREonFIRE** on GitHub · 2026-11-25 01:55 UTC · [original](https://github.com/fxceless/victory-fork/issues/512) **"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: - The ray-tracing structure builder (`XboxBvhBuilder.dll`'s compute stages) is **off by default**. It only runs with `VICTORY_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. - The programs that trace rays (`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: - **Not the texture upload queue.** It is ~10,800 slots during the first minutes, then 39–244 for the rest of the run. - **Not the view-heap cap.** It is capped at 1,000,000 of 1,245,184, but no draw in the captured frame I checked used a slot past 729,080. **Two smaller things that can add to it on 32-lane NVIDIA cards:** - #62: the 14 `CS_ShadowRenderTiled*` programs in their default form give wrong shadows (dark room, missing ceiling). `VICTORY_WAVE_DEEP_SKIPS=0` changes 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=1` on 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:02 +00:00
Author
Owner

@⁠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:

  • The store is an interior lit by many local lamps and emissive signs. Those are ordinary rasterized lights, not ray-traced ones. So a surface outside the brightest spot still gets some direct light, and its texture shows. The prison yard and cells are lit mainly by the sun, and there everything outside the sun depends on the ray-traced bounce and probe light that is off.
  • It also shows that textures in general do load and upload fine in this build. The flat look in the prison is specific to shading there, not a general texture problem.

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=1 run 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.

**@⁠JFIREonFIRE** on GitHub · 2026-11-25 01:59 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7150198679) 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: - The store is an interior lit by many local lamps and emissive signs. Those are ordinary rasterized lights, not ray-traced ones. So a surface outside the brightest spot still gets some direct light, and its texture shows. The prison yard and cells are lit mainly by the sun, and there everything outside the sun depends on the ray-traced bounce and probe light that is off. - It also shows that textures in general do load and upload fine in this build. The flat look in the prison is specific to shading there, not a general texture problem. 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=1` run 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.
Author
Owner

@⁠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, fxceless main a803c87c + #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, the sr_tracing CS_Tiling_Generate_Opaque you name. VICTORY_WAVE_DEEP_SKIPS was 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 (fxceless 7b0f736 + 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.

**@⁠Proudnoob4** on GitHub · 2026-11-25 02:03 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7150264130) Ada datapoint that matches this diagnosis. RTX 4080 16 GB, driver 621.01, Windows 10 22H2, `fxceless` main `a803c87c` + #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`, the `sr_tracing CS_Tiling_Generate_Opaque` you name. `VICTORY_WAVE_DEEP_SKIPS` was 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 (`fxceless` `7b0f736` + 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.
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-25 02:39 UTC · original

Follow-up: VICTORY_BVH_BUILDER=1 does not switch the builder on with 2119b0e on a 32-lane NVIDIA card (RTX 3090, 25-minute run). Near the start it logs:

the ray-tracing structure builder stays off: not all of its programs have a host pipeline, and its stages run all or none missing=3 of=53

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):

  • The ray-traced shadow programs shadowmask:CS_TraceShadowRays_{Eighth,Quarter,Half,Full,FullAdaptive} don't translate on this tree ("a descriptor read only as data").
  • 10 PS_PedTexturedCutOutTint_Zero variants 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. a803c87 in current main (re-checking textures picked by index) describes exactly that symptom, so that part may already be fixed on c96b4f2. 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.

**@⁠JFIREonFIRE** on GitHub · 2026-11-25 02:39 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7151013523) Follow-up: **`VICTORY_BVH_BUILDER=1` does not switch the builder on with `2119b0e` on a 32-lane NVIDIA card** (RTX 3090, 25-minute run). Near the start it logs: > the ray-tracing structure builder stays off: not all of its programs have a host pipeline, and its stages run all or none missing=3 of=53 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`): - The ray-traced shadow programs `shadowmask:CS_TraceShadowRays_{Eighth,Quarter,Half,Full,FullAdaptive}` don't translate on this tree ("a descriptor read only as data"). - 10 `PS_PedTexturedCutOutTint_Zero` variants 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. `a803c87` in current main (re-checking textures picked by index) describes exactly that symptom, so that part may already be fixed on `c96b4f2`. 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.
Author
Owner

@⁠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 compute 2cc4c197ee29e291.

This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.

**@⁠Proudnoob4** on GitHub · 2026-11-25 02:54 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7151343498) **Disclosure correction for [my comment above](https://git.gtahub.st/github/fxceless--victory-fork/issues/512):** 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 compute `2cc4c197ee29e291`. *This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.*
Author
Owner

@⁠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, main c96b4f2, 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) keeps WaveSize(64) and the driver refuses its pipeline: 1 dispatch dropped every frame. The only thing holding it at 64 lanes is lds_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 through local waves (idiom), without early-outs at 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:

tiling 2cc4c197ee29e291 CS_RaytraceShadows_Mixed 0873f80dd84a3c5c and CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar 6d7fe7745ab9c6d8 room
skipped run lit as on main
runs run much darker; characters' clothes black
runs skipped (2 launches) lit; in the launch that had its walls, the window glass shows a blocky reflection of the room
skipped skipped lit as on main

All 28 sr_tracing / sr_denoising programs 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.

**@⁠ghost** on GitHub · 2026-11-25 04:16 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7152697655) *AI-assisted (Claude Code). Counts, shader names and observations only; no game data.* A data point from a 32-lane card (RTX 5080, `main` `c96b4f2`, 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) keeps `WaveSize(64)` and the driver refuses its pipeline: 1 dispatch dropped every frame. The only thing holding it at 64 lanes is `lds_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 through `local waves (idiom), without early-outs` at 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: | tiling `2cc4c197ee29e291` | `CS_RaytraceShadows_Mixed` `0873f80dd84a3c5c` and `CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar` `6d7fe7745ab9c6d8` | room | |---|---|---| | skipped | run | lit as on `main` | | runs | run | much darker; characters' clothes black | | runs | skipped (2 launches) | lit; in the launch that had its walls, the window glass shows a blocky reflection of the room | | skipped | skipped | lit as on `main` | All 28 `sr_tracing` / `sr_denoising` programs 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.
Author
Owner

@⁠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 main a26859f + #36 + #646 + #579, diag build; my results in #16: #16)

  • With VICTORY_BVH_BUILDER=1 the builder runs (pipelines=53) and the title held 240 s in the world with no exception. One run, 0.3 fps.
  • The room is as dark with the builder on as with it off, as observed on screen.
  • In that run's last drop summary, only 7 programs are dropped per frame, each about 1.0/frame: 2cc4c197ee29e291 (refused, the tiling), 02384a60fda6f2d0, 2da4beb386509b77, 369cbe906ea72764, 5dc3b25986622949, 6f225b641c5b0708 (all refused), and f133e35efed2a48a (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.

**@⁠loftymocha** on GitHub · 2026-11-25 07:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7156337356) @⁠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 `main` `a26859f` + #36 + #646 + #579, diag build; my results in #16: https://git.gtahub.st/github/fxceless--victory-fork/issues/16) - With `VICTORY_BVH_BUILDER=1` the builder runs (`pipelines=53`) and the title held 240 s in the world with no exception. One run, 0.3 fps. - The room is as dark with the builder on as with it off, as observed on screen. - In that run's last drop summary, only 7 programs are dropped per frame, each about 1.0/frame: `2cc4c197ee29e291` (refused, the tiling), `02384a60fda6f2d0`, `2da4beb386509b77`, `369cbe906ea72764`, `5dc3b25986622949`, `6f225b641c5b0708` (all refused), and `f133e35efed2a48a` (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._
Author
Owner

@⁠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.

Run Builder Result in the prison cell
A off Room dark except where direct sunlight falls; ceiling lamps don't light it; ~689 ms/frame
B VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 Builder runs (all of its programs have host pipelines pipelines=53), reached the world, no visible change in interior lighting vs A; ~672 ms/frame; streaming slower

The 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 2cc4c197ee29e291 the log shows the shader translates and the host then refuses the pipeline:

shader translated stage="compute" hash=2cc4c197ee29e291 user_data=3 samplers=1
host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 2cc4c197ee29e291]

It is first bound when the world starts (frame 29245), so the title does ask for it every frame. f133e35efed2a48a fails 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=1 shows "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.

**@⁠Lancito01** on GitHub · 2026-11-25 08:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7157231947) · 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. | Run | Builder | Result in the prison cell | |---|---|---| | A | off | Room dark except where direct sunlight falls; ceiling lamps don't light it; ~689 ms/frame | | B | `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1` | Builder runs (`all of its programs have host pipelines pipelines=53`), reached the world, **no visible change in interior lighting** vs A; ~672 ms/frame; streaming slower | **The 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 `2cc4c197ee29e291` the log shows the shader **translates** and the **host** then refuses the pipeline: ``` shader translated stage="compute" hash=2cc4c197ee29e291 user_data=3 samplers=1 host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 2cc4c197ee29e291] ``` It is first bound when the world starts (frame 29245), so the title does ask for it every frame. `f133e35efed2a48a` fails 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=1` shows "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.
Author
Owner

@⁠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, main at f85101b, 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 their ambient.rs by hand onto f85101b (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.6 against the default run of the same base, the same cell scene (world frames +184 to +336, 21 captured frames, matched by picture):

default VICTORY_AMBIENT=0.6
mean brightness (0-255) 31.4 60.7
pixels below luminance 12 67.2% 6.8%
fully black 8x8 blocks 63.8% 4.4%
fully black blocks on the character's shoulder/torso 73.5% 7.7%
magenta pixels 0% 0%
  • The program was found in 6 containers (name match inside the container bytes), the pass ran every frame at 2560x1440, no "not where it was expected" warning from the port, no device loss or error line.
  • By eye: with it on, the cell interior (tiled wall, blue door, shirt text, hair) is readable; by default the interior is nearly black. The window mesh is present in both. No coloured or magenta blocks (what they report on AMD without the stand-in).
  • Playing it live: a waiter's face that was black before was not black at first, then went dark again when the scene's lighting came in, so the constant does not fix everything. Fewer black squares on shoulders; cell textures loaded well.
  • The cost, as their README says: the light is the same everywhere, so interiors become flat-lit and the dim cinematic look is gone.

Limits: 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.

**@⁠xunbreakablex** on GitHub · 2026-11-25 11:43 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7161417537) **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, `main` at `f85101b`, defaults, warm cache, Series X profile. This is about the indoor darkness described here. [Belobug/VIctory-Belobug-AMD](https://github.com/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 their `ambient.rs` by hand onto `f85101b` (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.6` against the default run of the same base, the same cell scene (world frames +184 to +336, 21 captured frames, matched by picture): | | default | `VICTORY_AMBIENT=0.6` | |---|---|---| | mean brightness (0-255) | 31.4 | 60.7 | | pixels below luminance 12 | 67.2% | 6.8% | | fully black 8x8 blocks | 63.8% | 4.4% | | fully black blocks on the character's shoulder/torso | 73.5% | 7.7% | | magenta pixels | 0% | 0% | - The program was found in 6 containers (name match inside the container bytes), the pass ran every frame at 2560x1440, no "not where it was expected" warning from the port, no device loss or error line. - By eye: with it on, the cell interior (tiled wall, blue door, shirt text, hair) is readable; by default the interior is nearly black. The window mesh is present in both. No coloured or magenta blocks (what they report on AMD without the stand-in). - Playing it live: a waiter's face that was black before was not black at first, then went dark again when the scene's lighting came in, so the constant does not fix everything. Fewer black squares on shoulders; cell textures loaded well. - The cost, as their README says: the light is the same everywhere, so interiors become flat-lit and the dim cinematic look is gone. Limits: 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.
Author
Owner

@⁠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:

  • #646, for the thread-dimension dispatches.
  • #294's first two commits. Without them, 3 of 53 programs (9fc111d3be79364f and two others) stop with "a first-lane read where not every lane runs". The log then says missing=3 of=53 and the builder stays off.
  • The tiling pass that the 3080 report above found refused (2cc4c197ee29e291, with 369cbe906ea72764), 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.
  • Then the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53, with VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1.

How the builder runs ended (one run each, 7-minute limit):

run extra settings end, after the builder starts
78 none ~40 s: out of memory. Card 6.6 of 7.2 GB, shared 7,575 of 7,490 MB. Host copies of title memory 4 → 6.7 GB, most of it windows
79 WINDOW_KB=256 WINDOW_TAILS=1 LEVELS_ON_DEMAND=1 ~60 s: device removed, no breadcrumbs
80 same ~75 s: the title crashed in its own code (the #16 crash)
81 same + DRED ~50 s: crash in the user-mode driver during CopyTextureRegion from texture::upload
83 window savers only ~43 s: the same driver crash, same offset
85 window savers + VICTORY_TEXTURE_SWEEP=0 ~46 s: out of memory again. Shared 7,746 of 7,490 MB
  • While it runs: 0.4–1.5 fps (8–9 fps with it off).
  • On this machine the shared budget is half of system RAM (7.5 GB), and the builder takes it past that within a minute. The longer runs reported here were on 12 GB cards with 32–64 GB of RAM.
  • The driver crash (runs 81, 83) is in texture::upload from a dispatch's heap_textures. host_resource hands 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:

  1. The tiling pass in the wide form may be the missing piece behind "no visible change in interior lighting" on 32-lane cards.
  2. Keep the two water volumetrics out of the wide list for now. In the wide form they washed out the window view in every frame here (A/B on #823).

AI-assisted (Claude Code); my runs with my own copy; counts, timings and code references only.

**@⁠VibeClauding** on GitHub · 2026-11-25 12:12 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7162071131) 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:** - **#646**, for the thread-dimension dispatches. - **#294's first two commits.** Without them, 3 of 53 programs (`9fc111d3be79364f` and two others) stop with "a first-lane read where not every lane runs". The log then says `missing=3 of=53` and the builder stays off. - **The tiling pass that the 3080 report above found refused** (`2cc4c197ee29e291`, with `369cbe906ea72764`), 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. - Then `the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53`, with `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1`. **How the builder runs ended (one run each, 7-minute limit):** | run | extra settings | end, after the builder starts | |---|---|---| | 78 | none | ~40 s: out of memory. Card 6.6 of 7.2 GB, shared 7,575 of 7,490 MB. Host copies of title memory 4 → 6.7 GB, most of it windows | | 79 | `WINDOW_KB=256 WINDOW_TAILS=1 LEVELS_ON_DEMAND=1` | ~60 s: device removed, no breadcrumbs | | 80 | same | ~75 s: the title crashed in its own code (the #16 crash) | | 81 | same + DRED | ~50 s: crash in the user-mode driver during `CopyTextureRegion` from `texture::upload` | | 83 | window savers only | ~43 s: the same driver crash, same offset | | 85 | window savers + `VICTORY_TEXTURE_SWEEP=0` | ~46 s: out of memory again. Shared 7,746 of 7,490 MB | - While it runs: 0.4–1.5 fps (8–9 fps with it off). - On this machine the shared budget is half of system RAM (7.5 GB), and the builder takes it past that within a minute. The longer runs reported here were on 12 GB cards with 32–64 GB of RAM. - The driver crash (runs 81, 83) is in `texture::upload` from a dispatch's `heap_textures`. `host_resource` hands 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:** 1. The tiling pass in the wide form may be the missing piece behind "no visible change in interior lighting" on 32-lane cards. 2. Keep the two water volumetrics *out* of the wide list for now. In the wide form they washed out the window view in every frame here (A/B on #823). AI-assisted (Claude Code); my runs with my own copy; counts, timings and code references only.
Author
Owner

@⁠ghost on GitHub · 2026-11-25 12:33 UTC · original

AI-assisted (Claude Code). Observations only.

The table above, redone on main f85101b, where launches on this card now show the same frames every time (so one launch per row means something):

tiling 2cc4c197ee29e291 the two ray passes cell and opening scenes
skipped run lit: walls, orange uniform
runs (local rule) run clearly darker: uniform near black, walls barely visible, faces darker
runs (local rule) skipped as the first row

So it holds: on a 32-lane card, letting the reflection tiling run makes the picture worse until CS_RaytraceShadows_Mixed and CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar have a structure to trace. I am keeping the rule local until then; it is rebased on f85101b if anyone wants it sooner.

**@⁠ghost** on GitHub · 2026-11-25 12:33 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7162536637) *AI-assisted (Claude Code). Observations only.* The table above, redone on `main` `f85101b`, where launches on this card now show the same frames every time (so one launch per row means something): | tiling `2cc4c197ee29e291` | the two ray passes | cell and opening scenes | |---|---|---| | skipped | run | lit: walls, orange uniform | | runs (local rule) | run | clearly darker: uniform near black, walls barely visible, faces darker | | runs (local rule) | skipped | as the first row | So it holds: on a 32-lane card, letting the reflection tiling run makes the picture worse until `CS_RaytraceShadows_Mixed` and `CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar` have a structure to trace. I am keeping the rule local until then; it is rebased on `f85101b` if anyone wants it sooner.
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-25 16:00 UTC · original

Correction, and a better lead: the dark shadows on 2119b0e are 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, and VICTORY_BVH_BUILDER unset. 20 minutes, release build, shader cache warmed first. Result:

  • Surfaces out of direct light do get light and show full texture: the shaded side of a cell door, the cinder-block walls, and character skin and hair. On 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.
  • 3.6 fps over the last 40 samples (277 ms/frame, 257–313). That's about the same speed as 2119b0e with the speed switches, while drawing more: ~7,000 draws/frame against ~4,300.
  • No crash or device loss in 20 minutes. Peak private memory 26.6 GB.
  • Refused pipelines on 32-lane NVIDIA: the usual four (02384a60…, 2cc4c197…, 2da4beb3…, 369cbe90…) plus 5dc3b259… and 6f225b64… (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 c96b4f2 also 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. Running victory warm <game dir> first avoided it.

AI-assisted (Claude Code). No game data or screenshots attached.

**@⁠JFIREonFIRE** on GitHub · 2026-11-25 16:00 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7167515610) **Correction, and a better lead:** the dark shadows on `2119b0e` are 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`, and `VICTORY_BVH_BUILDER` unset. 20 minutes, release build, shader cache warmed first. Result: - Surfaces out of direct light **do get light and show full texture**: the shaded side of a cell door, the cinder-block walls, and character skin and hair. On `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. - 3.6 fps over the last 40 samples (277 ms/frame, 257–313). That's about the same speed as `2119b0e` with the speed switches, while drawing more: ~7,000 draws/frame against ~4,300. - No crash or device loss in 20 minutes. Peak private memory 26.6 GB. - Refused pipelines on 32-lane NVIDIA: the usual four (`02384a60…`, `2cc4c197…`, `2da4beb3…`, `369cbe90…`) plus `5dc3b259…` and `6f225b64…` (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 `c96b4f2` also 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. Running `victory warm <game dir>` first avoided it. AI-assisted (Claude Code). No game data or screenshots attached.
Author
Owner

@⁠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 a253706 with:

  • #823 (all three commits). VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764: the two water volumetrics are left out, after the 3070's washed-out window above.
  • #646.
  • #294's 4c378b09 (only the builder names memory by constants and writes by address).
run builder length errors / device loss min 6–10 GPU / copy-back a frame
A off 10 min 0 / 0 4.35–4.67 fps – / 45–50 ms
B on (pipelines=53), VICTORY_BVH_QUARANTINE=1 10 min 0 / 0 2.95 fps 12 ms / 72 ms
C, D on, no quarantine 15 min each 0 / 0 0.6–0.7 fps 540–600 ms / 600–650 ms
  • Tiling: with 2cc4c197ee29e291 (and 369cbe906ea72764) in the wide form, both get pipelines and run. The host still refuses 02384a60fda6f2d0 and 2da4beb386509b77.
  • Builder: no builder dispatch is dropped. With quarantine, the builder takes about 12 ms of GPU time a frame. Without it, about 540 ms, so the title presumably builds for real only once it gets its sizes and counters back.
  • Memory without quarantine: card 8.9 of 15.2 GB, shared 6.9 GB (4.8 GB with the builder off), process 27 GB private at peak. No out-of-memory.
  • Light: I compared the same world frames (VICTORY_CAPTURE_WORLD=1 VICTORY_CAPTURE_WORLD_EVERY=50, world+150 to +450, the window shot), A against D.
    • Mean luminance: 49–52 in A, 51 in D. The dark left edge: 18–20 in both.
    • By eye the shaded wall, the dark side of the room and the backlit character look the same.
    • At 0.7 fps a hands-off run doesn't reach the lamp-lit part of the cell, so that scene is untested.
  • Where the time goes: with the builder on, most of a frame is copying back (600 ms, about 45 MB) plus the builder's own GPU work.

How I read it: on this card, #646 and 4c378b09 seem 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.

**@⁠Victorywillbeours222** on GitHub · 2026-11-25 16:21 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7167841699) *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 `a253706` with: - #823 (all three commits). `VICTORY_WAVE_WIDE_ONLY=2cc4c197ee29e291,369cbe906ea72764`: the two water volumetrics are left out, after the 3070's washed-out window above. - #646. - #294's `4c378b09` (only the builder names memory by constants and writes by address). | run | builder | length | errors / device loss | min 6–10 | GPU / copy-back a frame | |---|---|---|---|---|---| | A | off | 10 min | 0 / 0 | 4.35–4.67 fps | – / 45–50 ms | | B | on (`pipelines=53`), `VICTORY_BVH_QUARANTINE=1` | 10 min | 0 / 0 | 2.95 fps | 12 ms / 72 ms | | C, D | on, no quarantine | 15 min each | 0 / 0 | 0.6–0.7 fps | 540–600 ms / 600–650 ms | - **Tiling:** with `2cc4c197ee29e291` (and `369cbe906ea72764`) in the wide form, both get pipelines and run. The host still refuses `02384a60fda6f2d0` and `2da4beb386509b77`. - **Builder:** no builder dispatch is dropped. With quarantine, the builder takes about 12 ms of GPU time a frame. Without it, about 540 ms, so the title presumably builds for real only once it gets its sizes and counters back. - **Memory without quarantine:** card 8.9 of 15.2 GB, shared 6.9 GB (4.8 GB with the builder off), process 27 GB private at peak. No out-of-memory. - **Light:** I compared the same world frames (`VICTORY_CAPTURE_WORLD=1 VICTORY_CAPTURE_WORLD_EVERY=50`, world+150 to +450, the window shot), A against D. - Mean luminance: 49–52 in A, 51 in D. The dark left edge: 18–20 in both. - By eye the shaded wall, the dark side of the room and the backlit character look the same. - At 0.7 fps a hands-off run doesn't reach the lamp-lit part of the cell, so that scene is untested. - **Where the time goes:** with the builder on, most of a frame is copying back (600 ms, about 45 MB) plus the builder's own GPU work. How I read it: on this card, #646 and `4c378b09` seem 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.
Author
Owner

@⁠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 main 3973179 + #24 + #927, default settings; render targets dumped with VICTORY_DUMP_TARGETS=1 at 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 first G-buffer target (2560x1440, format 27) holds the surfaces' base colours: the jumpsuit orange, the cinder blocks grey, the window frame blue. The door is pure black there.
  • The next target (the normals) has the door's shape. So the door is drawn, and its colour texture reads black.
  • The room seen through the cell's window is black in the colour target too.

The same kind of surface over time, two runs (the second with #823 added), by eye in the presented frames:

  • The cell's round table: black at +480 in both runs; light blue and textured at +576 in the run that showed it again.
  • Faces in the salon: black or red-blotched at +1440, fully textured 96 to 192 frames later (both runs). One face was still red-blotched at +1728.

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 16:24 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7167930558) 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 `main` `3973179` + #24 + #927, default settings; render targets dumped with `VICTORY_DUMP_TARGETS=1` at 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 first G-buffer target (2560x1440, format 27) holds the surfaces' base colours: the jumpsuit orange, the cinder blocks grey, the window frame blue. **The door is pure black there.** - The next target (the normals) has the door's shape. So the door is drawn, and its colour texture reads black. - The room seen through the cell's window is black in the colour target too. **The same kind of surface over time**, two runs (the second with #823 added), by eye in the presented frames: - The cell's round table: black at +480 in both runs; light blue and textured at +576 in the run that showed it again. - Faces in the salon: black or red-blotched at +1440, fully textured 96 to 192 frames later (both runs). One face was still red-blotched at +1728. **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.
Author
Owner

@⁠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 main ca8829f with #24, #927, #823, #606, #1002, #907, #834, #1007, #1031 and #917. Series X profile, the frame-rate switches and VICTORY_HEAP_WORKER=1 in every run, 600 seconds each, frames saved from the first world frame on.

  1. Base. The cell door is black, and so are Yolanda's face and her crossword and the escort guard's face. The card is over its line (resource::room false 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.
  2. + 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.
  3. + 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.

**@⁠tippythetaidum** on GitHub · 2026-11-25 18:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7171249085) 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 `main` `ca8829f` with #24, #927, #823, #606, #1002, #907, #834, #1007, #1031 and #917. Series X profile, the frame-rate switches and `VICTORY_HEAP_WORKER=1` in every run, 600 seconds each, frames saved from the first world frame on. 1. **Base.** The cell door is black, and so are Yolanda's face and her crossword and the escort guard's face. The card is over its line (`resource::room` false 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. 2. **+ `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. 3. **+ `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.
Author
Owner

@⁠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=1 and VICTORY_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, on 9376fd6 without 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: main 9c184b3 + #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 off 9c184b3 + the same + #917, both switches on
first cell nearly all black lit and textured
fps (status lines) 4.0-5.4 1.9-4.5 (3.6 in the corner)
draws/frame 4,100-7,100 4,100-5,800
exceptions 0 0 (window closed by me)
lowest free RAM 2.2 GB 0.6 GB
  • Still wrong: black strips along the tops of the walls (above the window and the posters), one grey smudge on a wall, and the flat look you'd expect from a constant.
  • Memory: free RAM went down to 0.6 GB with the builder off, against 2.2 GB the night before. I haven't checked which of the two switches, or the newer main, accounts for it.
  • Driver watch: 5 s into loading it logged one graphics-driver error in the system event log (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.
  • Refused as before: 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-25 22:28 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7176415436) **RTX 5070 12 GB (32-lane): tippythetaidum's two switches light the first cell here too.** With `VICTORY_LEVELS_ON_DEMAND=1` and `VICTORY_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, on `9376fd6` without 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: `main` `9c184b3` + #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 off | `9c184b3` + the same + #917, both switches on | |---|---|---| | first cell | nearly all black | lit and textured | | fps (status lines) | 4.0-5.4 | 1.9-4.5 (3.6 in the corner) | | draws/frame | 4,100-7,100 | 4,100-5,800 | | exceptions | 0 | 0 (window closed by me) | | lowest free RAM | 2.2 GB | **0.6 GB** | - **Still wrong:** black strips along the tops of the walls (above the window and the posters), one grey smudge on a wall, and the flat look you'd expect from a constant. - **Memory:** free RAM went down to 0.6 GB with the builder off, against 2.2 GB the night before. I haven't checked which of the two switches, or the newer `main`, accounts for it. - **Driver watch:** 5 s into loading it logged one graphics-driver error in the system event log (`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. - Refused as before: `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)
Author
Owner

@⁠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.6 alone the cell is lit but the black surfaces come back; on main db53666 with 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=1 brings back the textures, and VICTORY_AMBIENT brings 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.

A: 9c184b3, both switches (post above) B: 9c184b3, VICTORY_AMBIENT=0.6 only C: db53666, both switches
tree + #36, #646, #579, #917 the same build as A + #36, #646 (36a2257), #579, #917; no conflicts
cell lit and textured; black strips along the wall tops upper walls and ceiling lights lit; the cell door, the floor, the lower walls, parts of the bunks and some objects black; the uniform looks saturated red in the same view as B: the floor, the lower walls, the bunks and the wall panel textured and lit, no black shapes; the door dark brown with its window lit
length ~4 min (closed by me) 11 min (runner limit) 11 min (runner limit)
exceptions 0 0 0
fps, median of status lines 2.9 4.4 4.2 (3.8-4.5 in the last 10)
draws/frame, median ~3,700 ~6,500 ~5,700 (max 8,778)
free RAM at launch, lowest 20.1, 0.6 GB 16.4, 0.2 GB 23.3, 2.8 GB
  • B against C is the cleanest comparison here: the same spot in the cell, black in B and textured in C. A and B are the same build, so the textures come from the switch, not from the newer main.
  • Still wrong in C: one object in a corner is very dark, and there are jagged edges on hair and on the uniform's shoulder. I only saw one view of the cell in C, so I can't say whether the wall-top strips from A are gone everywhere.
  • Memory: VICTORY_LEVELS_ON_DEMAND isn'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 from db53666 and how much from other programs.
  • Speed: A was short and had less time in the world. B and C, both 11 minutes, are within 0.2 fps of each other.
  • Driver watch: exactly one graphics-driver error about 5 s after launch (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_DEMAND on its own; the builder on with these switches; more than one launch per row.

AI-assisted (Claude Code)

**@⁠loftymocha** on GitHub · 2026-11-26 03:38 UTC · [original](https://github.com/fxceless/victory-fork/issues/512#issuecomment-7181890775) **Follow-up to my RTX 5070 post above: two more runs. With `VICTORY_AMBIENT=0.6` alone the cell is lit but the black surfaces come back; on `main` `db53666` with 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=1` brings back the textures, and `VICTORY_AMBIENT` brings 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. | | A: `9c184b3`, both switches (post above) | B: `9c184b3`, `VICTORY_AMBIENT=0.6` only | C: `db53666`, both switches | |---|---|---|---| | tree | + #36, #646, #579, #917 | the same build as A | + #36, #646 (`36a2257`), #579, #917; no conflicts | | cell | lit and textured; black strips along the wall tops | upper walls and ceiling lights lit; **the cell door, the floor, the lower walls, parts of the bunks and some objects black**; the uniform looks saturated red | **in the same view as B: the floor, the lower walls, the bunks and the wall panel textured and lit**, no black shapes; the door dark brown with its window lit | | length | ~4 min (closed by me) | 11 min (runner limit) | 11 min (runner limit) | | exceptions | 0 | 0 | 0 | | fps, median of status lines | 2.9 | 4.4 | 4.2 (3.8-4.5 in the last 10) | | draws/frame, median | ~3,700 | ~6,500 | ~5,700 (max 8,778) | | free RAM at launch, lowest | 20.1, **0.6** GB | 16.4, **0.2** GB | 23.3, **2.8** GB | - **B against C** is the cleanest comparison here: the same spot in the cell, black in B and textured in C. A and B are the same build, so the textures come from the switch, not from the newer `main`. - **Still wrong in C:** one object in a corner is very dark, and there are jagged edges on hair and on the uniform's shoulder. I only saw one view of the cell in C, so I can't say whether the wall-top strips from A are gone everywhere. - **Memory:** `VICTORY_LEVELS_ON_DEMAND` isn'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 from `db53666` and how much from other programs. - **Speed:** A was short and had less time in the world. B and C, both 11 minutes, are within 0.2 fps of each other. - **Driver watch:** exactly one graphics-driver error about 5 s after launch (`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_DEMAND` on its own; the builder on with these switches; more than one launch per row. AI-assisted (Claude Code)
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#512
No description provided.