ztrx (the NVIDIA-oriented derivative) is no longer online: what it contained, how it measured on a GTX 1660, and whether any of it should come upstream #2833

Open
opened 2026-11-25 21:46:39 +00:00 by Impre-visible · 5 comments
Impre-visible commented 2026-11-25 21:46:39 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-25T21:46:39Z.


The GitHub repository of ztrx, a GPL-3.0 derivative of VIctory (13 commits on top of ffe310e, about 37,500 inserted lines in 93 files), and its owner's account return 404 since today. Its last state (90b529f) survives in clones. Its authors, by commit: fxceless (most of the work), ZazaJr24, oddiums, cxccxc and Zettrox.

What it adds, by subsystem (inserted lines):

  • Shader translator, about 15,400: wave64 compute emulated on 32-lane hosts (about 3,000 lines of its own plus parts of lower.rs), clean-up passes over the emitted module (about 2,300 lines, 11 unit tests), ray/box and ray/triangle tests, lowering additions.
  • GPU back end, about 21,000: host copies in video memory and write tracking, submission relay and late waits, indirect bounding, heap and descriptor handling, pipeline library and making. Most speed changes are behind switches that are off by default.
  • HLE, loader, docs, launcher: under 1,000. Two loader files state they are ported from a GPL-2.0-only project; those could not come here, and main already has its own equivalent.

A whole merge is not realistic: it conflicts with current main in 46 files, where main often has a different design.

Measured on Linux, Wine + vkd3d-proton, GTX 1660 (32-lane waves). Not tested: Windows, AMD.

  • Tree from main of this morning plus a few open PRs: 153 compute pipelines refused by the host (wave64), 149–189 draws dropped for lack of dynamic descriptor slots per run, 1.0–9.8 s per frame.
  • ztrx 90b529f: 4 compute pipelines refused, 893–979 made; 510–536 ms per frame in steady state; 20-minute runs, no GPU fault in 7 runs. Its relay and late-wait switches gave no gain on this card.

Frame times are not comparable: the two trees do not draw the same work.

Question for the maintainers: do you want any of this upstream? If so, which pieces should come first, and in what form: single-purpose PRs re-done against main with the original authors credited, or the wave64 tests and measurements handed to the authors of the open wave64 PRs?

I can provide the measurements in more detail, or prepare a first single-purpose PR for whichever piece you name. No game files, shader names or hashes are attached here.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6614403858 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T21:46:39Z. --- The GitHub repository of ztrx, a GPL-3.0 derivative of VIctory (13 commits on top of `ffe310e`, about 37,500 inserted lines in 93 files), and its owner's account return 404 since today. Its last state (`90b529f`) survives in clones. Its authors, by commit: fxceless (most of the work), ZazaJr24, oddiums, cxccxc and Zettrox. What it adds, by subsystem (inserted lines): - Shader translator, about 15,400: wave64 compute emulated on 32-lane hosts (about 3,000 lines of its own plus parts of `lower.rs`), clean-up passes over the emitted module (about 2,300 lines, 11 unit tests), ray/box and ray/triangle tests, lowering additions. - GPU back end, about 21,000: host copies in video memory and write tracking, submission relay and late waits, indirect bounding, heap and descriptor handling, pipeline library and making. Most speed changes are behind switches that are off by default. - HLE, loader, docs, launcher: under 1,000. Two loader files state they are ported from a GPL-2.0-only project; those could not come here, and `main` already has its own equivalent. A whole merge is not realistic: it conflicts with current `main` in 46 files, where `main` often has a different design. Measured on Linux, Wine + vkd3d-proton, GTX 1660 (32-lane waves). Not tested: Windows, AMD. - Tree from `main` of this morning plus a few open PRs: 153 compute pipelines refused by the host (wave64), 149–189 draws dropped for lack of dynamic descriptor slots per run, 1.0–9.8 s per frame. - ztrx `90b529f`: 4 compute pipelines refused, 893–979 made; 510–536 ms per frame in steady state; 20-minute runs, no GPU fault in 7 runs. Its relay and late-wait switches gave no gain on this card. Frame times are not comparable: the two trees do not draw the same work. Question for the maintainers: do you want any of this upstream? If so, which pieces should come first, and in what form: single-purpose PRs re-done against `main` with the original authors credited, or the wave64 tests and measurements handed to the authors of the open wave64 PRs? I can provide the measurements in more detail, or prepare a first single-purpose PR for whichever piece you name. No game files, shader names or hashes are attached here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Marvisak commented 2026-11-26 01:04:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T00:44:16Z.


Automated triage for the maintainers.

Labelled as a request; the question of what to take upstream, and in what form, is left to the maintainers. Pull requests are open to everyone, so single-purpose PRs against current main (crediting the original authors, and leaving out the two files ported from a GPL-2.0-only project) are the form that can be reviewed. Wave64 on 32-lane hosts is already being worked in several open shader pull requests, which is where its tests and measurements would help most.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179063472 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835#issuecomment-7179063472). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T00:44:16Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T21:46:39Z at=2026-11-26T01:02:30Z --> Automated triage for the maintainers. Labelled as a request; the question of what to take upstream, and in what form, is left to the maintainers. Pull requests are open to everyone, so single-purpose PRs against current `main` (crediting the original authors, and leaving out the two files ported from a GPL-2.0-only project) are the form that can be reviewed. Wave64 on 32-lane hosts is already being worked in several open shader pull requests, which is where its tests and measurements would help most. --- _Generated by [Claude Code](https://claude.ai/code)_
roon9e commented 2026-11-26 10:05:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by roon9e on 2026-11-26T10:04:11Z.


Related data point, in case it narrows the Windows question. Same title package/hash.

On Windows 11 (build 26300) + a GTX 1660 SUPER (TU116, driver 621.40), ztrx 90b529f hits the identical 0x80000003 at +0x1330a44 — the same streaming-codec stop reported in #1063 — at the same point (the LEGAL NOTICES screen shows the Copyright row locked, "Next" greyed, spinner). Skipping the trap (VICTORY_PATCH=0x1330970:909090909090,0x1330a34:9090) lets it run on, but the decode source stays zero and it spins at the world load: LEGAL NOTICES never unlocks and the world never draws.

I saw the same on two other trees on this exact card/OS:

  • upstream-based local VIctory (ffe310e);
  • the NVIDIA cool_fox (codec-d) build from the DoubleGhosty mirror, which reports mesh shader support mesh=true and translates the title's mesh shaders, then hits +0x1330a44 too.

What does get past it: the software adapter (VICTORY_D3D12_WARP=1) — the LEGAL NOTICES screen then loads fully (no lock, "Next" enabled). So the codec's code is fine; the GPU path is what fails, and only on this Windows/NVIDIA/Turing combination.

This matters because #2835's own measurement of ztrx was on a GTX 1660 under Linux/Wine + vkd3d-proton, where it works (20-minute runs, no fault). So on the same card the result depends on the D3D12 implementation: vkd3d-proton OK, WARP OK, NVIDIA's Windows driver broken.

Question: is ztrx expected to run on Windows with a 32-lane Turing card (GTX 16 / RTX 20), or is the Windows/NVIDIA wave64-compute path known to still need work? If the latter, the failing piece is the one to describe for a single-purpose PR.

AI-assisted; measured on the physical GTX 1660 SUPER, Windows 11. No game files, shader names or hashes attached.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7188866396 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835#issuecomment-7188866396). Originally posted by [roon9e](https://github.com/roon9e) on 2026-11-26T10:04:11Z. --- Related data point, in case it narrows the Windows question. Same title package/hash. **On Windows 11 (build 26300) + a GTX 1660 SUPER (TU116, driver 621.40), ztrx `90b529f` hits the identical `0x80000003` at `+0x1330a44`** — the same streaming-codec stop reported in #1063 — at the same point (the LEGAL NOTICES screen shows the Copyright row locked, "Next" greyed, spinner). Skipping the trap (`VICTORY_PATCH=0x1330970:909090909090,0x1330a34:9090`) lets it run on, but the decode source stays zero and it spins at the world load: LEGAL NOTICES never unlocks and the world never draws. I saw the same on two other trees on this exact card/OS: - upstream-based local VIctory (`ffe310e`); - the NVIDIA `cool_fox` (codec-d) build from the DoubleGhosty mirror, which reports `mesh shader support mesh=true` and translates the title's mesh shaders, then hits `+0x1330a44` too. What does get past it: the **software adapter** (`VICTORY_D3D12_WARP=1`) — the LEGAL NOTICES screen then loads fully (no lock, "Next" enabled). So the codec's code is fine; the GPU path is what fails, and only on this Windows/NVIDIA/Turing combination. This matters because #2835's own measurement of ztrx was on a GTX 1660 under **Linux/Wine + vkd3d-proton**, where it works (20-minute runs, no fault). So on the same card the result depends on the D3D12 implementation: vkd3d-proton OK, WARP OK, NVIDIA's Windows driver broken. Question: is ztrx expected to run on **Windows** with a 32-lane Turing card (GTX 16 / RTX 20), or is the Windows/NVIDIA wave64-compute path known to still need work? If the latter, the failing piece is the one to describe for a single-purpose PR. AI-assisted; measured on the physical GTX 1660 SUPER, Windows 11. No game files, shader names or hashes attached.
Impre-visible commented 2026-11-26 11:03:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-26T10:05:16Z.


Thanks, that is a useful data point, and I cannot answer the Windows question from measurements: everything I reported was under Linux (Wine + vkd3d-proton), on a GTX 1660 (non-SUPER, same TU116 family, 32-lane waves). I have not run any tree on Windows.

What I can add, same card, same Linux setup, measured today:

Tree First playable scene Runs
ztrx 90b529f + small fixes 500–590 ms per frame on the Series S profile; about one run in two ended in a GPU fault (Xid 13 or 109) in a per-frame compute submission 25
codec-d/cool_fox f4b48ad, built from source, its launcher's settings 360–410 ms per frame, no fault; 7 of 16 pipeline workers lost to a stack overflow in the DXIL-to-SPIR-V conversion 1 (15 min)
the same + a one-back-edge-per-loop change in the emitter + a texture mip drop + more room for buffer copies in video memory 100–106 ms per frame, no fault 5

So under vkd3d-proton neither tree stops at the start screens on this card class, which agrees with your reading that the difference is the D3D12 implementation rather than the title-side code. The patches and settings of the last row, with the method, are at https://github.com/Impre-visible/victory-gtx1660 (no game files; I have added a note there that Windows on Turing cards is reported not to get past the start screens, linking your comment).

I have nothing measured on why NVIDIA's Windows driver fails where WARP and vkd3d-proton do not; if a specific check under Linux would help narrow it (a count, a refused pipeline list by stage, timings), tell me which and I will run it.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7188890296 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835#issuecomment-7188890296). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-26T10:05:16Z. --- Thanks, that is a useful data point, and I cannot answer the Windows question from measurements: everything I reported was under Linux (Wine + vkd3d-proton), on a GTX 1660 (non-SUPER, same TU116 family, 32-lane waves). I have not run any tree on Windows. What I can add, same card, same Linux setup, measured today: | Tree | First playable scene | Runs | |---|---|---| | ztrx `90b529f` + small fixes | 500–590 ms per frame on the Series S profile; about one run in two ended in a GPU fault (Xid 13 or 109) in a per-frame compute submission | 25 | | codec-d/cool_fox `f4b48ad`, built from source, its launcher's settings | 360–410 ms per frame, no fault; 7 of 16 pipeline workers lost to a stack overflow in the DXIL-to-SPIR-V conversion | 1 (15 min) | | the same + a one-back-edge-per-loop change in the emitter + a texture mip drop + more room for buffer copies in video memory | 100–106 ms per frame, no fault | 5 | So under vkd3d-proton neither tree stops at the start screens on this card class, which agrees with your reading that the difference is the D3D12 implementation rather than the title-side code. The patches and settings of the last row, with the method, are at https://github.com/Impre-visible/victory-gtx1660 (no game files; I have added a note there that Windows on Turing cards is reported not to get past the start screens, linking your comment). I have nothing measured on why NVIDIA's Windows driver fails where WARP and vkd3d-proton do not; if a specific check under Linux would help narrow it (a count, a refused pipeline list by stage, timings), tell me which and I will run it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
roon9e commented 2026-11-27 05:01:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by roon9e on 2026-11-27T05:01:32Z.


Thanks — I applied your patches to the same base you did, on Windows, and can report what they change and what they do not.

Setup: codec-d/cool_fox at f4b48ad, git am of patches/0001 + patches/0002 (both applied cleanly), cargo build --release --locked -p victory --features diagnostics. Ran on a GTX 1660 SUPER (TU116, 32-lane), Windows 11, own 1.0.2.1 copy, with your measured settings (VICTORY_CARD_BUFFERS_MB=1024, VICTORY_CARD_WINDOWS_MB=256, VICTORY_TEXTURE_MIP_DROP=1, VICTORY_LEVELS_ON_DEMAND=0), Down+Enter scripted from 60 s.

What changed: the memory settings do take effect on Windows — the log's host copies in the card's memory line reports 2 copies 178 MB, so on this 6 GB card the Windows budget grants far fewer card-side copies than your ~1,000 MB under Linux (expected: the desktop and other processes share the budget).

What did not change: the run still stops at the identical 0x80000003 at +0x1330a44 during the menu asset stream — before any menu screen renders. So patch 0001 does not move this stop on Windows, which fits your own diagnosis: it fixed a vkd3d-proton DXIL-to-SPIR-V recurrence (the stack overflow in the pipeline workers), and that converter is not the one running under Windows here. On this card/OS the decode never gets its source, so the start screens never advance — the same wall as our #1063.

Your offer is welcome and, I think, well aimed: if you can measure anything Linux-side on the same card class, the useful comparison is why the decode succeeds under vkd3d and not on Windows. Concretely, a run of the unmodified cool_fox f4b48ad (no patches) under Wine + vkd3d-proton, on the same package, logging VICTORY_LOG=info:

  • whether it reaches the start screens, and whether any count of GPU-buffer→CPU copies or kernel-write (readback) leases differs from what we see on Windows (where the streamed-block source buffer stays zero);
  • the number of translate failures / refused pipelines by stage, and the indirect-work counts, so we can tell a decode difference from a translate one.

If the decode path is the same under vkd3d and only the readback differs, that points at the runtime's Windows D3D12 copy/readback, which is where I'd file the single-purpose PR.

AI-assisted; measured on the physical GTX 1660 SUPER, Windows 11. No game files, shader names or hashes attached.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210286018 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835#issuecomment-7210286018). Originally posted by [roon9e](https://github.com/roon9e) on 2026-11-27T05:01:32Z. --- Thanks — I applied your patches to the same base you did, on Windows, and can report what they change and what they do not. **Setup:** `codec-d/cool_fox` at `f4b48ad`, `git am` of `patches/0001` + `patches/0002` (both applied cleanly), `cargo build --release --locked -p victory --features diagnostics`. Ran on a **GTX 1660 SUPER (TU116, 32-lane), Windows 11**, own 1.0.2.1 copy, with your measured settings (`VICTORY_CARD_BUFFERS_MB=1024`, `VICTORY_CARD_WINDOWS_MB=256`, `VICTORY_TEXTURE_MIP_DROP=1`, `VICTORY_LEVELS_ON_DEMAND=0`), `Down`+`Enter` scripted from 60 s. **What changed:** the memory settings do take effect on Windows — the log's `host copies in the card's memory` line reports `2 copies 178 MB`, so on this 6 GB card the Windows budget grants far fewer card-side copies than your ~1,000 MB under Linux (expected: the desktop and other processes share the budget). **What did not change:** the run still stops at the **identical `0x80000003` at `+0x1330a44`** during the *menu* asset stream — before any menu screen renders. So patch 0001 does not move this stop on Windows, which fits your own diagnosis: it fixed a vkd3d-proton DXIL-to-SPIR-V recurrence (the stack overflow in the pipeline workers), and that converter is not the one running under Windows here. On this card/OS the decode never gets its source, so the start screens never advance — the same wall as our #1063. Your offer is welcome and, I think, well aimed: if you can measure anything Linux-side on the **same card class**, the useful comparison is *why the decode succeeds under vkd3d and not on Windows*. Concretely, a run of the **unmodified** `cool_fox f4b48ad` (no patches) under Wine + vkd3d-proton, on the same package, logging `VICTORY_LOG=info`: - whether it reaches the start screens, and whether any count of **GPU-buffer→CPU copies** or **kernel-write (readback) leases** differs from what we see on Windows (where the streamed-block source buffer stays zero); - the number of **translate failures / refused pipelines** by stage, and the **indirect-work** counts, so we can tell a decode difference from a translate one. If the decode path is the same under vkd3d and only the readback differs, that points at the runtime's Windows D3D12 copy/readback, which is where I'd file the single-purpose PR. AI-assisted; measured on the physical GTX 1660 SUPER, Windows 11. No game files, shader names or hashes attached.
Impre-visible commented 2026-11-27 05:10:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-27T05:10:59Z.


Already done: unmodified cool_fox f4b48ad built from source with diagnostics, GE-Proton11-6, Proton Experimental's vkd3d-proton, GTX 1660 (TU116, 32-lane waves), NVIDIA 620.73.04, VICTORY_LOG=info, Series S with cool_fox's launcher settings, cold caches. First present at 1.2 s; menus at 30 fps for 83 s; world at about 3 min; 15 min without a GPU fault.

Per frame or total Menus World
Card→title memory copy-back 0 MB 48 MB
Pieces landed 0 1,158
Texture→buffer read-backs 0 0 (16 while loading)
Blocks opened by our own or kernel writes 0 5
DirectStorage files opened / warnings 79 / 0 0 / 0
Refused shaders (compute, wave64 without wave32 lowering) 1 2 more
Shaders translated, compute/pixel/mesh/vertex (total) 21/21/1/10 667/721/345/192
Pipelines made (total) 49 1,647
Pipeline workers lost (stack overflow in DXIL→SPIR-V) 0 7 of 16
Draws dropped without a pipeline 0 308
Indirect executions dropped 0 589

In this tree DirectStorage decodes on the CPU (zlib, then BCPack) and writes straight into title memory, through a file read under a kernel-write lease or into physical pages. No GPU buffer and no card→CPU copy are involved. Under vkd3d the menus show no copy-back and no streaming errors, so D3D12 readback looks unlikely; the file read or kernel write into guarded memory is the better candidate (inferred from the source; this log does not prove it). Not in this log: per-request DirectStorage counts (debug level) and lease counts (never counted).

If useful, I can run once more with VICTORY_LOG=info,victory_hle::modules::dstorage=debug, VICTORY_DSTORAGE_TRACE=1 and VICTORY_DSTORAGE_LOG=<file>. With the same switches on Windows, we could compare request by request.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210418335 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2835#issuecomment-7210418335). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-27T05:10:59Z. --- Already done: unmodified cool_fox f4b48ad built from source with diagnostics, GE-Proton11-6, Proton Experimental's vkd3d-proton, GTX 1660 (TU116, 32-lane waves), NVIDIA 620.73.04, `VICTORY_LOG=info`, Series S with cool_fox's launcher settings, cold caches. First present at 1.2 s; menus at 30 fps for 83 s; world at about 3 min; 15 min without a GPU fault. | Per frame or total | Menus | World | |---|---|---| | Card→title memory copy-back | 0 MB | 48 MB | | Pieces landed | 0 | 1,158 | | Texture→buffer read-backs | 0 | 0 (16 while loading) | | Blocks opened by our own or kernel writes | 0 | 5 | | DirectStorage files opened / warnings | 79 / 0 | 0 / 0 | | Refused shaders (compute, wave64 without wave32 lowering) | 1 | 2 more | | Shaders translated, compute/pixel/mesh/vertex (total) | 21/21/1/10 | 667/721/345/192 | | Pipelines made (total) | 49 | 1,647 | | Pipeline workers lost (stack overflow in DXIL→SPIR-V) | 0 | 7 of 16 | | Draws dropped without a pipeline | 0 | 308 | | Indirect executions dropped | 0 | 589 | In this tree DirectStorage decodes on the CPU (zlib, then BCPack) and writes straight into title memory, through a file read under a kernel-write lease or into physical pages. No GPU buffer and no card→CPU copy are involved. Under vkd3d the menus show no copy-back and no streaming errors, so D3D12 readback looks unlikely; the file read or kernel write into guarded memory is the better candidate (inferred from the source; this log does not prove it). Not in this log: per-request DirectStorage counts (debug level) and lease counts (never counted). If useful, I can run once more with `VICTORY_LOG=info,victory_hle::modules::dstorage=debug`, `VICTORY_DSTORAGE_TRACE=1` and `VICTORY_DSTORAGE_LOG=<file>`. With the same switches on Windows, we could compare request by request. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#2833
No description provided.