RTX 5060 / Win10: default path renders the prologue at 4.3-5.0 fps with zero shader refusals, but VICTORY_BVH_BUILDER crashes at victory-image+0x23cf683 #135

Open
opened 2026-11-26 06:36:17 +00:00 by github-bot · 6 comments
Owner

@⁠bailu12300 on GitHub · 2026-11-26 06:30 UTC · original

Machine: Windows 10 19045, i5-14490F, 32 GB RAM, RTX 5060 8 GB, 1440p, tree 9c23e8d plus the Agility 1.614 shim Windows 10 needs (two data exports, D3D12Core.dll in .\D3D12\), release build with --features diagnostics.

Two results, one good and one bad.

Good: with the default settings (no ray tracing) the prologue renders correctly and stays up. First entry to the first room: 4.3–5.0 fps, 200–232 ms a frame, 4 390–4 473 draws, GPU 123–153 ms, copy-back 33–35 ms, 0 being made, 0 shaders refused by the translator in the whole session. The picture is right: the red shirt, the hair's rim light, the poster, the door's glow, the cup on the table, and the character's back is lit rather than black. So the 32-lane path does work on a 32-lane NVIDIA host, which is the important part.

Statistics from that run: 28.0 GB private memory (your README says 40–46 GB; 28 GB here is just the prologue room), 1.6 GB free physical, so the machine is at the edge of the page file but nothing died.

Bad: VICTORY_BVH_BUILDER=1 (your -RayTracing) crashes before the world is reached. It gets through the boot screen and the first pipeline batch (host pipelines all made made=97 loaded=2448 started_early=2433), then:

VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 ... rbp 0x0
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  KERNEL32.DLL+0x17374
  #4  ntdll.dll+0x4cc91

Three compute programs were refused just before it (hash=39321a95223001ed, 77360df21e12ea43, 9fc111d3be79364f, all a lane mas…), then the write to a null page. +0x2215eca is the same frame that took down the XCL layer on this machine months ago, so it may be the same undefined-behaviour path rather than something specific to this fork.

What I would like to know:

  1. Is the null write in the builder expected to be guarded on a host whose WaveLaneCountMax is 32? Everything else about the 64-lane programs works here.
  2. The three a lane mas… compute refusals before the crash — are they the ray-tracing programs that the builder needs, or unrelated? If VICTORY_BVH_BUILDER needs programs the translator still refuses, the crash is downstream of a missing pipeline.

Happy to run with VICTORY_HOST_MAX_WAVE=32/translate-only or any other diagnostic you want, and to send the full log.

**@⁠bailu12300** on GitHub · 2026-11-26 06:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135) Machine: Windows 10 19045, i5-14490F, 32 GB RAM, RTX 5060 8 GB, 1440p, tree `9c23e8d` plus the Agility 1.614 shim Windows 10 needs (two data exports, `D3D12Core.dll` in `.\D3D12\`), release build with `--features diagnostics`. **Two results, one good and one bad.** Good: with the default settings (no ray tracing) the prologue renders correctly and stays up. First entry to the first room: 4.3–5.0 fps, 200–232 ms a frame, 4 390–4 473 draws, GPU 123–153 ms, copy-back 33–35 ms, `0 being made`, **0 shaders refused by the translator** in the whole session. The picture is right: the red shirt, the hair's rim light, the poster, the door's glow, the cup on the table, and the character's back is lit rather than black. So the 32-lane path does work on a 32-lane NVIDIA host, which is the important part. Statistics from that run: 28.0 GB private memory (your README says 40–46 GB; 28 GB here is just the prologue room), 1.6 GB free physical, so the machine is at the edge of the page file but nothing died. Bad: **`VICTORY_BVH_BUILDER=1` (your `-RayTracing`) crashes before the world is reached.** It gets through the boot screen and the first pipeline batch (`host pipelines all made made=97 loaded=2448 started_early=2433`), then: ``` VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 ... rbp 0x0 #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x17374 #4 ntdll.dll+0x4cc91 ``` Three compute programs were refused just before it (`hash=39321a95223001ed`, `77360df21e12ea43`, `9fc111d3be79364f`, all `a lane mas…`), then the write to a null page. `+0x2215eca` is the same frame that took down the XCL layer on this machine months ago, so it may be the same undefined-behaviour path rather than something specific to this fork. What I would like to know: 1. Is the null write in the builder expected to be guarded on a host whose `WaveLaneCountMax` is 32? Everything else about the 64-lane programs works here. 2. The three `a lane mas…` compute refusals before the crash — are they the ray-tracing programs that the builder needs, or unrelated? If `VICTORY_BVH_BUILDER` needs programs the translator still refuses, the crash is downstream of a missing pipeline. Happy to run with `VICTORY_HOST_MAX_WAVE=32`/translate-only or any other diagnostic you want, and to send the full log.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:36:17 +00:00
Author
Owner

@⁠bailu12300 on GitHub · 2026-11-26 07:08 UTC · original

More on NVIDIA (RTX 5060 8 GB, Win10 19045, i5-14490F, 32 GB), same tree 9c23e8d, release + diagnostics, warm shader cache. All runs through scripts\play.ps1 -Build release, nothing added by hand.

  1. Default preset (no -Safe) — 7.4-8.7 fps, 115-134 ms/frame, ~3900-4800 draws, 0 shader translation failures. But the picture is unusable: the room washes out to flat white within a few seconds of entering the cell block, and every surface is covered in posterised contour bands that look like rings spreading out from the lights. Looks like the VICTORY_AMBIENT stand-in (64x36 cells / 160x90 harmonics, upscaled) being amplified on top of the title's own light, plus the air term unbounded without rays.

  2. -Safe preset — 8 fps, 126 ms/frame, 4096 draws. Picture is fine: character silhouette, door light, readable interior, no white-out, mild banding only. So the wash-out is tied to what -Safe turns off / the ambient defaults, not to the port as such.

  3. Trying to tune it by hand made it worse, so I stopped: VICTORY_AMBIENT=constant:0.25 alone still washes out, AMBIENT=0.8 AMBIENT_AIR=0.25 gives the ring/contour bands very clearly, AMBIENT=0.2 AMBIENT_AIR=0.15 keeps bands but dimmer.

Questions: is VICTORY_AMBIENT meant to be usable on a 32-lane host at all, or is -Safe the intended path for NVIDIA? Does VICTORY_AMBIENT_AIR need a non-zero default to stop the indoor air from holding the sky's light? And on this host VICTORY_BVH_BUILDER=1 still faults at ictory-image-*.dll+0x23cf683 (write 0x0) about a minute in, so the real ray-traced path is untested here.

Logs and screenshots available if useful.

**@⁠bailu12300** on GitHub · 2026-11-26 07:08 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7185147026) More on NVIDIA (RTX 5060 8 GB, Win10 19045, i5-14490F, 32 GB), same tree 9c23e8d, release + diagnostics, warm shader cache. All runs through scripts\play.ps1 -Build release, nothing added by hand. 1) **Default preset (no -Safe)** — 7.4-8.7 fps, 115-134 ms/frame, ~3900-4800 draws, 0 shader translation failures. But the picture is unusable: the room washes out to flat white within a few seconds of entering the cell block, and every surface is covered in posterised contour bands that look like rings spreading out from the lights. Looks like the VICTORY_AMBIENT stand-in (64x36 cells / 160x90 harmonics, upscaled) being amplified on top of the title's own light, plus the air term unbounded without rays. 2) **-Safe preset** — 8 fps, 126 ms/frame, 4096 draws. Picture is fine: character silhouette, door light, readable interior, no white-out, mild banding only. So the wash-out is tied to what -Safe turns off / the ambient defaults, not to the port as such. 3) Trying to tune it by hand made it worse, so I stopped: VICTORY_AMBIENT=constant:0.25 alone still washes out, AMBIENT=0.8 AMBIENT_AIR=0.25 gives the ring/contour bands very clearly, AMBIENT=0.2 AMBIENT_AIR=0.15 keeps bands but dimmer. Questions: is VICTORY_AMBIENT meant to be usable on a 32-lane host at all, or is -Safe the intended path for NVIDIA? Does VICTORY_AMBIENT_AIR need a non-zero default to stop the indoor air from holding the sky's light? And on this host VICTORY_BVH_BUILDER=1 still faults at ictory-image-*.dll+0x23cf683 (write 0x0) about a minute in, so the real ray-traced path is untested here. Logs and screenshots available if useful.
Author
Owner

@⁠bailu12300 on GitHub · 2026-11-26 07:40 UTC · original

One more thing, again on -Safe (RTX 5060 8 GB, 32-lane host, Win10 19045, tree 9c23e8d) — this is now the only preset that is playable here: 7.3-7.6 fps, 130-138 ms/frame, ~1500 draws, interior readable.

But it still bursts to full white occasionally: the whole screen goes flat white for tens of seconds and then falls back to the normal image by itself, no crash, no device-removed, fps unaffected. I have seen it in the cell block and now repeatedly during the bank robbery sequence, which makes that section unplayable even though the frame is otherwise fine.

Also visible on -Safe, only faint: the coarse contour banding on large surfaces (looks like the 160x90 / 64x36 ambient grid upscaled — a face lit by a lamp gets concentric colour steps in the background).

My guess is the ambient stand-in's slow mean ("what is not on screen sends out what is", the last-seconds average) running away when the view hits a very bright region and then decaying back, since the fall-back is gradual and self-recovering. Is there a clamp on the estimate, or an intended preset for 32-lane hosts where both VICTORY_AMBIENT and VICTORY_AMBIENT_AIR are bounded? Happy to test any value you suggest and send logs.

Separately, I built your newest 249fe0 (renderer port 2 + shader store) but deleted it after a cold-cache run looked terrible (1.6-2.0 fps, 1300+ pipelines still being made, 440 log errors) — I know that is not a valid reading, so I am not calling it a regression. I will only re-test it once the shader store is fully warm, per your guidance.

**@⁠bailu12300** on GitHub · 2026-11-26 07:40 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7185712966) One more thing, again on -Safe (RTX 5060 8 GB, 32-lane host, Win10 19045, tree 9c23e8d) — this is now the only preset that is playable here: 7.3-7.6 fps, 130-138 ms/frame, ~1500 draws, interior readable. But it still bursts to full white occasionally: the whole screen goes flat white for tens of seconds and then falls back to the normal image by itself, no crash, no device-removed, fps unaffected. I have seen it in the cell block and now repeatedly during the bank robbery sequence, which makes that section unplayable even though the frame is otherwise fine. Also visible on -Safe, only faint: the coarse contour banding on large surfaces (looks like the 160x90 / 64x36 ambient grid upscaled — a face lit by a lamp gets concentric colour steps in the background). My guess is the ambient stand-in's slow mean ("what is not on screen sends out what is", the last-seconds average) running away when the view hits a very bright region and then decaying back, since the fall-back is gradual and self-recovering. Is there a clamp on the estimate, or an intended preset for 32-lane hosts where both VICTORY_AMBIENT and VICTORY_AMBIENT_AIR are bounded? Happy to test any value you suggest and send logs. Separately, I built your newest 249fe0 (renderer port 2 + shader store) but deleted it after a cold-cache run looked terrible (1.6-2.0 fps, 1300+ pipelines still being made, 440 log errors) — I know that is not a valid reading, so I am not calling it a regression. I will only re-test it once the shader store is fully warm, per your guidance.
Author
Owner

@⁠gomeaw on GitHub · 2026-11-26 07:43 UTC · original

The three hashes in your log are the prefix scans covered by #142. The current NVIDIA test branch includes that patch, #66's partial workgroup fix, and the current renderer changes. The synthetic prefix and partial-workgroup tests have passed the Windows DXIL validator on the earlier combined branch.

If you can rerun your RTX 5060 test with that commit and the same settings, the two useful lines are the builder's stage count and the first exception, if any. This would show whether reaching 53/53 changes the null-write failure you saw. The preview uses a distinct shader cache version, so its first run may rebuild translations.

**@⁠gomeaw** on GitHub · 2026-11-26 07:43 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7185761420) The three hashes in your log are the prefix scans covered by #142. The [current NVIDIA test branch](https://github.com/gomeaw/VIctory-7900XTX/tree/fc0271bd856cff17cc0a136837ac1586c0159835) includes that patch, #66's partial workgroup fix, and the current renderer changes. The synthetic prefix and partial-workgroup tests have passed the Windows DXIL validator on the earlier combined branch. If you can rerun your RTX 5060 test with that commit and the same settings, the two useful lines are the builder's stage count and the first exception, if any. This would show whether reaching 53/53 changes the null-write failure you saw. The preview uses a distinct shader cache version, so its first run may rebuild translations.
Author
Owner

@⁠bailu12300 on GitHub · 2026-11-26 08:19 UTC · original

Ran c0271b ( est/nvidia-current) on the RTX 5060 8 GB, Win10 19045, -Safe/-RayTracing through scripts\play.ps1 -Build release, fresh cache (the store was rebuilt).

Result: the null write is unchanged. Same fault, same offsets:

first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rbp 0x0 #0 +0x23cf683 #1 +0x2215c35 #2 +0x2215eca #3 KERNEL32.DLL+0x17374 (a thread start, so it faults on a worker thread, not the submitting one) #4 ntdll.dll+0x4cc91

So reaching 53/53 did not change it, or the structure builder never got that far on this host.

Three compute pipelines were refused right before it, all E_INVALIDARG (0x80070057):

08:16:52.588 refused shaders=[compute 02384a60fda6f2d0] 08:16:59.361 refused shaders=[compute 369cbe906ea72764] 08:17:06.362 refused shaders=[compute 2da4beb386509b77]

187
efus lines in the run overall, but those three are the ones in the 30 s before the fault.

The stage count is the part I cannot give you yet: I grepped the whole log for it and there is no line carrying a "53/53" or a stage tally — only shader translated stage="compute" per program, then host pipeline refused. If that count is behind an env var or a specific log level, tell me the name and I will rerun and paste it verbatim.

Next I can run 06ac8d ( ix/wave32-bvh-first-lane) if you want a second data point — say the word.

**@⁠bailu12300** on GitHub · 2026-11-26 08:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7186454236) Ran c0271b ( est/nvidia-current) on the RTX 5060 8 GB, Win10 19045, -Safe/-RayTracing through scripts\play.ps1 -Build release, fresh cache (the store was rebuilt). **Result: the null write is unchanged.** Same fault, same offsets: ` first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rbp 0x0 #0 +0x23cf683 #1 +0x2215c35 #2 +0x2215eca #3 KERNEL32.DLL+0x17374 (a thread start, so it faults on a worker thread, not the submitting one) #4 ntdll.dll+0x4cc91 ` So reaching 53/53 did not change it, or the structure builder never got that far on this host. **Three compute pipelines were refused right before it**, all E_INVALIDARG (0x80070057): ` 08:16:52.588 refused shaders=[compute 02384a60fda6f2d0] 08:16:59.361 refused shaders=[compute 369cbe906ea72764] 08:17:06.362 refused shaders=[compute 2da4beb386509b77] ` 187 efus lines in the run overall, but those three are the ones in the 30 s before the fault. **The stage count is the part I cannot give you yet**: I grepped the whole log for it and there is no line carrying a "53/53" or a stage tally — only shader translated stage="compute" per program, then host pipeline refused. If that count is behind an env var or a specific log level, tell me the name and I will rerun and paste it verbatim. Next I can run 06ac8d ( ix/wave32-bvh-first-lane) if you want a second data point — say the word.
Author
Owner

@⁠bailu12300 on GitHub · 2026-11-26 08:25 UTC · original

One more datapoint on c0271b with ray tracing off (play.ps1 -Build release -Safe, fresh shader store, RTX 5060 8 GB, Win10 19045).

On this host it renders nothing: the whole frame is black, no geometry, no HUD, no equipment/inventory UI — the only thing that ever appears is subtitle text, and even that is incomplete. Same window, same settings on 9c23e8d shows the cell block and the bank interior normally.

The log for that run, verbatim:

08:24:53 INFO victory_gpu::host: 1.6 fps, 641.7 ms/frame (96.3 preparing: copies 33.7 ms 82.9 MB, textures 4.4 ms 10.6 MB; 0.0 on the GPU; 66.6 copying back 24.7 MB), 3390 draws/frame, dropped 2114 without a host pipeline (831 being made) and 3135 indirect 08:24:47 INFO victory_gpu::host: 1.5 fps, 652.9 ms/frame ... 3190 draws/frame, dropped 2012 without a host pipeline (845 being made) and 3131 indirect

3131-3135 indirect draws dropped per frame is the whole of the indirect path, and ~2100 straight draws are dropped with 830-845 pipelines still being made — that is why the frame is empty. It never converges: these numbers stay flat for minutes, unlike 9c23e8d where eing made falls to 0 and the scene appears.

Also in the same run, per frame:

thelite memory asks: 300 kernel askings over 1848 MB (7.4 ms, 6414 pages of 4 KiB found written, 195 askings refused) buffer views off their copy's elements (they were refused and read zeros; VICTORY_VIEW_BYTES=0 refuses them again): 1834.0 asked per frame textures picked by index: 36114 uploaded so far (2073 MB), 21072 waiting, 9146 passed over unmapped

894
efused lines total, 0 shader translation failures.

Two questions:

  1. Is VICTORY_PORT_DESCRIPTORS (off by default) required for this branch to draw? I did not set it — if the renderer patches expect it on, that would explain an empty frame.
  2. Is there a cache/version mismatch I should clear by hand? I used a fresh VICTORY_CACHE_DIR, so if the new store keyed by translator version is correct this should be a cold build that converges, and it does not.

I can rerun with VICTORY_PORT_DESCRIPTORS=1 and send the numbers if you want that checked first.

**@⁠bailu12300** on GitHub · 2026-11-26 08:25 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7186572856) One more datapoint on c0271b with ray tracing **off** (play.ps1 -Build release -Safe, fresh shader store, RTX 5060 8 GB, Win10 19045). On this host it renders nothing: the whole frame is black, no geometry, no HUD, no equipment/inventory UI — the only thing that ever appears is subtitle text, and even that is incomplete. Same window, same settings on 9c23e8d shows the cell block and the bank interior normally. The log for that run, verbatim: ` 08:24:53 INFO victory_gpu::host: 1.6 fps, 641.7 ms/frame (96.3 preparing: copies 33.7 ms 82.9 MB, textures 4.4 ms 10.6 MB; 0.0 on the GPU; 66.6 copying back 24.7 MB), 3390 draws/frame, dropped 2114 without a host pipeline (831 being made) and 3135 indirect 08:24:47 INFO victory_gpu::host: 1.5 fps, 652.9 ms/frame ... 3190 draws/frame, dropped 2012 without a host pipeline (845 being made) and 3131 indirect ` 3131-3135 indirect draws dropped per frame is the whole of the indirect path, and ~2100 straight draws are dropped with 830-845 pipelines still being made — that is why the frame is empty. It never converges: these numbers stay flat for minutes, unlike 9c23e8d where eing made falls to 0 and the scene appears. Also in the same run, per frame: ` thelite memory asks: 300 kernel askings over 1848 MB (7.4 ms, 6414 pages of 4 KiB found written, 195 askings refused) buffer views off their copy's elements (they were refused and read zeros; VICTORY_VIEW_BYTES=0 refuses them again): 1834.0 asked per frame textures picked by index: 36114 uploaded so far (2073 MB), 21072 waiting, 9146 passed over unmapped ` 894 efused lines total, 0 shader translation failures. Two questions: 1. Is VICTORY_PORT_DESCRIPTORS (off by default) required for this branch to draw? I did not set it — if the renderer patches expect it on, that would explain an empty frame. 2. Is there a cache/version mismatch I should clear by hand? I used a fresh VICTORY_CACHE_DIR, so if the new store keyed by translator version is correct this should be a cold build that converges, and it does not. I can rerun with VICTORY_PORT_DESCRIPTORS=1 and send the numbers if you want that checked first.
Author
Owner

@⁠Dathinel on GitHub · 2026-11-27 01:15 UTC · original

On the guess about the stand-in's slow mean: RTX 3050 Laptop 4 GB (32-lane waves), Ryzen 7 7435HS, 24 GB RAM, Windows 11, Series S profile, a cool_fox-lineage tree with the ambient stand-in. In interiors a veil stayed over the picture for seconds after a cut. In one dumped frame the slow mean was 0.61 where the room's present value was 0.0063; at 4 to 6 fps it lags by seconds. VICTORY_AMBIENT_AIR did not reach it: the veil travels the ray-marched in-scatter (CS_Gather_Classified_* to CS_ReconstructRaymarchClassified*), not the froxel volume that switch caps. VICTORY_AMBIENT_SETTLE=250,3 plus a new VICTORY_AMBIENT_MARCH=3 removed it in three runs of three. Not checked: full-white bursts or contour bands; ours was a veil, not a white-out.

https://github.com/Dathinel/victory-4gb/pull/15

No game files or captures attached. Written with AI assistance (Claude Code).

**@⁠Dathinel** on GitHub · 2026-11-27 01:15 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/135#issuecomment-7207143926) On the guess about the stand-in's slow mean: RTX 3050 Laptop 4 GB (32-lane waves), Ryzen 7 7435HS, 24 GB RAM, Windows 11, Series S profile, a cool_fox-lineage tree with the ambient stand-in. In interiors a veil stayed over the picture for seconds after a cut. In one dumped frame the slow mean was 0.61 where the room's present value was 0.0063; at 4 to 6 fps it lags by seconds. `VICTORY_AMBIENT_AIR` did not reach it: the veil travels the ray-marched in-scatter (`CS_Gather_Classified_*` to `CS_ReconstructRaymarchClassified*`), not the froxel volume that switch caps. `VICTORY_AMBIENT_SETTLE=250,3` plus a new `VICTORY_AMBIENT_MARCH=3` removed it in three runs of three. Not checked: full-white bursts or contour bands; ours was a veil, not a white-out. https://github.com/Dathinel/victory-4gb/pull/15 No game files or captures attached. Written with AI assistance (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/avatarmanz--VIctory-7900XTX#135
No description provided.