Run on Proton: a Windows build of victory, launched inside a Proton prefix #2

Open
LazyHatGuy wants to merge 17 commits from upstream-pr/2 into main
LazyHatGuy commented 2026-11-25 02:54:54 +00:00 (Migrated from github.com)
First-time contributor

Imported from Zettrox/ztrx. Originally posted by LazyHatGuy on 2026-11-25T01:45:46Z.


Mirror of https://github.com/fxceless/victory-fork/pull/179

Depends on #1 (the Linux build work): these commits sit on top of its linux branch, so until that merges this PR's diff also shows those changes.

What this does

Supports running the Windows build of victory inside a Proton
prefix
from a Linux box. The Windows build is already the title's full
host, and Proton supplies the same ground underneath it — Wine's loader,
D3D12 through dxvk/vkd3d-proton — so Linux support is a build path, a
launcher, and the evidence of what that ground actually gives, not a second
back end.

  • cargo win cross-builds victory.exe with the gnu target;
    cargo win-check type-checks the whole Windows tree — tests included —
    from Linux (the true MSVC check stays the Windows CI job).
  • proton/run.sh starts it in a prefix. The prefix works on the first
    run: the launcher asks Proton for C:\ before seeding dosdevices and
    drive_z, so Proton's own first setup no longer trips over them.
    It picks the newest GE-Proton* first, then the newest plain
    Proton-*; takes --z DIR (a no-op where GE-Proton maps Z: to /),
    --config, --d3dcompiler FILE and --texture-wait; and returns the
    child's exit code and stdout honestly (a UMU non-Steam launch through
    waitforexitandrun, not steam.exe injection).
  • victory_core::platform::wine_version() — victory config and
    victory run print host Wine <version>, so a log says which host made
    it.
  • docs/proton.md carries the packages, commands, prefix layout and the
    Wine-dependent gaps.

What a GE-Proton11-11 run proved on a real box

  • proton/smoke.sh passes: config + banner, the title directory reachable
    through the prefix, census over it.
  • The entire victory-gpu suite as a Windows binary under the prefix:
    109 of 111 pass
    — device creation, every device level, fences, heaps,
    copies, queue submission. Proton really does provide the D3D12 ground.
  • The one failure is pipeline::library::tests::a_rejected_blob_gives_an_empty_library:
    vkd3d-proton errors on OpenPipelineLibrary of a garbage blob where real
    D3D12 hands back an empty library. A platform expectation, not ours
    (fxceless/victory-fork#64).
  • The cs_5_1 tests depend on which d3dcompiler_47 is loaded.
    Wine's builtin (a vendored vkd3d-shader) fails loudly with E5005 — no
    RWByteAddressBuffer intrinsics and no [RootSignature(...)]; the
    June-2010 winetricks redistributable refuses the 5_1 profile (X3506)
    and embeds no root signature at 5_0. A Win8.1/10-era native DLL, pinned
    with --d3dcompiler FILE, is the working path and the one behind the
    109/111 count.
  • A full victory run under Proton works on AMD/RADV: menus, intro,
    loading, then world streaming at 1 777–5 292 draws a frame (#41). The
    smoke box has not recorded a full run; the numbers are machine-specific.

Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws
a frame for ever. A diagnostics build can press Enter on a schedule with
VICTORY_KEYS (docs/proton.md); the release build has no scripted keys.

Tests

Three depths: a wine_version() unit test in victory-core (real hosts on
both CIs return None); xtask/src/scripts.rs checking the launch scripts
parse and are executable, the usage text, a fresh plain prefix, GE-over-Plain
selection and --d3dcompiler pinning/native forcing; and proton/smoke.sh
as the end-to-end Proton check.

CI

Adds a windows-cross Ubuntu job running cargo win-check and cargo win
on every PR — the Proton build path stops being a documentary claim. The
smoke itself needs a GPU and a Proton install, so it stays manual.

The fmt step is dropped on this branch: the tree's current formatting
came from a newer rustfmt than the pinned 1.98.1, so
cargo fmt --all -- --check reports hundreds of files. Reformatting is a
separate change.

This PR was AI assisted

<!-- greyfinch-sync:Zettrox/ztrx:issue:6595228275 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/2). Originally posted by [LazyHatGuy](https://github.com/LazyHatGuy) on 2026-11-25T01:45:46Z. --- Mirror of https://github.com/fxceless/victory-fork/pull/179 Depends on #1 (the Linux build work): these commits sit on top of its `linux` branch, so until that merges this PR's diff also shows those changes. ## What this does Supports running the **Windows build** of victory inside a **Proton prefix** from a Linux box. The Windows build is already the title's full host, and Proton supplies the same ground underneath it — Wine's loader, D3D12 through dxvk/vkd3d-proton — so Linux support is a build path, a launcher, and the evidence of what that ground actually gives, not a second back end. - `cargo win` cross-builds `victory.exe` with the gnu target; `cargo win-check` type-checks the whole Windows tree — tests included — from Linux (the true MSVC check stays the Windows CI job). - `proton/run.sh` starts it in a prefix. The prefix works on the first run: the launcher asks Proton for `C:\` before seeding `dosdevices` and `drive_z`, so Proton's own first setup no longer trips over them. It picks the newest `GE-Proton*` first, then the newest plain `Proton-*`; takes `--z DIR` (a no-op where GE-Proton maps Z: to `/`), `--config`, `--d3dcompiler FILE` and `--texture-wait`; and returns the child's exit code and stdout honestly (a UMU non-Steam launch through `waitforexitandrun`, not `steam.exe` injection). - `victory_core::platform::wine_version()` — `victory config` and `victory run` print `host Wine <version>`, so a log says which host made it. - `docs/proton.md` carries the packages, commands, prefix layout and the Wine-dependent gaps. ## What a GE-Proton11-11 run proved on a real box - `proton/smoke.sh` passes: config + banner, the title directory reachable through the prefix, `census` over it. - The entire `victory-gpu` suite **as a Windows binary under the prefix: 109 of 111 pass** — device creation, every device level, fences, heaps, copies, queue submission. Proton really does provide the D3D12 ground. - The one failure is `pipeline::library::tests::a_rejected_blob_gives_an_empty_library`: vkd3d-proton errors on `OpenPipelineLibrary` of a garbage blob where real D3D12 hands back an empty library. A platform expectation, not ours (fxceless/victory-fork#64). - The `cs_5_1` tests depend on **which** `d3dcompiler_47` is loaded. Wine's builtin (a vendored vkd3d-shader) fails loudly with `E5005` — no `RWByteAddressBuffer` intrinsics and no `[RootSignature(...)]`; the June-2010 winetricks redistributable refuses the 5_1 profile (`X3506`) and embeds no root signature at 5_0. A Win8.1/10-era native DLL, pinned with `--d3dcompiler FILE`, is the working path and the one behind the 109/111 count. - A full `victory run` under Proton works on AMD/RADV: menus, intro, loading, then world streaming at 1 777–5 292 draws a frame (#41). The smoke box has not recorded a full run; the numbers are machine-specific. Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws a frame for ever. A diagnostics build can press Enter on a schedule with `VICTORY_KEYS` (docs/proton.md); the release build has no scripted keys. ## Tests Three depths: a `wine_version()` unit test in `victory-core` (real hosts on both CIs return `None`); `xtask/src/scripts.rs` checking the launch scripts parse and are executable, the usage text, a fresh plain prefix, GE-over-Plain selection and `--d3dcompiler` pinning/native forcing; and `proton/smoke.sh` as the end-to-end Proton check. ## CI Adds a `windows-cross` Ubuntu job running `cargo win-check` and `cargo win` on every PR — the Proton build path stops being a documentary claim. The smoke itself needs a GPU and a Proton install, so it stays manual. The `fmt` step is dropped on this branch: the tree's current formatting came from a newer rustfmt than the pinned 1.98.1, so `cargo fmt --all -- --check` reports hundreds of files. Reformatting is a separate change. This PR was AI assisted
Yoshi-233 commented 2026-11-25 04:11:30 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by Yoshi-233 on 2026-11-25T03:11:06Z.


I found a first-run prefix issue at 3f7f2c0 on Ubuntu. From the repo root, the plain-Wine branch can be checked with a stand-in that always succeeds:

scratch=$(mktemp -d)
bash proton/run.sh --prefix "$scratch/prefix" --proton /bin/true --exe /bin/true -- config

The wrapper exits 1 before reaching the stand-in: it creates prefix/drive_z, then ln fails because prefix/dosdevices does not exist. Creating only dosdevices reveals a second detail: dosdevices/z: -> drive_z is a dangling link because the relative target resolves under dosdevices/. In a local copy, creating "$real/dosdevices" before the mapping and using ../drive_z for the relative link let a fresh run and a repeat run both succeed; --z resolved through the intended prefix/drive_z both times. An already configured test prefix also retained the child's exit 7, both output streams, and arguments containing spaces.

I checked the documented GE-first selection separately with executable stand-ins. With only GE-Proton10-9 and GE-Proton10-11, it picks 10-11. Adding Proton-9.0 makes it select that instead, because the two families are version-sorted together. Explicit --proton still selects GE. If GE-first is intended, selecting from GE-Proton* first and falling back to Proton-* would match the docs.

These checks cover the wrapper on Linux. They used no Wine, Proton runtime, GPU or title files.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7151672210 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/2#issuecomment-7151672210). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-25T03:11:06Z. --- I found a first-run prefix issue at `3f7f2c0` on Ubuntu. From the repo root, the plain-Wine branch can be checked with a stand-in that always succeeds: ```sh scratch=$(mktemp -d) bash proton/run.sh --prefix "$scratch/prefix" --proton /bin/true --exe /bin/true -- config ``` The wrapper exits 1 before reaching the stand-in: it creates `prefix/drive_z`, then `ln` fails because `prefix/dosdevices` does not exist. Creating only `dosdevices` reveals a second detail: `dosdevices/z: -> drive_z` is a dangling link because the relative target resolves under `dosdevices/`. In a local copy, creating `"$real/dosdevices"` before the mapping and using `../drive_z` for the relative link let a fresh run and a repeat run both succeed; `--z` resolved through the intended `prefix/drive_z` both times. An already configured test prefix also retained the child's exit 7, both output streams, and arguments containing spaces. I checked the documented GE-first selection separately with executable stand-ins. With only `GE-Proton10-9` and `GE-Proton10-11`, it picks 10-11. Adding `Proton-9.0` makes it select that instead, because the two families are version-sorted together. Explicit `--proton` still selects GE. If GE-first is intended, selecting from `GE-Proton*` first and falling back to `Proton-*` would match the docs. These checks cover the wrapper on Linux. They used no Wine, Proton runtime, GPU or title files.
futurepro62 commented 2026-11-25 07:06:29 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by futurepro62 on 2026-11-25T06:38:14Z.


Windows full-suite run, to go with Yoshi-233's Ubuntu check of proton/run.sh above. Tested exact head 3f7f2c0 (on its base 90b529f).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (rust-toolchain.toml), DXC + dxil.dll 1.9.2602.17, debug.
  • cargo test --workspace --locked: 497 passed, 0 failed, 7 ignored (main 90b529f on this machine: 496 passed, 0 failed, 7 ignored).
  • cargo clippy --workspace --all-targets --locked -- -D warnings (the CI lint step): passed.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings (the CI lint step): passed.
  • The new tests ran and passed: the_host_names_itself_when_it_is_wine.
  • The two new tests in xtask (proton_scripts_parse_and_are_executable, proton_launcher_help_needs_nothing_installed) are cfg(all(test, unix)), so they are not built on Windows and did not run here.

Not tested

  • AMD (ztrx targets NVIDIA), a release build, the game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Zettrox/ztrx:comment:7154999402 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/2#issuecomment-7154999402). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T06:38:14Z. --- Windows full-suite run, to go with Yoshi-233's Ubuntu check of `proton/run.sh` above. Tested exact head `3f7f2c0` (on its base `90b529f`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (`rust-toolchain.toml`), DXC + dxil.dll 1.9.2602.17, debug. - `cargo test --workspace --locked`: **497 passed, 0 failed, 7 ignored** (main `90b529f` on this machine: 496 passed, 0 failed, 7 ignored). - `cargo clippy --workspace --all-targets --locked -- -D warnings` (the CI lint step): passed. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` (the CI lint step): passed. - The new tests ran and passed: `the_host_names_itself_when_it_is_wine`. - The two new tests in `xtask` (`proton_scripts_parse_and_are_executable`, `proton_launcher_help_needs_nothing_installed`) are `cfg(all(test, unix))`, so they are not built on Windows and did not run here. **Not tested** - AMD (ztrx targets NVIDIA), a release build, the game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
orkeilius commented 2026-11-25 08:09:12 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by orkeilius on 2026-11-25T07:19:52Z.


I tested the fork

Problems I Found

the script crash when proton isn't fully initialized

Symlink error because no <prefix>/pfx/dosdevices/z: on a fresh prefix
that not blocking but adding a small notice in the docs could be nice

I couldn't Make the Inspect Command Work

The command didn't work (cuz i didn't find where is the final.js.c.c.gmpc )
But skipping it seem to work fine

What Work

(skiping the inscpect) the build run to the end of the loading screen (crash on 3d scene i guess)

also the steam controller (2026) surprisingly work fine in the menu

Fast Fetch

OS: CachyOS x86_64
Host: MS-7B84 (2.0)
Kernel: Linux 7.3.5-2-cachyos
Uptime: 2 hours, 11 mins
Packages: 22 (flatpak-system), 5 (flatpak-user), 1734 (pacman)
Shell: fish 4.9.3
Desktop Environment: KDE Plasma 6.8.3
Window Manager: KWin (Wayland)
Cursor: material (32px)
Terminal: konsole 26.8.3
Terminal Font: Monocraft (10.5pt)
CPU: AMD Ryzen 5 3600 (12) @ 4.21 GHz
GPU: AMD Radeon RX 9060 XT [Discrete]
Memory: 12.38 GiB / 15.53 GiB (80%)
Swap: 4.52 GiB / 15.53 GiB (29%)
Disk (/): 898.20 GiB / 927.51 GiB (97%) - btrfs
Disk (/mnt/data): 687.80 GiB / 915.82 GiB (75%) - ext4
Locale: fr_FR.UTF-8

Log (last part)

2026-11-25T07:17:06.501585Z  INFO victory_gpu::host: textures picked by index, the queue: 0 slots, 0 of them due (the oldest wr
itten 0 frames ago), 0 waiting for their memory, 0 uploaded in part; since the start: 0 slots found uploaded already by the draws that read them through tables,
 0 writes of tables' slots (due some frames later), 8527 slots taken out as read through a table, 0 uploads of textures not all mapped (0 of them without their 
first page), 0 looks that found no more mapped; 22534 slots made stale by a newer view of other memory there, 103991 ranges of memory mapped, unmapped or writte
n under texture views (32768 dropped), 0 slots made due by them, 0 made slots found unmapped and made null
2026-11-25T07:17:06.501793Z  INFO victory_gpu::host: host copies in the card's memory: 0 copies 0 MB, their bytes from before 0
 MB; per frame: 0.0 MB sent up in 0 ranges, 0 pieces compared on the card, 0 of them fetched (0.0 MB) with 0.0 more waits for the card (0.0 ms)
2026-11-25T07:17:06.502031Z  INFO victory_gpu::host: 30.0 fps, 33.3 ms/frame (3.5 preparing: copies 2.4 ms 6.0 MB, textures 1.0
 ms 1.0 MB; 2.8 on the GPU; 0.0 copying back 0.0 MB), 10 draws/frame, dropped 0 without a host pipeline (0 being made) and 0 indirect; heap buffers 0.0 passes 0
.0 ms;                  texture slots written so far: 85375 placed, 22242 of objects; textures picked by index: 0 uploaded so far (0 MB), 0 waiting, 0 passed ov
er unmapped; depth textures with                  unordered access: 0 made, bound as depth 0x, cleared as depth 0x,                  unordered views refused 0x;
 buffer views left null as the host would refuse them: 0; depth twins: 0 alive, 0 depth textures left without one; twin copies per frame: 0.0 into depth texture
s, 0.0 into twins; depth planes: 0.0 drawn from their twins per frame, 0 times not given back to a twin, 0 times used before the pass
2026-11-25T07:17:07.534147Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:07.534413Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.8 ms (the card about
 8% busy by this count), 3.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.6 ms
2026-11-25T07:17:08.534161Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:08.534379Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.7 ms (the card about
 8% busy by this count), 3.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.6 ms
2026-11-25T07:17:09.567519Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:09.567827Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about
 9% busy by this count), 3.1 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.9 ms
2026-11-25T07:17:10.601083Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:10.601309Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.6 ms (the card about
 8% busy by this count), 3.4 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.9 ms
2026-11-25T07:17:11.634204Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:11.634480Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about
 8% busy by this count), 3.5 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.8 ms
2026-11-25T07:17:11.634651Z  INFO victory_gpu::host: placed texture views: 0 writes of another view of the texture a slot showe
d (it kept the old view until the new was made)
2026-11-25T07:17:11.634823Z  INFO victory_gpu::host: textures picked by index, the queue: 0 slots, 0 of them due (the oldest wr
itten 0 frames ago), 0 waiting for their memory, 0 uploaded in part; since the start: 0 slots found uploaded already by the draws that read them through tables,
 0 writes of tables' slots (due some frames later), 8527 slots taken out as read through a table, 0 uploads of textures not all mapped (0 of them without their 
first page), 0 looks that found no more mapped; 22534 slots made stale by a newer view of other memory there, 104788 ranges of memory mapped, unmapped or writte
n under texture views (32768 dropped), 0 slots made due by them, 0 made slots found unmapped and made null
2026-11-25T07:17:11.635012Z  INFO victory_gpu::host: host copies in the card's memory: 0 copies 0 MB, their bytes from before 0
 MB; per frame: 0.0 MB sent up in 0 ranges, 0 pieces compared on the card, 0 of them fetched (0.0 MB) with 0.0 more waits for the card (0.0 ms)
2026-11-25T07:17:11.635183Z  INFO victory_gpu::host: 30.0 fps, 33.3 ms/frame (3.4 preparing: copies 2.5 ms 6.1 MB, textures 0.8
 ms 1.0 MB; 2.9 on the GPU; 0.0 copying back 0.0 MB), 10 draws/frame, dropped 0 without a host pipeline (0 being made) and 0 indirect; heap buffers 0.0 passes 0
.0 ms;                  texture slots written so far: 85683 placed, 22443 of objects; textures picked by index: 0 uploaded so far (0 MB), 0 waiting, 0 passed ov
er unmapped; depth textures with                  unordered access: 0 made, bound as depth 0x, cleared as depth 0x,                  unordered views refused 0x;
 buffer views left null as the host would refuse them: 0; depth twins: 0 alive, 0 depth textures left without one; twin copies per frame: 0.0 into depth texture
s, 0.0 into twins; depth planes: 0.0 drawn from their twins per frame, 0 times not given back to a twin, 0 times used before the pass
2026-11-25T07:17:12.634262Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:12.634567Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.7 ms (the card about
 8% busy by this count), 4.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.7 ms
2026-11-25T07:17:13.667191Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:13.667468Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about
 8% busy by this count), 3.7 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.8 ms
2026-11-25T07:17:14.700756Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:14.701001Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about
 8% busy by this count), 3.6 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi
tting thread stood waiting for the card 2.9 ms
2026-11-25T07:17:14.701164Z  INFO victory_gpu::host: title buffer copies recorded per frame: 0, of them 0 continue the one befo
re (VICTORY_JOIN_COPIES=1 makes those one copy with it: now off)
2026-11-25T07:17:16.284859Z  INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos
t 65535), 0 groups asked per frame
2026-11-25T07:17:16.286099Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 260.3 ms (the card abou
t 1% busy by this count), 34.1 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the sub
mitting thread stood waiting for the card 3.7 ms
2026-11-25T07:17:16.286614Z  INFO victory_gpu::host: texture refreshes per frame, all threads: 31.2 ms, of them 0.0 ms waiting 
for a texture another thread is refreshing, 0.6 ms asking the write watch and the guards, 30.2 ms waiting for title memory to hold still (the runtime remapping 
it); the rest is reading, hashing and detiling
2026-11-25T07:17:16.344087Z  INFO victory_gpu::pipeline: first bind pipeline=0x48efb510 frame=1
5315 stage="vertex" size=1284 hash=089d6271be6650ef
2026-11-25T07:17:16.344812Z  INFO victory_gpu::pipeline: first bind pipeline=0x48efb510 frame=1
5315 stage="pixel" size=4344 hash=fcee612943c008e0
2026-11-25T07:17:16.354545Z  INFO victory_gpu::pipeline: shader translated stage="vertex" hash=
089d6271be6650ef user_data=0 samplers=0
2026-11-25T07:17:16.373451Z  INFO victory_gpu::pipeline: shader translated stage="pixel" hash=f

<!-- greyfinch-sync:Zettrox/ztrx:comment:7155741142 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/2#issuecomment-7155741142). Originally posted by [orkeilius](https://github.com/orkeilius) on 2026-11-25T07:19:52Z. --- I tested the fork ## Problems I Found ### the script crash when proton isn't fully initialized Symlink error because no `<prefix>/pfx/dosdevices/z:` on a fresh prefix that not blocking but adding a small notice in the docs could be nice ### I couldn't Make the Inspect Command Work The command didn't work (cuz i didn't find where is the `final.js.c.c.gmpc` ) But skipping it seem to work fine ## What Work (skiping the inscpect) the build run to the end of the loading screen (crash on 3d scene i guess) also the steam controller (2026) surprisingly work fine in the menu <details><summary>Fast Fetch</summary> <p> OS: CachyOS x86_64 Host: MS-7B84 (2.0) Kernel: Linux 7.3.5-2-cachyos Uptime: 2 hours, 11 mins Packages: 22 (flatpak-system), 5 (flatpak-user), 1734 (pacman) Shell: fish 4.9.3 Desktop Environment: KDE Plasma 6.8.3 Window Manager: KWin (Wayland) Cursor: material (32px) Terminal: konsole 26.8.3 Terminal Font: Monocraft (10.5pt) CPU: AMD Ryzen 5 3600 (12) @ 4.21 GHz GPU: AMD Radeon RX 9060 XT [Discrete] Memory: 12.38 GiB / 15.53 GiB (80%) Swap: 4.52 GiB / 15.53 GiB (29%) Disk (/): 898.20 GiB / 927.51 GiB (97%) - btrfs Disk (/mnt/data): 687.80 GiB / 915.82 GiB (75%) - ext4 Locale: fr_FR.UTF-8 </p> </details> <details><summary>Log (last part)</summary> <p> ``` 2026-11-25T07:17:06.501585Z INFO victory_gpu::host: textures picked by index, the queue: 0 slots, 0 of them due (the oldest wr itten 0 frames ago), 0 waiting for their memory, 0 uploaded in part; since the start: 0 slots found uploaded already by the draws that read them through tables, 0 writes of tables' slots (due some frames later), 8527 slots taken out as read through a table, 0 uploads of textures not all mapped (0 of them without their first page), 0 looks that found no more mapped; 22534 slots made stale by a newer view of other memory there, 103991 ranges of memory mapped, unmapped or writte n under texture views (32768 dropped), 0 slots made due by them, 0 made slots found unmapped and made null 2026-11-25T07:17:06.501793Z INFO victory_gpu::host: host copies in the card's memory: 0 copies 0 MB, their bytes from before 0 MB; per frame: 0.0 MB sent up in 0 ranges, 0 pieces compared on the card, 0 of them fetched (0.0 MB) with 0.0 more waits for the card (0.0 ms) 2026-11-25T07:17:06.502031Z INFO victory_gpu::host: 30.0 fps, 33.3 ms/frame (3.5 preparing: copies 2.4 ms 6.0 MB, textures 1.0 ms 1.0 MB; 2.8 on the GPU; 0.0 copying back 0.0 MB), 10 draws/frame, dropped 0 without a host pipeline (0 being made) and 0 indirect; heap buffers 0.0 passes 0 .0 ms; texture slots written so far: 85375 placed, 22242 of objects; textures picked by index: 0 uploaded so far (0 MB), 0 waiting, 0 passed ov er unmapped; depth textures with unordered access: 0 made, bound as depth 0x, cleared as depth 0x, unordered views refused 0x; buffer views left null as the host would refuse them: 0; depth twins: 0 alive, 0 depth textures left without one; twin copies per frame: 0.0 into depth texture s, 0.0 into twins; depth planes: 0.0 drawn from their twins per frame, 0 times not given back to a twin, 0 times used before the pass 2026-11-25T07:17:07.534147Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:07.534413Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.8 ms (the card about 8% busy by this count), 3.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.6 ms 2026-11-25T07:17:08.534161Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:08.534379Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.7 ms (the card about 8% busy by this count), 3.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.6 ms 2026-11-25T07:17:09.567519Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:09.567827Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about 9% busy by this count), 3.1 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.9 ms 2026-11-25T07:17:10.601083Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:10.601309Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.6 ms (the card about 8% busy by this count), 3.4 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.9 ms 2026-11-25T07:17:11.634204Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:11.634480Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about 8% busy by this count), 3.5 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.8 ms 2026-11-25T07:17:11.634651Z INFO victory_gpu::host: placed texture views: 0 writes of another view of the texture a slot showe d (it kept the old view until the new was made) 2026-11-25T07:17:11.634823Z INFO victory_gpu::host: textures picked by index, the queue: 0 slots, 0 of them due (the oldest wr itten 0 frames ago), 0 waiting for their memory, 0 uploaded in part; since the start: 0 slots found uploaded already by the draws that read them through tables, 0 writes of tables' slots (due some frames later), 8527 slots taken out as read through a table, 0 uploads of textures not all mapped (0 of them without their first page), 0 looks that found no more mapped; 22534 slots made stale by a newer view of other memory there, 104788 ranges of memory mapped, unmapped or writte n under texture views (32768 dropped), 0 slots made due by them, 0 made slots found unmapped and made null 2026-11-25T07:17:11.635012Z INFO victory_gpu::host: host copies in the card's memory: 0 copies 0 MB, their bytes from before 0 MB; per frame: 0.0 MB sent up in 0 ranges, 0 pieces compared on the card, 0 of them fetched (0.0 MB) with 0.0 more waits for the card (0.0 ms) 2026-11-25T07:17:11.635183Z INFO victory_gpu::host: 30.0 fps, 33.3 ms/frame (3.4 preparing: copies 2.5 ms 6.1 MB, textures 0.8 ms 1.0 MB; 2.9 on the GPU; 0.0 copying back 0.0 MB), 10 draws/frame, dropped 0 without a host pipeline (0 being made) and 0 indirect; heap buffers 0.0 passes 0 .0 ms; texture slots written so far: 85683 placed, 22443 of objects; textures picked by index: 0 uploaded so far (0 MB), 0 waiting, 0 passed ov er unmapped; depth textures with unordered access: 0 made, bound as depth 0x, cleared as depth 0x, unordered views refused 0x; buffer views left null as the host would refuse them: 0; depth twins: 0 alive, 0 depth textures left without one; twin copies per frame: 0.0 into depth texture s, 0.0 into twins; depth planes: 0.0 drawn from their twins per frame, 0 times not given back to a twin, 0 times used before the pass 2026-11-25T07:17:12.634262Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:12.634567Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.7 ms (the card about 8% busy by this count), 4.2 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.7 ms 2026-11-25T07:17:13.667191Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:13.667468Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about 8% busy by this count), 3.7 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.8 ms 2026-11-25T07:17:14.700756Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:14.701001Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 30.5 ms (the card about 8% busy by this count), 3.6 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submi tting thread stood waiting for the card 2.9 ms 2026-11-25T07:17:14.701164Z INFO victory_gpu::host: title buffer copies recorded per frame: 0, of them 0 continue the one befo re (VICTORY_JOIN_COPIES=1 makes those one copy with it: now off) 2026-11-25T07:17:16.284859Z INFO victory_gpu::host: indirect mesh dispatches: the largest group count asked for 0 (run: at mos t 65535), 0 groups asked per frame 2026-11-25T07:17:16.286099Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 260.3 ms (the card abou t 1% busy by this count), 34.1 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the sub mitting thread stood waiting for the card 3.7 ms 2026-11-25T07:17:16.286614Z INFO victory_gpu::host: texture refreshes per frame, all threads: 31.2 ms, of them 0.0 ms waiting for a texture another thread is refreshing, 0.6 ms asking the write watch and the guards, 30.2 ms waiting for title memory to hold still (the runtime remapping it); the rest is reading, hashing and detiling 2026-11-25T07:17:16.344087Z INFO victory_gpu::pipeline: first bind pipeline=0x48efb510 frame=1 5315 stage="vertex" size=1284 hash=089d6271be6650ef 2026-11-25T07:17:16.344812Z INFO victory_gpu::pipeline: first bind pipeline=0x48efb510 frame=1 5315 stage="pixel" size=4344 hash=fcee612943c008e0 2026-11-25T07:17:16.354545Z INFO victory_gpu::pipeline: shader translated stage="vertex" hash= 089d6271be6650ef user_data=0 samplers=0 2026-11-25T07:17:16.373451Z INFO victory_gpu::pipeline: shader translated stage="pixel" hash=f ``` </p> </details>
slauko commented 2026-11-25 14:11:05 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by slauko on 2026-11-25T14:01:23Z.


The "Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws a frame for ever" has a cause on the host side, and needs no change in the runtime.

Under Wine, XInput reported a gamepad that never presses a button: the keyboard interface of a Logitech G502, an HID interface with BTN_GAMEPAD, which Linux exposes as /dev/input/js0. The runtime gives the title its keyboard stand-in pad only while XInput has no pad at all (any_pad in crates/victory-hle/src/modules/gameinput.rs), so with that device connected the title listens to pad 0 for ever.

The runtime's log tells the two apart:

input device device=0 connected=true     ← the phantom pad: the title waits for it
input device device=4 connected=true     ← the keyboard stand-in: Return goes through

SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000 (a vendor/product pair no device has) keeps every pad from Wine's side. With it the stand-in is back and the start screen takes Return.

With that, the native d3d12/d3d12core/dxgi overrides, vkd3d-proton master@ec20719, the DXC fallback of #20 and the null-blob pipeline library (VIctory#1722), the first-boot screens, the loading art and the intro rendered on an RTX 3080 Ti under Proton Experimental.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7164638661 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/2#issuecomment-7164638661). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T14:01:23Z. --- The "Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws a frame for ever" has a cause on the host side, and needs no change in the runtime. Under Wine, XInput reported a gamepad that never presses a button: the keyboard interface of a Logitech G502, an HID interface with `BTN_GAMEPAD`, which Linux exposes as `/dev/input/js0`. The runtime gives the title its keyboard stand-in pad only while XInput has no pad at all (`any_pad` in `crates/victory-hle/src/modules/gameinput.rs`), so with that device connected the title listens to pad 0 for ever. The runtime's log tells the two apart: ``` input device device=0 connected=true ← the phantom pad: the title waits for it input device device=4 connected=true ← the keyboard stand-in: Return goes through ``` `SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000` (a vendor/product pair no device has) keeps every pad from Wine's side. With it the stand-in is back and the start screen takes Return. With that, the native `d3d12`/`d3d12core`/`dxgi` overrides, vkd3d-proton `master@ec20719`, the DXC fallback of #20 and the null-blob pipeline library (VIctory#1722), the first-boot screens, the loading art and the intro rendered on an RTX 3080 Ti under Proton Experimental.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2:upstream-pr/2'
git switch 'upstream-pr/2'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2'
git switch 'upstream-pr/2'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2'
git switch 'upstream-pr/2'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2'
git switch 'main'
git merge --squash 'upstream-pr/2'
git switch 'main'
git merge --ff-only 'upstream-pr/2'
git switch 'main'
git merge 'upstream-pr/2'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
Zettrox/ztrx!2
No description provided.