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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CowboyBingus on 2026-11-28T20:29:16Z.
Card: NVIDIA GeForce RTX 5070 Ti, log line
host wave lanes min=32 max=32, driver 621.24.Build: main at
32ecacfa, plus:32ecacfa(same diff as its commit1788f111). Its commit marks it off unlessVICTORY_BVH_SIZE_COPY=1; that switch was not set in any run below;late_size_copysplit into a purelate(...));VICTORY_NO_ACTIVATE).main is now at
923e38cc.emit/lds.rsis the same there as at32ecacfa;emit/lower.rsis not. These runs were not repeated on923e38cc.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:
32ecacfabuild, none32ecacfabuild,VICTORY_LDS_WRITE_ONLY_OK=1+VICTORY_WAVE_WHY=1(2 runs)32ecacfabuild,VICTORY_WAVE_WIDE=1(1 run)63b902fe+ the two window commits (no #1161), noneIn the one
VICTORY_WAVE_WIDE=1run, the device was removed (0x887A0006) about 80 s after start. The twoVICTORY_LDS_WRITE_ONLY_OK=1runs 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
63b902fedoes not contain #43 (merge1789b869);32ecacfadoes.075785eb) replaceslds_meetingsinemit/lower.rswithlds_analyze, which calls the newemit::lds::analyze.lds.rs, a pure write-only!allregion needs Refinement A (disjoint ranges) or Refinement B (lane-private slots), unlessVICTORY_LDS_WRITE_ONLY_OK=1is set.ds_read.Other commits between
63b902feand32ecacfaalso changeemit/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_OKbe the intended way to run these three programs on 32-lane hosts, or shouldlds::analyzeaccept them by default?🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T20:29:24Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ArturoWolff on 2026-11-28T20:31:37Z.
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
32ecacfae73f40e13b2045e125c8bc4b9159419dand one of a clean source build at923e38cc8c92cd1c42090076382138538f2bb487. All reportedhost wave lanes min=32 max=32and requested the RT structure builder. All four logged exactly one translation refusal for the same compute shader: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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CowboyBingus on 2026-11-28T20:57:36Z.
@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:
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 otherVICTORY_LDS_*/VICTORY_WAVE_*switch) set in your runs?🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AiToR51 on 2026-11-28T23:23:05Z.
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 inXboxBvhBuilder.dll, notshaders.rpf:maind4b5d517maind4b5d517VICTORY_LDS_WRITE_ONLY_OK=18e0e3536VICTORY_WAVE_WHY=1, all three printLDS-WRITE-ONLY last resort32ecacfawith #43 revertedSo 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
mainor on #1590.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T23:27:02Z.
@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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tupacfan04 on 2026-11-28T23:45:44Z.
Same three refusals on a build with main
923e38cmerged in, on a third 32-lane card, and here the run does not survive it.host wave lanes min=32 max=32VICTORY_BVH_BUILDER=1(the launcher'sVICTORY_BVH_MISS=1default also in effect), no wave or LDS switch923e38cmerged 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 triedVICTORY_PIPELINE_COMPUTE_WAIT=0yet.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=1and a preload made with the builder switches set, in-game, with fps. I will post the result here and on #1590.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T23:53:47Z.
@tupacfan04, for the run you plan: #1590 gives these three programs exactly what
VICTORY_LDS_WRITE_ONLY_OK=1gives, by default. AiToR51 checked that fore63d22c4…,28918b71…andcaa78b8c…above. So a run on #1590's branch would answer both questions at once. To build it on top of your main: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=1set should keep those pipelines warm.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ArturoWolff on 2026-11-29T01:53:49Z.
@CowboyBingus Thanks for the question. I went back to the four retained launch commands and engine startup switch summaries (three at
32ecacfa, one at923e38cc). None contains an explicitVICTORY_WAVE_WIDE,VICTORY_WAVE_*,VICTORY_LDS_*, orVICTORY_HOST_WAVEoverride. The startup summaries do showVICTORY_BVH_BUILDER=1in 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 previous923e38cclog 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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tupacfan04 on 2026-11-29T02:50:42Z.
The in-game result I promised, on newer code than planned: main
f9dfb76merged into the same local test branch (so #1435's last resort as it is on main, off by default after9f628a0). 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.VICTORY_BVH_BUILDER=1 VICTORY_LDS_LAST_RESORT=1 VICTORY_BVH_MISS=1set (8,798 of 8,817 pipelines in the library)VICTORY_BVH_BUILDER=1onlymissing=3 of=53(e63d22c4def9ba6a,caa78b8c…,28918b71…)VICTORY_LDS_LAST_RESORT=1all of its programs have host pipelines pipelines=53VICTORY_LDS_LAST_RESORT=1(repeat)VICTORY_LDS_LAST_RESORT=1,VICTORY_MEMORY_OWNED=0What that says for this issue:
e63d22c4def9ba6aond148613.923e38cthe same start ended in the title's own watchdog (5 of 5); onf9dfb76it 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.VICTORY_LDS_LAST_RESORT=1rescues 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).VICTORY_MEMORY_OWNED=0run: 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.59e7a01shows 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; on923e38cthe same line read 15–24 ms over about 280–380 calls.VICTORY_MEMORY_OWNED=0had 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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tupacfan04 on 2026-11-29T06:57:12Z.
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.VICTORY_VRAM_BUDGET_MB=9000VICTORY_ALIAS_TARGETS=0The 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) andat 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.
shaders touched pages that had no copy (those accesses read 0 or were dropped)once the builder runs (95-121 such lines per run);6b82bc7d22016cb5);host pipeline refused ... 7f61193d2c0e5f22is 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 withVICTORY_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