Ray-tracing structure builder stays off at 32ecacfa on a 32-lane host: three builder programs refused; they translate with VICTORY_LDS_WRITE_ONLY_OK=1 #1475

Closed
opened 2026-11-28 20:34:18 +00:00 by github-bot · 10 comments
Owner

@⁠CowboyBingus on GitHub · 2026-11-28 20:29 UTC · original

Card: NVIDIA GeForce RTX 5070 Ti, log line host wave lanes min=32 max=32, driver 621.24.

Build: main at 32ecacfa, plus:

  • the #1161 change, rebased onto 32ecacfa (same diff as its commit 1788f111). Its commit marks it off unless VICTORY_BVH_SIZE_COPY=1; that switch was not set in any run below;
  • one local follow-up commit to it, not in #1161 (tests, and late_size_copy split into a pure late(...));
  • two local window-activation commits (VICTORY_NO_ACTIVATE).

main is now at 923e38cc. emit/lds.rs is the same there as at 32ecacfa; emit/lower.rs is not. These runs were not repeated on 923e38cc.

Switches in every run: VICTORY_BVH_BUILDER=1, VICTORY_NO_ACTIVATE=1, VICTORY_KEYS=38:Enter,49:Enter,60:Enter,71:Enter (menu input).

What the log shows

With no other switch, three builder compute programs do not translate:

shader does not translate; its pipelines' draws are dropped stage="compute" hash=e63d22c4def9ba6a error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported
(same for 28918b7150a7aad5 and caa78b8ca62bc3d6)
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 which=["e63d22c4def9ba6a", "caa78b8ca62bc3d6", "28918b7150a7aad5"]
Build / extra switches e63d22c4 28918b71 caa78b8c Builder
32ecacfa build, none refused refused refused stays off, missing=3 of=53
32ecacfa build, VICTORY_LDS_WRITE_ONLY_OK=1 + VICTORY_WAVE_WHY=1 (2 runs) translated translated translated runs, pipelines=53
32ecacfa build, VICTORY_WAVE_WIDE=1 (1 run) refused translated translated stays off, missing=1 of=53
older main 63b902fe + the two window commits (no #1161), none translated translated translated runs, pipelines=53

In the one VICTORY_WAVE_WIDE=1 run, the device was removed (0x887A0006) about 80 s after start. The two VICTORY_LDS_WRITE_ONLY_OK=1 runs logged no device removal. The runner stopped the first at 71 s, when the builder log line appeared (builder runs at 70 s); the second ran to the 140 s time cap.

What the code diff shows

63b902fe does not contain #43 (merge 1789b869); 32ecacfa does.

  • #43 (commit 075785eb) replaces lds_meetings in emit/lower.rs with lds_analyze, which calls the new emit::lds::analyze.
  • In lds.rs, a pure write-only !all region needs Refinement A (disjoint ranges) or Refinement B (lane-private slots), unless VICTORY_LDS_WRITE_ONLY_OK=1 is set.
  • The switch is honoured only when the host's max wave is 32.
  • With the switch on, a region with reads and writes that fails both proofs is also accepted when it has no plain ds_read.

Other commits between 63b902fe and 32ecacfa also change emit/lower.rs: the merges of #35, #52 and #82. The two builds also differ outside main (#1161 change and the local follow-up commit). None of these were ruled out; no bisect was run.

Question

Should VICTORY_LDS_WRITE_ONLY_OK be the intended way to run these three programs on 32-lane hosts, or should lds::analyze accept them by default?

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-28 20:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475) **Card:** NVIDIA GeForce RTX 5070 Ti, log line `host wave lanes min=32 max=32`, driver 621.24. **Build:** main at 32ecacfa, plus: - the [#1161](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1161) change, rebased onto 32ecacfa (same diff as its commit 1788f111). Its commit marks it off unless `VICTORY_BVH_SIZE_COPY=1`; that switch was not set in any run below; - one local follow-up commit to it, not in [#1161](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1161) (tests, and `late_size_copy` split into a pure `late(...)`); - two local window-activation commits (`VICTORY_NO_ACTIVATE`). main is now at 923e38cc. `emit/lds.rs` is the same there as at 32ecacfa; `emit/lower.rs` is not. These runs were not repeated on 923e38cc. **Switches in every run:** `VICTORY_BVH_BUILDER=1`, `VICTORY_NO_ACTIVATE=1`, `VICTORY_KEYS=38:Enter,49:Enter,60:Enter,71:Enter` (menu input). ### What the log shows With no other switch, three builder compute programs do not translate: ``` shader does not translate; its pipelines' draws are dropped stage="compute" hash=e63d22c4def9ba6a error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported (same for 28918b7150a7aad5 and caa78b8ca62bc3d6) 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 which=["e63d22c4def9ba6a", "caa78b8ca62bc3d6", "28918b7150a7aad5"] ``` | Build / extra switches | e63d22c4 | 28918b71 | caa78b8c | Builder | |---|---|---|---|---| | 32ecacfa build, none | refused | refused | refused | stays off, missing=3 of=53 | | 32ecacfa build, `VICTORY_LDS_WRITE_ONLY_OK=1` + `VICTORY_WAVE_WHY=1` (2 runs) | translated | translated | translated | runs, pipelines=53 | | 32ecacfa build, `VICTORY_WAVE_WIDE=1` (1 run) | refused | translated | translated | stays off, missing=1 of=53 | | older main 63b902fe + the two window commits (no [#1161](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1161)), none | translated | translated | translated | runs, pipelines=53 | In the one `VICTORY_WAVE_WIDE=1` run, the device was removed (0x887A0006) about 80 s after start. The two `VICTORY_LDS_WRITE_ONLY_OK=1` runs logged no device removal. The runner stopped the first at 71 s, when the builder log line appeared (builder runs at 70 s); the second ran to the 140 s time cap. ### What the code diff shows 63b902fe does not contain [#43](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/43) (merge 1789b869); 32ecacfa does. - [#43](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/43) (commit 075785eb) replaces `lds_meetings` in `emit/lower.rs` with `lds_analyze`, which calls the new `emit::lds::analyze`. - In `lds.rs`, a pure write-only `!all` region needs Refinement A (disjoint ranges) or Refinement B (lane-private slots), unless `VICTORY_LDS_WRITE_ONLY_OK=1` is set. - The switch is honoured only when the host's max wave is 32. - With the switch on, a region with reads and writes that fails both proofs is also accepted when it has no plain `ds_read`. Other commits between 63b902fe and 32ecacfa also change `emit/lower.rs`: the merges of [#35](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/35), [#52](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/52) and [#82](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/82). The two builds also differ outside main ([#1161](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1161) change and the local follow-up commit). None of these were ruled out; no bisect was run. ### Question Should `VICTORY_LDS_WRITE_ONLY_OK` be the intended way to run these three programs on 32-lane hosts, or should `lds::analyze` accept them by default? 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:34:18 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 20:29 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 20:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7245322999) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-28 20:31 UTC · original

Additional independent shader-translation observation on an RTX 4060 desktop (8 GB), Linux, NVIDIA driver 620.73.04, GE-Proton11-14 / vkd3d-proton 3.2.0.

I checked the retained renderer logs from four earlier isolated startup runs: three runs of a clean source build at 32ecacfae73f40e13b2045e125c8bc4b9159419d and one of a clean source build at 923e38cc8c92cd1c42090076382138538f2bb487. All reported host wave lanes min=32 max=32 and requested the RT structure builder. All four logged exactly one translation refusal for the same compute shader:

shader does not translate; its pipelines' draws are dropped stage="compute" hash=e63d22c4def9ba6a error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported

Neither of the other two shader hashes in your report appeared in these logs. None of the runs recorded an explicit builder success or all-or-none refusal message; each ended during startup before a visible live 3D scene. Thus this independently corroborates one specific shader translation failure on 923e38c, not your complete three-program failure or the cause of the startup problem. I have not tested the alternate LDS policies or #1450 on this GPU, and am not claiming any ray-tracing correctness or performance improvement.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

**@⁠ArturoWolff** on GitHub · 2026-11-28 20:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7245350225) Additional independent **shader-translation observation on an RTX 4060 desktop (8 GB)**, Linux, NVIDIA driver 620.73.04, GE-Proton11-14 / vkd3d-proton 3.2.0. I checked the retained renderer logs from four earlier isolated startup runs: three runs of a clean source build at `32ecacfae73f40e13b2045e125c8bc4b9159419d` and one of a clean source build at `923e38cc8c92cd1c42090076382138538f2bb487`. All reported `host wave lanes min=32 max=32` and requested the RT structure builder. All four logged exactly one translation refusal for the same compute shader: ```text shader does not translate; its pipelines' draws are dropped stage="compute" hash=e63d22c4def9ba6a error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported ``` Neither of the other two shader hashes in your report appeared in these logs. None of the runs recorded an explicit builder success or all-or-none refusal message; each ended during startup before a visible live 3D scene. Thus this independently corroborates **one specific shader translation failure on 923e38c**, not your complete three-program failure or the cause of the startup problem. I have not tested the alternate LDS policies or #1450 on this GPU, and am not claiming any ray-tracing correctness or performance improvement. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-28 20:57 UTC · original

@⁠ArturoWolff thanks for checking. In our run without any wave or LDS switch (the first table row above), the three builder programs' refusals are logged within 23 ms of each other, about 67 s before the builder's "stays off" line:

19:13:15.252350Z  shader does not translate ... hash=e63d22c4def9ba6a ... no wave32 lowering for this wave64 program is not supported
19:13:15.269643Z  shader does not translate ... hash=28918b7150a7aad5 ... no wave32 lowering for this wave64 program is not supported
19:13:15.274505Z  shader does not translate ... hash=caa78b8ca62bc3d6 ... no wave32 lowering for this wave64 program is not supported

In the one run of ours with VICTORY_WAVE_WIDE=1, of the three builder programs only e63d22c4def9ba6a was refused; the other two translated (third table row).

You wrote that neither 28918b7150a7aad5 nor caa78b8ca62bc3d6 appears in your logs. In our run their refusals come 17 ms and 22 ms after e63d22c4def9ba6a's. Was VICTORY_WAVE_WIDE (or any other VICTORY_LDS_* / VICTORY_WAVE_* switch) set in your runs?

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-28 20:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7245669502) @⁠ArturoWolff thanks for checking. In our run without any wave or LDS switch (the first table row above), the three builder programs' refusals are logged within 23 ms of each other, about 67 s before the builder's "stays off" line: ``` 19:13:15.252350Z shader does not translate ... hash=e63d22c4def9ba6a ... no wave32 lowering for this wave64 program is not supported 19:13:15.269643Z shader does not translate ... hash=28918b7150a7aad5 ... no wave32 lowering for this wave64 program is not supported 19:13:15.274505Z shader does not translate ... hash=caa78b8ca62bc3d6 ... no wave32 lowering for this wave64 program is not supported ``` In the one run of ours with `VICTORY_WAVE_WIDE=1`, of the three builder programs only e63d22c4def9ba6a was refused; the other two translated (third table row). You wrote that neither 28918b7150a7aad5 nor caa78b8ca62bc3d6 appears in your logs. In our run their refusals come 17 ms and 22 ms after e63d22c4def9ba6a's. Was `VICTORY_WAVE_WIDE` (or any other `VICTORY_LDS_*` / `VICTORY_WAVE_*` switch) set in your runs? 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot changed title from Ray-tracing structure builder stays off at 32ecacfa on a 32-lane host: three builder programs refused; they translate with VICTORY_LDS_WRITE_ONLY_OK=1 to [bug][shaders][NVIDIA][RAYTRACING] Ray-tracing structure builder stays off at 32ecacfa on a 32-lane host: three builder programs refused; they translate with VICTORY_LDS_WRITE_ONLY_OK=1 2026-11-28 21:08:11 +00:00
github-bot changed title from [bug][shaders][NVIDIA][RAYTRACING] Ray-tracing structure builder stays off at 32ecacfa on a 32-lane host: three builder programs refused; they translate with VICTORY_LDS_WRITE_ONLY_OK=1 to Ray-tracing structure builder stays off at 32ecacfa on a 32-lane host: three builder programs refused; they translate with VICTORY_LDS_WRITE_ONLY_OK=1 2026-11-28 21:37:26 +00:00
Author
Owner

@⁠AiToR51 on GitHub · 2026-11-28 23:23 UTC · original

Reproduced without the game on a second 32-lane card, and #1590 takes all three.

Host: RTX 3080 10 GB, driver 621.40, Windows 10 22H2 (19045), Agility SDK 1.620.

Check: an empty cache for every run, VICTORY_HOST_WAVE=32, and the three hashes in a file. The builder's programs are in XboxBvhBuilder.dll, not shaders.rpf:

VICTORY_CACHE_DIR=<empty folder> VICTORY_HOST_WAVE=32 victory translate <game>/XboxBvhBuilder.dll --warm rt-hashes.txt
Build Switches e63d22c4, 28918b71, caa78b8c
main d4b5d517 none 0 translated, 3 do not translate
main d4b5d517 VICTORY_LDS_WRITE_ONLY_OK=1 3 translated
#1590 8e0e3536 none 3 translated; with VICTORY_WAVE_WHY=1, all three print LDS-WRITE-ONLY last resort
32ecacfa with #43 reverted none 3 translated

So it's the same cause as #1435: since #43 the write-only shortcut is opt-in. #1590 fixes the builder too, not only the eight programs listed there.

I have only checked translation. I haven't run the builder in game on main or on #1590.

**@⁠AiToR51** on GitHub · 2026-11-28 23:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7247394430) Reproduced without the game on a second 32-lane card, and #1590 takes all three. **Host:** RTX 3080 10 GB, driver 621.40, Windows 10 22H2 (19045), Agility SDK 1.620. **Check:** an empty cache for every run, `VICTORY_HOST_WAVE=32`, and the three hashes in a file. The builder's programs are in `XboxBvhBuilder.dll`, not `shaders.rpf`: ``` VICTORY_CACHE_DIR=<empty folder> VICTORY_HOST_WAVE=32 victory translate <game>/XboxBvhBuilder.dll --warm rt-hashes.txt ``` | Build | Switches | e63d22c4, 28918b71, caa78b8c | |---|---|---| | `main` d4b5d517 | none | 0 translated, 3 do not translate | | `main` d4b5d517 | `VICTORY_LDS_WRITE_ONLY_OK=1` | 3 translated | | #1590 8e0e3536 | none | 3 translated; with `VICTORY_WAVE_WHY=1`, all three print `LDS-WRITE-ONLY last resort` | | 32ecacfa with #43 reverted | none | 3 translated | So it's the same cause as #1435: since #43 the write-only shortcut is opt-in. #1590 fixes the builder too, not only the eight programs listed there. I have only checked translation. I haven't run the builder in game on `main` or on #1590.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 23:27 UTC · original

@⁠AiToR51, thank you for checking the builder too. I've added it to #1590's description, as covering #1475's three programs: translation checked, the builder not yet run in game.

**@⁠kibagami-nc** on GitHub · 2026-11-28 23:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7247438795) @⁠AiToR51, thank you for checking the builder too. I've added it to #1590's description, as covering #1475's three programs: translation checked, the builder not yet run in game.
Author
Owner

@⁠tupacfan04 on GitHub · 2026-11-28 23:45 UTC · original

Same three refusals on a build with main 923e38c merged in, on a third 32-lane card, and here the run does not survive it.

  • GPU: NVIDIA GeForce RTX 5070 12 GB (driver 621.40), host wave lanes min=32 max=32
  • Windows: 11. i9-14900F, 32 GB
  • Profile: Series X, 2560x1440, DLSS Quality, frame generation 2x, VICTORY_BVH_BUILDER=1 (the launcher's VICTORY_BVH_MISS=1 default also in effect), no wave or LDS switch
  • Build: main 923e38c merged into a local test branch (off-by-default switches and log lines; none touches the wave-width choice with its switches unset). Not plain main, so weigh it accordingly.

What happens (5 of 5 starts): the three programs are refused about 2 s after start (e63d22c4def9ba6a, 28918b7150a7aad5, caa78b8ca62bc3d6, same "no wave32 lowering for this wave64 program" text), the builder "stays off, missing=3 of=53" at frame 2120, and then that one frame lasts about 30 s: no more fps lines, 40 compute host pipelines made one at a time, and the title's own crash handler ends the process. Runs without the builder on the same build load and play normally (13.9–16.7 fps at 6–8k draws).

The shader preload here was made without VICTORY_BVH_BUILDER=1, so the builder-only compute pipelines were cold, and with the compute wait from #243 on by default each dispatch waited for its pipeline. That is my reading of why the frame stalls rather than something I have isolated; I have not tried VICTORY_PIPELINE_COMPUTE_WAIT=0 yet.

Before this merge (a build on main 63b902f) the same switch ran the builder on this card at 9–10.7 fps, so for anyone measuring ray tracing on 12 GB this is a regression from "slow" to "does not load".

Play log of one of the five starts: https://gist.github.com/tupacfan04/c1e461391eda3512416060ccea274db9

Next from me: the same profile with VICTORY_LDS_WRITE_ONLY_OK=1 and a preload made with the builder switches set, in-game, with fps. I will post the result here and on #1590.

**@⁠tupacfan04** on GitHub · 2026-11-28 23:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7247646479) Same three refusals on a build with main **923e38c** merged in, on a third 32-lane card, and here the run does not survive it. - **GPU:** NVIDIA GeForce RTX 5070 12 GB (driver 621.40), `host wave lanes min=32 max=32` - **Windows:** 11. i9-14900F, 32 GB - **Profile:** Series X, 2560x1440, DLSS Quality, frame generation 2x, `VICTORY_BVH_BUILDER=1` (the launcher's `VICTORY_BVH_MISS=1` default also in effect), no wave or LDS switch - **Build:** main 923e38c merged into a local test branch (off-by-default switches and log lines; none touches the wave-width choice with its switches unset). Not plain main, so weigh it accordingly. **What happens (5 of 5 starts):** the three programs are refused about 2 s after start (`e63d22c4def9ba6a`, `28918b7150a7aad5`, `caa78b8ca62bc3d6`, same "no wave32 lowering for this wave64 program" text), the builder "stays off, missing=3 of=53" at frame 2120, and then that one frame lasts about 30 s: no more fps lines, 40 compute host pipelines made one at a time, and the title's own crash handler ends the process. Runs without the builder on the same build load and play normally (13.9–16.7 fps at 6–8k draws). The shader preload here was made **without** `VICTORY_BVH_BUILDER=1`, so the builder-only compute pipelines were cold, and with the compute wait from #243 on by default each dispatch waited for its pipeline. That is my reading of why the frame stalls rather than something I have isolated; I have not tried `VICTORY_PIPELINE_COMPUTE_WAIT=0` yet. Before this merge (a build on main 63b902f) the same switch ran the builder on this card at 9–10.7 fps, so for anyone measuring ray tracing on 12 GB this is a regression from "slow" to "does not load". Play log of one of the five starts: https://gist.github.com/tupacfan04/c1e461391eda3512416060ccea274db9 Next from me: the same profile with `VICTORY_LDS_WRITE_ONLY_OK=1` and a preload made with the builder switches set, in-game, with fps. I will post the result here and on #1590.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 23:53 UTC · original

@⁠tupacfan04, for the run you plan: #1590 gives these three programs exactly what VICTORY_LDS_WRITE_ONLY_OK=1 gives, by default. AiToR51 checked that for e63d22c4…, 28918b71… and caa78b8c… above. So a run on #1590's branch would answer both questions at once. To build it on top of your main:

git fetch https://github.com/trustno1-coder/VIctory-NVIDIA pull/1590/head
git merge --no-edit FETCH_HEAD

Your reading of the 30 s frame fits #628's watchdog: the title ends itself after 30 one-second ticks without a frame, and 40 cold compute pipelines made one at a time inside one frame would do it. A preload made with VICTORY_BVH_BUILDER=1 set should keep those pipelines warm.

**@⁠kibagami-nc** on GitHub · 2026-11-28 23:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7247734651) @⁠tupacfan04, for the run you plan: #1590 gives these three programs exactly what `VICTORY_LDS_WRITE_ONLY_OK=1` gives, by default. AiToR51 checked that for `e63d22c4…`, `28918b71…` and `caa78b8c…` above. So a run on #1590's branch would answer both questions at once. To build it on top of your main: ```powershell git fetch https://github.com/trustno1-coder/VIctory-NVIDIA pull/1590/head git merge --no-edit FETCH_HEAD ``` Your reading of the 30 s frame fits #628's watchdog: the title ends itself after 30 one-second ticks without a frame, and 40 cold compute pipelines made one at a time inside one frame would do it. A preload made with `VICTORY_BVH_BUILDER=1` set should keep those pipelines warm.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-29 01:53 UTC · original · edited 2026-11-29 01:56 UTC

@⁠CowboyBingus Thanks for the question. I went back to the four retained launch commands and engine startup switch summaries (three at 32ecacfa, one at 923e38cc). None contains an explicit VICTORY_WAVE_WIDE, VICTORY_WAVE_*, VICTORY_LDS_*, or VICTORY_HOST_WAVE override. The startup summaries do show VICTORY_BVH_BUILDER=1 in all four. They ran with fresh isolated caches/prefixes, GE-Proton11-14, and the RTX 4060 desktop. This is a record of the requested and logged configuration, not proof that the other two shaders successfully translated: their absence from our logs is still unexplained. Thanks also for the additional #1590 translation evidence; I will keep translation success separate from confirmed builder execution and visual correctness.

Follow-up on current main: clean source build d148613431e1c3b232d06ed05f456c3af3535ac7, same GE-Proton11-14 and explicit graphics settings, fresh cache/prefix. The previous 923e38cc log contained four distinct wave32 lowering refusals; this new run contained one, e63d22c4def9ba6a, which is the builder program reported here. No explicit builder success or refusal was observed. This time the startup artwork and legal menu were visible, but the run still ended with play exit 5 and a black screen before verified 3D gameplay. This is a whole-revision comparison with different default translator behavior, not proof that a particular change repaired the other three programs or the RT builder.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

**@⁠ArturoWolff** on GitHub · 2026-11-29 01:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7249083432) · edited 2026-11-29 01:56 UTC @⁠CowboyBingus Thanks for the question. I went back to the four retained launch commands and engine startup switch summaries (three at `32ecacfa`, one at `923e38cc`). None contains an explicit `VICTORY_WAVE_WIDE`, `VICTORY_WAVE_*`, `VICTORY_LDS_*`, or `VICTORY_HOST_WAVE` override. The startup summaries do show `VICTORY_BVH_BUILDER=1` in all four. They ran with fresh isolated caches/prefixes, GE-Proton11-14, and the RTX 4060 desktop. This is a record of the requested and logged configuration, not proof that the other two shaders successfully translated: their absence from our logs is still unexplained. Thanks also for the additional #1590 translation evidence; I will keep translation success separate from confirmed builder execution and visual correctness. **Follow-up on current main:** clean source build `d148613431e1c3b232d06ed05f456c3af3535ac7`, same GE-Proton11-14 and explicit graphics settings, fresh cache/prefix. The previous `923e38cc` log contained four distinct wave32 lowering refusals; this new run contained one, `e63d22c4def9ba6a`, which is the builder program reported here. No explicit builder success or refusal was observed. This time the startup artwork and legal menu were visible, but the run still ended with play exit 5 and a black screen before verified 3D gameplay. This is a whole-revision comparison with different default translator behavior, not proof that a particular change repaired the other three programs or the RT builder. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Author
Owner

@⁠tupacfan04 on GitHub · 2026-11-29 02:50 UTC · original

The in-game result I promised, on newer code than planned: main f9dfb76 merged into the same local test branch (so #1435's last resort as it is on main, off by default after 9f628a0). Thanks @⁠kibagami-nc for the pointer to #1590; since it landed on main in that form I tested main's switch instead of the PR branch.

  • GPU: RTX 5070 12 GB (driver 621.40), 32-lane waves. i9-14900F, 32 GB, Windows 11
  • Profile: Series X, 2560x1440, DLSS Quality, frame generation off, 30 cap
  • Preload: made for this build with VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1 VICTORY_BVH_MISS=1 set (8,798 of 8,817 pipelines in the library)
  • Unattended 6-minute runs over one walking route; fps at 6,000–8,000 draws a frame. Not plain main (off-by-default switches and log lines of ours on top); local tests pass (627 GPU, 50 loader, 390 shader).
Run Builder fps at 6–8k draws Median frame Frames over 100 ms
VICTORY_BVH_BUILDER=1 only stays off, missing=3 of=53 (e63d22c4def9ba6a, caa78b8c…, 28918b71…) 17.2 58.2 ms 376 of 6,065
+ VICTORY_LDS_LAST_RESORT=1 runs, all of its programs have host pipelines pipelines=53 9.3 88.1 ms 1,094 of 3,711
+ VICTORY_LDS_LAST_RESORT=1 (repeat) runs 12.1 77.1 ms 771 of 4,491
+ VICTORY_LDS_LAST_RESORT=1, VICTORY_MEMORY_OWNED=0 runs 9.7 94.6 ms 1,345 of 3,612

What that says for this issue:

  1. Without the switch the three programs are still refused on current main, the same three hashes, so the builder stays off. That matches @⁠ArturoWolff's e63d22c4def9ba6a on d148613.
  2. The run no longer dies. On 923e38c the same start ended in the title's own watchdog (5 of 5); on f9dfb76 it loads and plays at the no-ray-tracing frame rate (17.2 fps here). The 3 s bound on compute pipeline waits (88244e8) would explain that; I did not test it separately.
  3. VICTORY_LDS_LAST_RESORT=1 rescues all three: the builder runs with all 53 pipelines, 133–263 building dispatches a frame, about 1,370 MB of title memory by address in 23 arenas (1,105–1,169 MB on the card, 320–384 MB in shared memory). With it, 5 shaders still do not translate (22 without it).
  4. Cost with the builder running: about 9–12 fps against 17 without, and many more long frames. One frame-line from a run with it: 77.0 ms a frame, 41.1 preparing, 6.8 on the GPU; from the VICTORY_MEMORY_OWNED=0 run: 103.1 ms, 42.7 preparing, 26.7 on the GPU. I have not judged the picture (unattended runs), so I cannot confirm or deny the dark blocks the commit message warns of.
  5. 59e7a01 shows in the timings. With our log-only timing on the "title memory by address" line, ready() costs 4.2–5.7 ms a frame over 149–279 calls on this build; on 923e38c the same line read 15–24 ms over about 280–380 calls. VICTORY_MEMORY_OWNED=0 had the slowest median here (94.6 ms against 77–88), one run only.

A third run with the switch is going now; I will add it if it changes the picture. Logs on request (they carry my Windows user name, which is fine).

**@⁠tupacfan04** on GitHub · 2026-11-29 02:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7249682524) The in-game result I promised, on newer code than planned: main **f9dfb76** merged into the same local test branch (so #1435's last resort as it is on main, off by default after 9f628a0). Thanks @⁠kibagami-nc for the pointer to #1590; since it landed on main in that form I tested main's switch instead of the PR branch. - **GPU:** RTX 5070 12 GB (driver 621.40), 32-lane waves. i9-14900F, 32 GB, Windows 11 - **Profile:** Series X, 2560x1440, DLSS Quality, frame generation off, 30 cap - **Preload:** made for this build with `VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1 VICTORY_BVH_MISS=1` set (8,798 of 8,817 pipelines in the library) - Unattended 6-minute runs over one walking route; fps at 6,000–8,000 draws a frame. Not plain main (off-by-default switches and log lines of ours on top); local tests pass (627 GPU, 50 loader, 390 shader). | Run | Builder | fps at 6–8k draws | Median frame | Frames over 100 ms | |---|---|---|---|---| | `VICTORY_BVH_BUILDER=1` only | **stays off**, `missing=3 of=53` (`e63d22c4def9ba6a`, `caa78b8c…`, `28918b71…`) | 17.2 | 58.2 ms | 376 of 6,065 | | + `VICTORY_LDS_LAST_RESORT=1` | **runs**, `all of its programs have host pipelines pipelines=53` | 9.3 | 88.1 ms | 1,094 of 3,711 | | + `VICTORY_LDS_LAST_RESORT=1` (repeat) | runs | 12.1 | 77.1 ms | 771 of 4,491 | | + `VICTORY_LDS_LAST_RESORT=1`, `VICTORY_MEMORY_OWNED=0` | runs | 9.7 | 94.6 ms | 1,345 of 3,612 | What that says for this issue: 1. **Without the switch the three programs are still refused on current main**, the same three hashes, so the builder stays off. That matches @⁠ArturoWolff's `e63d22c4def9ba6a` on d148613. 2. **The run no longer dies.** On 923e38c the same start ended in the title's own watchdog (5 of 5); on f9dfb76 it loads and plays at the no-ray-tracing frame rate (17.2 fps here). The 3 s bound on compute pipeline waits (88244e8) would explain that; I did not test it separately. 3. **`VICTORY_LDS_LAST_RESORT=1` rescues all three**: the builder runs with all 53 pipelines, 133–263 building dispatches a frame, about 1,370 MB of title memory by address in 23 arenas (1,105–1,169 MB on the card, 320–384 MB in shared memory). With it, 5 shaders still do not translate (22 without it). 4. **Cost with the builder running:** about 9–12 fps against 17 without, and many more long frames. One frame-line from a run with it: 77.0 ms a frame, 41.1 preparing, 6.8 on the GPU; from the `VICTORY_MEMORY_OWNED=0` run: 103.1 ms, 42.7 preparing, 26.7 on the GPU. I have not judged the picture (unattended runs), so I cannot confirm or deny the dark blocks the commit message warns of. 5. **59e7a01 shows in the timings.** With our log-only timing on the "title memory by address" line, `ready()` costs 4.2–5.7 ms a frame over 149–279 calls on this build; on 923e38c the same line read 15–24 ms over about 280–380 calls. `VICTORY_MEMORY_OWNED=0` had the slowest median here (94.6 ms against 77–88), one run only. A third run with the switch is going now; I will add it if it changes the picture. Logs on request (they carry my Windows user name, which is fine).
Author
Owner

@⁠tupacfan04 on GitHub · 2026-11-29 06:57 UTC · original

Ray tracing on the RTX 5070 12 GB, main e1f2eb6 + #1939 + one local change (below). i9-14900F, 32 GB, driver 621.40, Windows 11. Series X, 1440p, DLSS Quality, no frame generation, 30 cap, VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1, preload made with the same switches. Same scripted 6-minute route each run, nothing else running on the PC.

run fps at 6-8k draws median frame frames over 100 ms longest
plain 8.4 91 ms 1183 of 3661 2629 ms
VICTORY_VRAM_BUDGET_MB=9000 10.7 89 ms 1186 of 3958 685 ms
VICTORY_ALIAS_TARGETS=0 10.9 83.8 ms 960 of 4332 1129 ms
plain again 4.1 181.8 ms 956 of 1754 3740 ms

The two plain runs differ by a factor of two, so neither switch is shown to help; what the logs do show:

1. The card's memory is the first limit. Every run ends with the texture queue over its line (11054 MB in use ... = 11634 MB against a line of ~10070 MB, 190-244 no-room waits per run) and at the last look 8077-8113 MB of the card's and 6054-8204 MB of the PC's shared memory were in use. In the slow run the frame lines turn GPU-bound: 660.6 ms/frame (26.9 preparing ...; 469.8 on the GPU ...), against 5-55 ms on the GPU in the others. Capping the budget at 9000 MB brought the queue to 10113 MB but the shared figure stayed at 7880 MB.

2. CPU preparation is the second. Even the best frames spend about 40 ms preparing (copies 20-32 ms for 54-85 MB per frame, 8 ms copying back). The lock on the write-watch guards shows up with ray tracing on: in one frame all threads waited 49 ms for it in 1233 takes (30.5 ms of it inside the askings, 10.3 ms protecting).

3. Faults still in the log.

  • about 70 pages per frame shaders touched pages that had no copy (those accesses read 0 or were dropped) once the builder runs (95-121 such lines per run);
  • one compute program has no 32-lane form (6b82bc7d22016cb5);
  • host pipeline refused ... 7f61193d2c0e5f22 is gone with #1939 (0 lines in 4 runs, see my comment there).

Local change in these runs: with the builder running, the reflections' miss program for opaque and transparent surfaces is no longer left out (on main it is left out unless VICTORY_RAYMISS_KEEP=1, also with real structures, so rays that reach the sky get no sky light). Same effect on main with VICTORY_RAYMISS_KEEP=1. I have not judged the picture yet (unattended runs); if it holds up by eye I will send it as a PR.

Logs for all four runs on request.

🤖 Generated with Claude Code

**@⁠tupacfan04** on GitHub · 2026-11-29 06:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1475#issuecomment-7252168951) Ray tracing on the RTX 5070 12 GB, main `e1f2eb6` + #1939 + one local change (below). i9-14900F, 32 GB, driver 621.40, Windows 11. Series X, 1440p, DLSS Quality, no frame generation, 30 cap, `VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1`, preload made with the same switches. Same scripted 6-minute route each run, nothing else running on the PC. | run | fps at 6-8k draws | median frame | frames over 100 ms | longest | |---|---|---|---|---| | plain | 8.4 | 91 ms | 1183 of 3661 | 2629 ms | | `VICTORY_VRAM_BUDGET_MB=9000` | 10.7 | 89 ms | 1186 of 3958 | 685 ms | | `VICTORY_ALIAS_TARGETS=0` | 10.9 | 83.8 ms | 960 of 4332 | 1129 ms | | plain again | 4.1 | 181.8 ms | 956 of 1754 | 3740 ms | The two plain runs differ by a factor of two, so neither switch is shown to help; what the logs do show: **1. The card's memory is the first limit.** Every run ends with the texture queue over its line (`11054 MB in use ... = 11634 MB against a line of ~10070 MB`, 190-244 no-room waits per run) and `at the last look 8077-8113 MB of the card's and 6054-8204 MB of the PC's shared memory were in use`. In the slow run the frame lines turn GPU-bound: `660.6 ms/frame (26.9 preparing ...; 469.8 on the GPU ...)`, against 5-55 ms on the GPU in the others. Capping the budget at 9000 MB brought the queue to 10113 MB but the shared figure stayed at 7880 MB. **2. CPU preparation is the second.** Even the best frames spend about 40 ms preparing (copies 20-32 ms for 54-85 MB per frame, 8 ms copying back). The lock on the write-watch guards shows up with ray tracing on: in one frame all threads waited 49 ms for it in 1233 takes (30.5 ms of it inside the askings, 10.3 ms protecting). **3. Faults still in the log.** - about 70 pages per frame `shaders touched pages that had no copy (those accesses read 0 or were dropped)` once the builder runs (95-121 such lines per run); - one compute program has no 32-lane form (`6b82bc7d22016cb5`); - `host pipeline refused ... 7f61193d2c0e5f22` is gone with #1939 (0 lines in 4 runs, see my comment there). **Local change in these runs:** with the builder running, the reflections' miss program for opaque and transparent surfaces is no longer left out (on main it is left out unless `VICTORY_RAYMISS_KEEP=1`, also with real structures, so rays that reach the sky get no sky light). Same effect on main with `VICTORY_RAYMISS_KEEP=1`. I have not judged the picture yet (unattended runs); if it holds up by eye I will send it as a PR. Logs for all four runs on request. 🤖 Generated with [Claude Code](https://claude.com/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/trustno1-coder--VIctory-NVIDIA#1475
No description provided.