GPU: the host pipeline library works under Wine (null blob for an empty library) #1721

Open
Impre-visible wants to merge 3 commits from upstream-pr/1722 into main
Impre-visible commented 2026-11-24 21:19:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-24T21:19:06Z.


What

Two changes in crates/victory-gpu/src/pipeline/library.rs, both about hosts where D3D12 is vkd3d-proton (Wine/Proton).

1. An empty library is created with a null blob. make(&[]) passes an empty Rust slice, whose pointer is dangling and non-null. Windows only looks at the length. vkd3d-proton refuses a non-null blob of length 0 with E_INVALIDARG, so under Wine every run logs

INFO victory_gpu::pipeline::library: no host pipeline library yet; starting an empty one
WARN victory_gpu::pipeline::library: no host pipeline library: pipelines are not kept

and neither host-pipelines.bin nor early-pipelines.txt is ever written: no pipeline is started early on the next run. The empty library is now asked for through the vtable with a null pointer and length 0. A refusal is logged with its error.

2. A pipeline is loaded outside the library's lock. pipeline() held the mutex for the whole LoadPipeline call. Creation was already done outside the lock ("compiles take up to seconds"); with vkd3d-proton's internal cache on, its library stores no compiled code, so a load is a whole pipeline creation too, and the workers then made loaded pipelines one at a time. The load now uses a clone of the library interface taken under the lock. StorePipeline and Serialize still run under it.

Measured

Linux, Wine (GE-Proton11-6) + vkd3d-proton, GTX 1660, NVIDIA 620.73.04.

On this branch (main + this commit), two 75 s runs in a row:

run 1 run 2
library saved bytes=2552 early=12 made=13 loaded=0 host pipeline library loaded bytes=2552, title pipelines to start early pipelines=12

On a larger test tree, at world entry (about 1,400 pipelines first bound in one frame):

made loaded started early all pipelines ready after world entry
change 1 only 3 419 357 not within 30 s; in stack dumps 7 of 8 workers wait in Mutex::lock_contended inside library::pipeline, the eighth is in the host's create call
changes 1 and 2 0 500 499 3 s (host pipelines all made made=0 loaded=500 started_early=499)

Before change 1: made equals everything on every run, nothing loaded, nothing started early.

Not tested

  • Windows: not run (I only have this Linux/NVIDIA machine). cargo build --release -p victory with and without --features diagnostics builds for x86_64-pc-windows-msvc. A null blob with length 0 is the documented way to create an empty library, so I expect no change there, but that is unverified.
  • No unit test: both paths need a host device.
  • cargo clippy: not run here.
  • Whether vkd3d-proton's library gets faster with its internal cache off (VKD3D_SHADER_CACHE_PATH=0, where it would store SPIR-V and driver blobs): not measured.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:5480513115 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-24T21:19:06Z. --- ## What Two changes in `crates/victory-gpu/src/pipeline/library.rs`, both about hosts where D3D12 is vkd3d-proton (Wine/Proton). **1. An empty library is created with a null blob.** `make(&[])` passes an empty Rust slice, whose pointer is dangling and non-null. Windows only looks at the length. vkd3d-proton refuses a non-null blob of length 0 with `E_INVALIDARG`, so under Wine every run logs ``` INFO victory_gpu::pipeline::library: no host pipeline library yet; starting an empty one WARN victory_gpu::pipeline::library: no host pipeline library: pipelines are not kept ``` and neither `host-pipelines.bin` nor `early-pipelines.txt` is ever written: no pipeline is started early on the next run. The empty library is now asked for through the vtable with a null pointer and length 0. A refusal is logged with its error. **2. A pipeline is loaded outside the library's lock.** `pipeline()` held the mutex for the whole `LoadPipeline` call. Creation was already done outside the lock ("compiles take up to seconds"); with vkd3d-proton's internal cache on, its library stores no compiled code, so a load is a whole pipeline creation too, and the workers then made loaded pipelines one at a time. The load now uses a clone of the library interface taken under the lock. `StorePipeline` and `Serialize` still run under it. ## Measured Linux, Wine (GE-Proton11-6) + vkd3d-proton, GTX 1660, NVIDIA 620.73.04. On this branch (main + this commit), two 75 s runs in a row: | | run 1 | run 2 | |---|---|---| | library | `saved bytes=2552 early=12 made=13 loaded=0` | `host pipeline library loaded bytes=2552`, `title pipelines to start early pipelines=12` | On a larger test tree, at world entry (about 1,400 pipelines first bound in one frame): | | made | loaded | started early | all pipelines ready after world entry | |---|---|---|---|---| | change 1 only | 3 | 419 | 357 | not within 30 s; in stack dumps 7 of 8 workers wait in `Mutex::lock_contended` inside `library::pipeline`, the eighth is in the host's create call | | changes 1 and 2 | 0 | 500 | 499 | 3 s (`host pipelines all made made=0 loaded=500 started_early=499`) | Before change 1: `made` equals everything on every run, nothing loaded, nothing started early. ## Not tested - Windows: not run (I only have this Linux/NVIDIA machine). `cargo build --release -p victory` with and without `--features diagnostics` builds for `x86_64-pc-windows-msvc`. A null blob with length 0 is the documented way to create an empty library, so I expect no change there, but that is unverified. - No unit test: both paths need a host device. - `cargo clippy`: not run here. - Whether vkd3d-proton's library gets faster with its internal cache off (`VKD3D_SHADER_CACHE_PATH=0`, where it would store SPIR-V and driver blobs): not measured. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DenRakEiw commented 2026-11-24 21:26:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:26:24Z.

Review: APPROVED


Verified locally merged onto origin/main (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):

  • cargo test -p victory-gpu — 50 passed, 0 failed (1 ignored) on both RTX 5090 hardware and VICTORY_D3D12_WARP=1
  • cargo clippy -p victory-gpu --all-targets — 0 warnings
  • cargo xtask policy — ok

Clean Wine compatibility fix passing a null blob for an empty pipeline library and performing loads outside the lock. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6047682533 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#pullrequestreview-6047682533). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T21:26:24Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC): - `cargo test -p victory-gpu` — 50 passed, 0 failed (1 ignored) on both RTX 5090 hardware and `VICTORY_D3D12_WARP=1` - `cargo clippy -p victory-gpu --all-targets` — 0 warnings - `cargo xtask policy` — ok Clean Wine compatibility fix passing a null blob for an empty pipeline library and performing loads outside the lock. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-24 21:36:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:36:42Z.

Review: COMMENTED


Static review only: this crate is Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; source review of the diff.

Empty pipeline library under Wine: an empty Rust slice has a dangling non-null pointer, and vkd3d-proton rejects a non-null blob of length 0 with E_INVALIDARG. The fix asks for a truly null blob via the vtable directly (CreatePipelineLibrary(null, 0)) and falls back to the normal path otherwise. Minimal and correct-looking; the vtable call is unsafe but matches the COM signature. Windows/Wine-only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047807747 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#pullrequestreview-6047807747). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T21:36:42Z. **Review:** COMMENTED --- Static review only: this crate is Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; source review of the diff. Empty pipeline library under Wine: an empty Rust slice has a dangling non-null pointer, and vkd3d-proton rejects a non-null blob of length 0 with E_INVALIDARG. The fix asks for a truly null blob via the vtable directly (CreatePipelineLibrary(null, 0)) and falls back to the normal path otherwise. Minimal and correct-looking; the vtable call is unsafe but matches the COM signature. Windows/Wine-only.
upstream-sync changed title from [PR #1722] GPU: the host pipeline library works under Wine (null blob for an empty library, loads outside the lock) to [PR #1722] GPU: the host pipeline library works under Wine (null blob for an empty library) 2026-11-25 01:07:05 +00:00
Impre-visible commented 2026-11-25 01:07:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-25T00:21:47Z.


Merged today's main into this branch. main now takes the library interface under the lock and loads outside it (the second change here), so I kept main's version of that and this PR is down to its first change: the empty library is created with a null blob, which vkd3d-proton needs.

Re-measured on the merged branch (Linux, Wine + vkd3d-proton, GTX 1660), two 75 s runs in a row: run 1 saved bytes=2744 early=14 made=14 loaded=0; run 2 made=0 loaded=14 started_early=14. Without the change, main still logs no host pipeline library: pipelines are not kept there. Builds for x86_64-pc-windows-msvc with and without --features diagnostics.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148430206 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7148430206). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T00:21:47Z. --- Merged today's `main` into this branch. `main` now takes the library interface under the lock and loads outside it (the second change here), so I kept `main`'s version of that and this PR is down to its first change: the empty library is created with a null blob, which vkd3d-proton needs. Re-measured on the merged branch (Linux, Wine + vkd3d-proton, GTX 1660), two 75 s runs in a row: run 1 `saved bytes=2744 early=14 made=14 loaded=0`; run 2 `made=0 loaded=14 started_early=14`. Without the change, `main` still logs `no host pipeline library: pipelines are not kept` there. Builds for `x86_64-pc-windows-msvc` with and without `--features diagnostics`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Marvisak commented 2026-11-25 03:03:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T02:16:45Z.


Automated triage for the maintainers.

Merge candidate.

The head is unchanged since the last triage (ee84a44). The PR is still one change in crates/victory-gpu/src/pipeline/library.rs open: the empty host pipeline library is created with a null blob and length 0 through the raw CreatePipelineLibrary call, instead of make(&[]), which passes a dangling non-null pointer. Main (940d32f) still has make(&[]) at that spot. The change is small, the failure path still returns None (now with a log line), and it touches no dependencies. CI is passing (check), and it merges cleanly.

On your reply: thanks. There is now an independent run on a second vendor (RX 9070 XT, RADV under Wine): the library is saved and reloaded across runs, and a_rejected_blob_gives_an_empty_library passes there. Your world-scale run shows the same. Nobody has run it on Windows yet. Since a null blob of length 0 is the documented way to ask for an empty library, the risk there is low.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7150525800 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7150525800). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T02:16:45Z. --- <!-- victory-triage v1 head=ee84a44859d4384ea5b945fa59e09ad9f9ac8d61 verdict=merge-candidate at=2026-11-25T11:20:42Z --> Automated triage for the maintainers. **Merge candidate.** The head is unchanged since the last triage (`ee84a44`). The PR is still one change in `crates/victory-gpu/src/pipeline/library.rs` `open`: the empty host pipeline library is created with a null blob and length 0 through the raw `CreatePipelineLibrary` call, instead of `make(&[])`, which passes a dangling non-null pointer. Main (`940d32f`) still has `make(&[])` at that spot. The change is small, the failure path still returns `None` (now with a log line), and it touches no dependencies. CI is passing (`check`), and it merges cleanly. On your reply: thanks. There is now an independent run on a second vendor (RX 9070 XT, RADV under Wine): the library is saved and reloaded across runs, and `a_rejected_blob_gives_an_empty_library` passes there. Your world-scale run shows the same. Nobody has run it on Windows yet. Since a null blob of length 0 is the documented way to ask for an empty library, the risk there is low. --- _Generated by [Claude Code](https://claude.ai/code)_
Impre-visible commented 2026-11-25 05:06:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-25T05:00:50Z.


Merged the current main (940d32f) into this branch; it merges without conflict now. Builds for x86_64-pc-windows-msvc with and without --features diagnostics; cargo test -p victory-shader --lib: 145 passed, 2 ignored.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153367819 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7153367819). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T05:00:50Z. --- Merged the current `main` (940d32f) into this branch; it merges without conflict now. Builds for `x86_64-pc-windows-msvc` with and without `--features diagnostics`; `cargo test -p victory-shader --lib`: 145 passed, 2 ignored. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ntgata1-dotcom commented 2026-11-25 11:05:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ntgata1-dotcom on 2026-11-25T10:15:32Z.


RX 9070 XT (RADV) under Wine 11.22: pipelines are kept and loaded (menus only)

Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1. System Wine 11.22. vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi from GE-Proton11-14. Release build of ee84a44, cross-built with cargo-xwin. Title first-boot screens only, no input. Two 150 s runs in a row on one cache folder.

library log
main 940d32f no host pipeline library: pipelines are not kept; nothing written
this PR, run 1 starting an empty one, then saves up to bytes=1208 early=6 made=6 loaded=0
this PR, run 2 title pipelines to start early pipelines=6, loaded bytes=1208, then saved … made=0 loaded=6 started_early=6
  • Both runs: 30.0 fps after start-up, no crashes.log, no amdgpu messages in the kernel log during the runs. The other warnings are the same as on main.
  • victory-gpu tests under Wine: pipeline::library::tests::a_rejected_blob_gives_an_empty_library now passes (131 passed, 12 failed; main: 130 / 13). The other 12 failures are the same on both.

Not tested: the world (the menus make only 6 pipelines), Windows.

AI-assisted (Claude Code); numbers from my own runs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159448409 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7159448409). Originally posted by [ntgata1-dotcom](https://github.com/ntgata1-dotcom) on 2026-11-25T10:15:32Z. --- **RX 9070 XT (RADV) under Wine 11.22: pipelines are kept and loaded (menus only)** Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1. System Wine 11.22. vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi` from GE-Proton11-14. Release build of `ee84a44`, cross-built with cargo-xwin. Title first-boot screens only, no input. Two 150 s runs in a row on one cache folder. | | library log | |---|---| | `main` `940d32f` | `no host pipeline library: pipelines are not kept`; nothing written | | this PR, run 1 | `starting an empty one`, then saves up to `bytes=1208 early=6 made=6 loaded=0` | | this PR, run 2 | `title pipelines to start early pipelines=6`, `loaded bytes=1208`, then `saved … made=0 loaded=6 started_early=6` | - Both runs: 30.0 fps after start-up, no `crashes.log`, no amdgpu messages in the kernel log during the runs. The other warnings are the same as on `main`. - `victory-gpu` tests under Wine: `pipeline::library::tests::a_rejected_blob_gives_an_empty_library` now passes (131 passed, 12 failed; `main`: 130 / 13). The other 12 failures are the same on both. Not tested: the world (the menus make only 6 pipelines), Windows. AI-assisted (Claude Code); numbers from my own runs.
Impre-visible commented 2026-11-25 11:05:10 +00:00 (Migrated from github.com)

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


@ntgata1-dotcom thank you, that is the independent run this needed, and on a different vendor (RADV) than mine.

To cover the part you list as not tested: a world-scale number from my side (NVIDIA GTX 1660, Wine + vkd3d-proton 2576c0b, same null-blob change applied to another tree): one 20-minute run into the world ends with host pipeline library saved bytes=308408 early=1717 made=1615 loaded=89, and the next launches start those early. I measured no gain in time to reach the world from it on this card (151 s on the cold run; 201, 157 and 159 s on three warm ones), so the benefit I can show is that the pipelines are kept and reloaded, not a faster start. Without the change that tree logs no host pipeline library: pipelines are not kept on every run, as main does.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159492357 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7159492357). Originally posted by [Impre-visible](https://github.com/Impre-visible) on 2026-11-25T10:17:26Z. --- @ntgata1-dotcom thank you, that is the independent run this needed, and on a different vendor (RADV) than mine. To cover the part you list as not tested: a world-scale number from my side (NVIDIA GTX 1660, Wine + vkd3d-proton `2576c0b`, same null-blob change applied to another tree): one 20-minute run into the world ends with `host pipeline library saved bytes=308408 early=1717 made=1615 loaded=89`, and the next launches start those early. I measured no gain in time to reach the world from it on this card (151 s on the cold run; 201, 157 and 159 s on three warm ones), so the benefit I can show is that the pipelines are kept and reloaded, not a faster start. Without the change that tree logs `no host pipeline library: pipelines are not kept` on every run, as `main` does. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
OsiPog commented 2026-11-25 12:03:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by OsiPog on 2026-11-25T11:38:46Z.


Tested on Linux (Wine-staging 11.21 + vkd3d-proton, RADV): without this the library is never kept (E_INVALIDARG from CreatePipelineLibrary with an empty blob); with it a 4.5 MB library loads in 9-17 ms and ~2.4k pipelines are reused on the next run.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7161314791 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7161314791). Originally posted by [OsiPog](https://github.com/OsiPog) on 2026-11-25T11:38:46Z. --- Tested on Linux (Wine-staging 11.21 + vkd3d-proton, RADV): without this the library is never kept (E_INVALIDARG from CreatePipelineLibrary with an empty blob); with it a 4.5 MB library loads in 9-17 ms and ~2.4k pipelines are reused on the next run.
axknxla commented 2026-11-25 16:09:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by axknxla on 2026-11-25T15:40:20Z.


I independently verified the host pipeline library save and reload on RTX 2070 SUPER, NVIDIA 620.73.04, Linux and GE-Proton 11-14. I used upstream 940d32f6 and this PR at ee84a448 (merge commit 39565b61), release + diagnostics, Rust 1.98.1, with the same local trace in both binaries. The guarded runs used the same Series X profile, copied save and scripted first-mission route.

The cold PR run reached the heavy transition and saved 27,128 bytes in host-pipelines.bin and 1,279 keys in early-pipelines.txt. Every subsequent run started from a private copy of that same snapshot. For the main control I omitted both host pipeline files. For the last PR run I omitted only the early-start list.

Run Loaded host library Distinct keys scheduled early Successful host library loads Last milestone
Main control Unavailable 0 0 Heavy pipeline demand, then exit code 3
PR, both files 27,128 bytes 1,050 28 Exit code 3 before mission load, after 21.4 s
PR, both files repeated 27,128 bytes 1,050 28 Exit code 3 before mission load, after 21.3 s
PR, library only 27,128 bytes 0 182 Heavy pipeline demand, then exit code 3

Both full replays read all 1,279 early-start entries. The guard recorded no GPU fault. The library-only replay reached heavy demand with the same saved library, so in this test the early exit reproduced with the full early-start list. The logs didn’t establish why the process exited.

The full replays ended before I could compare mission readiness. In the library-only versus main pair, all 1,165 matched keys were pending at first request. Of the 356 keys with at least one second of common follow-up, 37 were ready within one second on the library-only replay and 222 on main. This was one pair, with the early-start list omitted on both sides, so it leaves the performance impact of the normal warm path open.

Codex assisted with the local instrumentation and analysis. These are aggregate timings and counts.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167202555 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7167202555). Originally posted by [axknxla](https://github.com/axknxla) on 2026-11-25T15:40:20Z. --- I independently verified the host pipeline library save and reload on RTX 2070 SUPER, NVIDIA 620.73.04, Linux and GE-Proton 11-14. I used upstream `940d32f6` and this PR at `ee84a448` (merge commit `39565b61`), release + diagnostics, Rust 1.98.1, with the same local trace in both binaries. The guarded runs used the same Series X profile, copied save and scripted first-mission route. The cold PR run reached the heavy transition and saved **27,128 bytes** in `host-pipelines.bin` and **1,279 keys** in `early-pipelines.txt`. Every subsequent run started from a private copy of that same snapshot. For the main control I omitted both host pipeline files. For the last PR run I omitted only the early-start list. | Run | Loaded host library | Distinct keys scheduled early | Successful host library loads | Last milestone | | --- | ---: | ---: | ---: | --- | | Main control | Unavailable | 0 | 0 | Heavy pipeline demand, then exit code 3 | | PR, both files | 27,128 bytes | 1,050 | 28 | Exit code 3 before mission load, after 21.4 s | | PR, both files repeated | 27,128 bytes | 1,050 | 28 | Exit code 3 before mission load, after 21.3 s | | PR, library only | 27,128 bytes | 0 | 182 | Heavy pipeline demand, then exit code 3 | Both full replays read all 1,279 early-start entries. The guard recorded no GPU fault. The library-only replay reached heavy demand with the same saved library, so in this test the early exit reproduced with the full early-start list. The logs didn’t establish why the process exited. The full replays ended before I could compare mission readiness. In the library-only versus main pair, all **1,165** matched keys were pending at first request. Of the **356** keys with at least one second of common follow-up, **37** were ready within one second on the library-only replay and **222** on main. This was one pair, with the early-start list omitted on both sides, so it leaves the performance impact of the normal warm path open. Codex assisted with the local instrumentation and analysis. These are aggregate timings and counts.
axknxla commented 2026-11-25 16:09:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by axknxla on 2026-11-25T16:02:44Z.


I traced the early exit from the full-cache replays and posted the results in the existing compiler-crash issue. Both detailed startup traces faulted while creating compute shader 76c35de1c2444e67 after a library miss, matching the shader already reported on RTX 5090.

Upstream main also hit the same NVIDIA compiler offset later during graphics pipeline creation with both host pipeline files omitted. On this route the full early-start list moved the failure to startup. The library save and reload results above still hold.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167543708 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7167543708). Originally posted by [axknxla](https://github.com/axknxla) on 2026-11-25T16:02:44Z. --- I traced the early exit from the full-cache replays and posted the [results in the existing compiler-crash issue](https://github.com/Marvisak/VIctory/issues/144#issuecomment-7167529292). Both detailed startup traces faulted while creating compute shader `76c35de1c2444e67` after a library miss, matching the shader already reported on RTX 5090. Upstream main also hit the same NVIDIA compiler offset later during graphics pipeline creation with both host pipeline files omitted. On this route the full early-start list moved the failure to startup. The library save and reload results above still hold.
arogan178 commented 2026-11-26 00:03:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arogan178 on 2026-11-25T23:42:17Z.


Note

🤖 Claude Opus 5.5 responding on behalf of @arogan178

Verified on RDNA 4 under Proton: pipeline::library::tests::a_rejected_blob_gives_an_empty_library and pipelines_load_on_many_threads_at_once fail on main ("an empty library") and pass with this PR.

Setup: RX 9070 XT, RADV (Mesa 27.0-devel), Proton-CachyOS 11.0 with vkd3d-proton 3.2.0 from Proton Experimental, Windows SDK d3dcompiler_47 10.0.26100. victory-gpu lib tests cross-built for x86_64-pc-windows-msvc from main at 63bcca4 merged with #1722 and #2101 (both merge cleanly): 232 passed, 0 failed. main alone: 228 passed, 3 failed, the three named in these two PRs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177933284 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7177933284). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-25T23:42:17Z. --- > [!NOTE] > 🤖 **Claude Opus 5.5 responding on behalf of @arogan178** Verified on RDNA 4 under Proton: `pipeline::library::tests::a_rejected_blob_gives_an_empty_library` and `pipelines_load_on_many_threads_at_once` fail on `main` ("an empty library") and pass with this PR. Setup: RX 9070 XT, RADV (Mesa 27.0-devel), Proton-CachyOS 11.0 with vkd3d-proton 3.2.0 from Proton Experimental, Windows SDK `d3dcompiler_47` 10.0.26100. `victory-gpu` lib tests cross-built for `x86_64-pc-windows-msvc` from `main` at `63bcca4` merged with #1722 and #2101 (both merge cleanly): 232 passed, 0 failed. `main` alone: 228 passed, 3 failed, the three named in these two PRs.
necrobytes commented 2026-11-26 02:07:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by necrobytes on 2026-11-26T01:25:26Z.


I tested the empty-library change from ee84a448 on 63bcca43 on Fedora 45, Ryzen 5 9600X and RX 9060 XT (RADV 26.2.7, vkd3d-proton 3.2.0). Both builds used the same Proton Experimental client, view-lookup-patched wineserver and graphics DLLs. The existing a_rejected_blob_gives_an_empty_library test failed on main and passed with this PR on the physical GPU.

Each build got one warmup into the opening sequence. For each of three timed launches per build I restored its warmed caches and the same starting profile at 1280×720. Main logged that it could not create a host pipeline library. The PR saved 313,400 bytes and 1,765 early-start entries. On the next launch it reported 1,360 pipelines loaded and zero created before the world marker.

Warm launches Main Main + this change
Reached the first frame with at least 500 draws 3/3 2/3
Seconds from launch to that marker 37.1 each 38.1 each
Covered the next 40 seconds 3/3 1/3
Mean FPS in each complete 40-second window 1.396, 1.368, 1.373 1.399
Drops per frame attributed to a pipeline still being made in those windows 5.6, 3.3, 20.0 1.0

One main run exited early. All three PR runs exited early, one before the marker and the others about 23 and 62 seconds afterward. Two compute pipelines from the failing runs also failed independently on main and compiled with #2723. The library fix restores reuse on this machine. The surviving frame-time samples are too few to establish an FPS improvement.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179758064 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7179758064). Originally posted by [necrobytes](https://github.com/necrobytes) on 2026-11-26T01:25:26Z. --- I tested the empty-library change from `ee84a448` on `63bcca43` on Fedora 45, Ryzen 5 9600X and RX 9060 XT (RADV 26.2.7, vkd3d-proton 3.2.0). Both builds used the same Proton Experimental client, view-lookup-patched wineserver and graphics DLLs. The existing `a_rejected_blob_gives_an_empty_library` test failed on main and passed with this PR on the physical GPU. Each build got one warmup into the opening sequence. For each of three timed launches per build I restored its warmed caches and the same starting profile at 1280×720. Main logged that it could not create a host pipeline library. The PR saved 313,400 bytes and 1,765 early-start entries. On the next launch it reported 1,360 pipelines loaded and zero created before the world marker. | Warm launches | Main | Main + this change | |---|---:|---:| | Reached the first frame with at least 500 draws | 3/3 | 2/3 | | Seconds from launch to that marker | 37.1 each | 38.1 each | | Covered the next 40 seconds | 3/3 | 1/3 | | Mean FPS in each complete 40-second window | 1.396, 1.368, 1.373 | 1.399 | | Drops per frame attributed to a pipeline still being made in those windows | 5.6, 3.3, 20.0 | 1.0 | One main run exited early. All three PR runs exited early, one before the marker and the others about 23 and 62 seconds afterward. Two compute pipelines from the failing runs also failed independently on main and compiled with #2723. The library fix restores reuse on this machine. The surviving frame-time samples are too few to establish an FPS improvement. AI-assisted with Codex.
arogan178 commented 2026-11-26 09:06:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arogan178 on 2026-11-26T08:18:03Z.


Tested at head ee84a4485 on AMD under Proton. It works: the library is created, saved and reloaded.

Setup: RX 9070 XT, Mesa RADV, CachyOS, Proton Experimental bleeding-edge 11.0-20261125 (vkd3d-proton 71cae0, rebuilt with the dxil-spirv#383 fix so the prebuild survives; see #3101), Series X 1.0.2.1, cross-built release.

before with this PR
Startup no host pipeline library: pipelines are not kept no host pipeline library yet; starting an empty one, then saved
translate --cache --pipelines, first run nothing kept 23,488 made, host-pipelines.bin 4.5 MB
Same, next run everything made again host pipeline library loaded: 0 made, 27,120 already in the library, 2.0 s

Only library.rs changes, and the diff applied cleanly to current main. #347 is the older, conflicting version of the same fix, so this one is the one to merge.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7186428452 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7186428452). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-26T08:18:03Z. --- Tested at head `ee84a4485` on AMD under Proton. It works: the library is created, saved and reloaded. Setup: RX 9070 XT, Mesa RADV, CachyOS, Proton Experimental bleeding-edge 11.0-20261125 (vkd3d-proton `71cae0`, rebuilt with the dxil-spirv#383 fix so the prebuild survives; see #3101), Series X 1.0.2.1, cross-built release. | | before | with this PR | |---|---|---| | Startup | `no host pipeline library: pipelines are not kept` | `no host pipeline library yet; starting an empty one`, then saved | | `translate --cache --pipelines`, first run | nothing kept | 23,488 made, `host-pipelines.bin` 4.5 MB | | Same, next run | everything made again | `host pipeline library loaded`: 0 made, 27,120 already in the library, 2.0 s | Only `library.rs` changes, and the diff applied cleanly to current main. #347 is the older, conflicting version of the same fix, so this one is the one to merge.
fuzeofficlal commented 2026-11-26 12:40:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T12:40:42Z.

Review: APPROVED


Reviewed and verified ee84a448 against origin/main (63bcca43; clean git merge-tree):

  • Passing a null pointer and zero length directly to CreatePipelineLibrary (crates/victory-gpu/src/pipeline/library.rs:170-198) resolves the dangling-pointer rejection on empty libraries cleanly, checks the HRESULT before taking ownership of out, and safely releases the temporary ID3D12PipelineLibrary if the ID3D12PipelineLibrary1 cast fails.

Local checks on ee84a448 passed: xtask policy (182 files ok), cargo clippy -p victory-gpu --all-targets -- -D warnings (default & --all-features), and victory-gpu --lib pipeline::library::tests (8 passed, 0 failed on RTX 5090, RTX 5090 + VICTORY_D3D12_DEBUG=1, and WARP + VICTORY_D3D12_DEBUG=1). Approve.

<!-- greyfinch-sync:Marvisak/VIctory:review:6074283593 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#pullrequestreview-6074283593). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T12:40:42Z. **Review:** APPROVED --- Reviewed and verified `ee84a448` against `origin/main` (`63bcca43`; clean `git merge-tree`): - Passing a null pointer and zero length directly to `CreatePipelineLibrary` (`crates/victory-gpu/src/pipeline/library.rs:170-198`) resolves the dangling-pointer rejection on empty libraries cleanly, checks the HRESULT before taking ownership of `out`, and safely releases the temporary `ID3D12PipelineLibrary` if the `ID3D12PipelineLibrary1` cast fails. Local checks on `ee84a448` passed: `xtask policy` (`182 files ok`), `cargo clippy -p victory-gpu --all-targets -- -D warnings` (default & `--all-features`), and `victory-gpu --lib pipeline::library::tests` (`8 passed, 0 failed` on RTX 5090, RTX 5090 + `VICTORY_D3D12_DEBUG=1`, and WARP + `VICTORY_D3D12_DEBUG=1`). Approve.
pickles976 commented 2026-11-26 19:10:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-26T19:10:27Z.


Independent verification of exact production head ee84a44859d4384ea5b945fa59e09ad9f9ac8d61 on Linux/Wine 11.0 and the physical NVIDIA GeForce RTX 4060 Laptop GPU (driver 590.48.1): 2 focused tests passed, 0 failed/ignored, 1.04 s after fresh 6.41 s compilation.

cargo test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- pipelines_load_on_many_threads_at_once a_rejected_blob_gives_an_empty_library --nocapture --test-threads=1
  • a_rejected_blob_gives_an_empty_library: a rejected non-library blob falls back to a live empty library with a nonzero serialized size.
  • pipelines_load_on_many_threads_at_once: cold library creation, 48 stored synthetic compute PSOs, serialization/reopen, concurrent load/store across eight threads, rejection of mismatched/missing descriptions, and eventual loads of all 96 entries pass.

Only three local test changes: replace both absent-device returns and the unavailable-shader-compiler return with panics. Adapter and compiler absence cannot silently pass. Production source unchanged; required real host was enumerated. Rust 1.98.1, Windows MSVC target, DXVK_CONFIG='dxgi.hideNvidiaGpu = False', one test thread, 9 GiB memory/512 MiB swap scope and180s timeout. Installed vkd3d-proton3.2.0 2576c0b4adfae4a+ is the lab's diagnostic-relaxed build, not stock-driver certification.

These fixtures create real host PSOs and exercise library serialization/loading, but do not dispatch shaders, launch the title, measure cache hit rates during loading, or demonstrate RAM relief. Our previously recorded empty-blob E_INVALIDARG failure on #3147 was not rerun merely to reconfirm it; this is not a newly matched same-fixture head/base comparison.

Build-provenance caveat: the first attempted compile reused incompatible shader-crate metadata from another worktree (Host appeared to have a private warp field absent from this checkout). Touching the local shader/core/formats/pipeline/GPU crate roots forced matching fresh compilations and resolved it without production edits. That attempt is a shared-target lab failure, not a PR build defect.

Evidence: .compat-runtime/logs/verify-pr1722-wine-library-fresh-deps.log; initial invalid build attempt retained as verify-pr1722-wine-library.log. AI-assisted verification (OpenAI GPT-6 Astra).

Integration follow-through: #3147 plus this bootstrap fix passed 14/14 library checks, including a populated file-mapped library with concurrent real-host PSO reloads. That is a disclosed mixed-stack/local-probe result, not an exact-head full-suite or loading-RAM claim.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201274001 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7201274001). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-26T19:10:27Z. --- Independent verification of exact production head `ee84a44859d4384ea5b945fa59e09ad9f9ac8d61` on Linux/Wine 11.0 and the physical NVIDIA GeForce RTX 4060 Laptop GPU (driver 590.48.1): **2 focused tests passed, 0 failed/ignored**, 1.04 s after fresh 6.41 s compilation. ```text cargo test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- pipelines_load_on_many_threads_at_once a_rejected_blob_gives_an_empty_library --nocapture --test-threads=1 ``` - `a_rejected_blob_gives_an_empty_library`: a rejected non-library blob falls back to a live empty library with a nonzero serialized size. - `pipelines_load_on_many_threads_at_once`: cold library creation, 48 stored synthetic compute PSOs, serialization/reopen, concurrent load/store across eight threads, rejection of mismatched/missing descriptions, and eventual loads of all 96 entries pass. Only three local test changes: replace both absent-device returns and the unavailable-shader-compiler return with panics. Adapter and compiler absence cannot silently pass. Production source unchanged; required real host was enumerated. Rust 1.98.1, Windows MSVC target, `DXVK_CONFIG='dxgi.hideNvidiaGpu = False'`, one test thread, 9 GiB memory/512 MiB swap scope and180s timeout. Installed vkd3d-proton3.2.0 `2576c0b4adfae4a+` is the lab's **diagnostic-relaxed** build, not stock-driver certification. These fixtures create real host PSOs and exercise library serialization/loading, but do **not dispatch shaders**, launch the title, measure cache hit rates during loading, or demonstrate RAM relief. Our previously recorded empty-blob `E_INVALIDARG` failure on #3147 was not rerun merely to reconfirm it; this is not a newly matched same-fixture head/base comparison. Build-provenance caveat: the first attempted compile reused incompatible shader-crate metadata from another worktree (`Host` appeared to have a private `warp` field absent from this checkout). Touching the local shader/core/formats/pipeline/GPU crate roots forced matching fresh compilations and resolved it without production edits. That attempt is a shared-target lab failure, **not a PR build defect**. Evidence: `.compat-runtime/logs/verify-pr1722-wine-library-fresh-deps.log`; initial invalid build attempt retained as `verify-pr1722-wine-library.log`. AI-assisted verification (OpenAI GPT-6 Astra). Integration follow-through: [#3147 plus this bootstrap fix passed 14/14 library checks](https://github.com/Marvisak/VIctory/pull/3147#issuecomment-7201387561), including a populated file-mapped library with concurrent real-host PSO reloads. That is a disclosed mixed-stack/local-probe result, not an exact-head full-suite or loading-RAM claim.
pickles976 commented 2026-11-27 03:23:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-27T03:23:26Z.


Wine/RTX4060 verification of the empty-blob bootstrap hunk from exact head ee84a44859d4384ea5b945fa59e09ad9f9ac8d61, ported into a dirty local mixed integration based on 3ed7d725 (not an exact-head certification). Existing outside-lock loads were retained.

Two focused GPU-library fixtures pass, 0 ignored: (1) cold-empty AND rejected-garbage inputs create a real library, serialize to nonempty bytes and reopen the serialized library; (2) a real cached compute PSO loads while the save mutex is held, without invoking the creation fallback. Local test changes replace absent-device/library/compiler early returns with failures. Fresh intended-worktree compilation8.88s; combined run0.73s also contained a separate exact retail-shader replay that correctly reproduced its existing native compiler failure (2 library passes /1 unrelated replay failure overall).

Linux6.17, Wine11.0, RTX4060Laptop8GiB/NVIDIA590.48.01,16GiB RAM, NVIDIA identity unmasked. Installed vkd3d is diagnostic 2576c0b4adfae4a+ (two unrelated from_iface relaxations and mingw PATHCCH compatibility), not stock certification. Evidence verify-rendering-library-native-2m-20261127T031417Z/console.log and result.json; GPUpeak166MiB, minimum availableRAM11620MiB, no guard stop.

Motivation: our previous title run printed no host pipeline library: pipelines are not kept and ended with893 pending pipelines plus dropped rendering work. This offscreen result fixes library bootstrap on this stack; it does not establish title cache-hit rate, reduced backlog, a fix for separate Wave64/native compiler failures, or world rendering. No assets or game images published. AI-assisted investigation and executed verification: omp/OpenAI GPT-6 Astra.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7208947734 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7208947734). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-27T03:23:26Z. --- Wine/RTX4060 verification of the empty-blob bootstrap hunk from exact head `ee84a44859d4384ea5b945fa59e09ad9f9ac8d61`, ported into a dirty local mixed integration based on `3ed7d725` (not an exact-head certification). Existing outside-lock loads were retained. Two focused GPU-library fixtures pass, 0 ignored: (1) cold-empty AND rejected-garbage inputs create a real library, serialize to nonempty bytes and reopen the serialized library; (2) a real cached compute PSO loads while the save mutex is held, without invoking the creation fallback. Local test changes replace absent-device/library/compiler early returns with failures. Fresh intended-worktree compilation8.88s; combined run0.73s also contained a separate exact retail-shader replay that correctly reproduced its existing native compiler failure (2 library passes /1 unrelated replay failure overall). Linux6.17, Wine11.0, RTX4060Laptop8GiB/NVIDIA590.48.01,16GiB RAM, NVIDIA identity unmasked. Installed vkd3d is diagnostic `2576c0b4adfae4a+` (two unrelated from_iface relaxations and mingw PATHCCH compatibility), not stock certification. Evidence `verify-rendering-library-native-2m-20261127T031417Z/console.log` and `result.json`; GPUpeak166MiB, minimum availableRAM11620MiB, no guard stop. Motivation: our previous title run printed `no host pipeline library: pipelines are not kept` and ended with893 pending pipelines plus dropped rendering work. This offscreen result fixes library bootstrap on this stack; it does **not** establish title cache-hit rate, reduced backlog, a fix for separate Wave64/native compiler failures, or world rendering. No assets or game images published. AI-assisted investigation and executed verification: omp/OpenAI GPT-6 Astra.
pickles976 commented 2026-11-27 16:58:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-27T16:58:46Z.


Local Wine follow-through for #1722's null-pointer empty-library bootstrap on the #3484 loading/presentation lineage. Dirty integration base 74722f9cc302d1f0823726eef4e395cdee3cceae + only bootstrap from ee84a44859d4384ea5b945fa59e09ad9f9ac8d61 and default-off CPU phase logging. No shader lowering change. Linux6.17/Wine11/RTX4060 Laptop8GiB/NVIDIA590.48.1/16GiB RAM, diagnostic-relaxed vkd3d 2576c0b4adfae4a+ (not stock certification).

Three strict real-host presentation/library fixtures pass3/3, including loading an existing native PSO while the library save mutex is held. Fresh diagnostics release43.80s; frozen binary SHA256 d32bab6072539f38548c7e7173b35f6c73e6c571d385a02fac2b8f2862de8d9f used for both title legs.

Private cache/data/shader-cache seeds restored identically; only the1592-byte native library produced by cold is added to warm. OS file cache uncontrolled. Focus-checked live confirmation visibly advances picker to intro and illustrated loading artwork in both. Comparison window is the same5–25s after input,586 CPU post-Present intervals per leg:

CPU observation Cold Warm library
p99 interval,ms 54.172 47.580
Maximum interval,ms 119.795 104.561
Intervals>50ms 7 4
Intervals>100ms 2 1
Maximum DXGI Present call,ms 1.320 1.948

Cold last library save reports8made/0loaded. Warm loads those8 native PSOs and makes2 additional ones in its later save. Both use already-cached shader DXIL for these records. This is one bounded pair, not statistical repeatability, display pacing, an end-to-end cold-launch speedup or gameplay FPS. Loading progress/cache conditions are not sufficiently matched for RAM-saving attribution.

The cold119.8ms interval overlaps83.868ms CPU submission preparation; another116.1ms interval overlaps two pipeline waits38.420/15.766ms. Warm's worst104.6ms interval mostly lies outside the instrumented host phases, so remaining delay is not yet localized to a single allocator/compiler/driver. No new GPU waits, flushes, timestamps or resource-state changes were added by the probe.

Cold60s and warm75s wall stops/137; different limits allowed the manually confirmed common observation window, not a raised resource cap. Min available RAM4517/4412MiB, peakGPU3338/3344MiB, peak scope5910/5254MiB; all original9GiB/512MiB/global guards unchanged. Scopes ended cleanly; exact kernel intervals empty. One earlier warm run had confirmation too late and is excluded, not silently truncated.

Evidence retained locally: .compat-runtime/logs/loading-cache-20261127T163700Z/{cold,warm-extended,comparison.json}, guard stamps 20261127T163733Z/20261127T164351Z; focused gates verify-loading3484-native-cache-gates-20261127T163111Z/. Temporary launcher cache-path overrides restored, observer/analyzer sources archived. No assets, native-cache bytes, saves or game images published. The failed Wave64/scalar integration remains parked; this is an isolated loading improvement, not rendering clearance.

Additional diagnostic follow-through, not another cache A/B: a default-off GetThreadTimes(GetCurrentThread()) probe now records the presenting thread's cumulative user+kernel time after Present and measures its own query cost separately. CPU-only Wine control passed1/1:20ms CPU work counted20ms, a50ms sleep counted0ms. Observed increments are10ms, not100ns precision. Fresh42.35s diagnostics release SHA256 fe76aa209ab20b4c9631eddf50b2b9978b758bd0b2903e56b6531322a8cca368; same #3484+#1722 production, no shader/wait/pacing policy change.

Warm-cache trial 20261127T172055Z used the previous cold1592-byte library and the same private seed. One focus-checked confirmation at17:21:31.091749UTC visibly advanced the picker to six-star intro;70s capture is illustrated loading artwork. In5–25s after input:590 intervals,19.901s wall/1.950s counted presenting-thread CPU; p99=48.560ms, maximum88.559ms,5 intervals>50ms. The two largest intervals were88.559/88.428ms with10/0ms CPU, while Present itself took0.297/0.014ms and the CPU-clock queries0.085/0.018ms. Across the whole run the largest query was2.296ms; no clock errors, thread changes, frame gaps or failed Present HRESULTs. Coarse accounting supports predominantly nonexecution on this thread during these gaps; it does not distinguish blocking from descheduling, identify GPU waits, or establish that compiler/guest/other process threads were idle.

Native library reports8loaded/3made by its final save.75s wall stop137, minimum availableRAM3548.8MiB, peakGPU3380MiB, peak scope6904.2MiB, minimum disk12.139GiB; scope inactive/dead with success, exact kernel interval empty, unchanged guards. Different progress/timing/probe and uncontrolled OS cache mean these numbers are not a causal improvement or RAM regression against the earlier pair. Evidence .compat-runtime/logs/loading-clock-20261127T172055Z/ plus its timestamped guard logs. Earlier clock-probe startup 20261127T171651Z had no input and stayed at the picker; it supplies no loading result. Launcher restored; no game imagery/assets published. Next attribution target is the wait/dependency path outside Present, not disabling completion waits.

Boundary follow-through 20261127T174731Z adds only default-off frame::wait/PresentX entry/exit timing. Two frame-wait fixtures pass; fresh43.28s release SHA256 e7d9435ee09d519c8dff0274250ff384f09a45218496ef02a6fb7b65ab9fd9de. One focus-checked A at17:48:20.229719UTC advances the observed picker to intro and then loading artwork. The same5–25s post-input window contains593 intervals, p99=46.923ms, maximum74.745ms, four>50ms; no clock/thread/frame/Present errors. This is attribution, not another performance A/B.

The paths differ: a60.432ms interval contains56.083ms between previous PresentX exit and next origin-wait entry, followed by two explicit sleeps of1us each. A67.095ms interval contains30.228ms in that gap and two pipeline waits12.884/9.821ms. A56.312ms interval instead contains22.583ms requested/22.826ms actual pacing sleep, followed by19.149ms preparation. Across1188 explicit waits in this window,711 request zero; their maximum actual sleep is301us. These observations do not support removing Sleep(0), frame pacing or completion waits to address all hitches. The gap outside the two boundaries can contain guest code, other imports or descheduling; no specific wait/dependency is identified.

75s wall stop137, minimum availableRAM5220.5MiB, peakGPU3214MiB, scopepeak4914.8MiB, diskminimum11.742GiB. Scope inactive/dead/success, kernel interval empty, all limits unchanged. Confirmation occurred later in this trial, so lower endpoint memory is not a saving claim. Evidence .compat-runtime/logs/loading-waits-20261127T174731Z/warm-clock/{analysis,boundary-analysis}.json; observer/analyzer archived, launcher restored. No gameplay claim or imagery published.

AI disclosure: local probes, execution and report assisted by OpenAI Codex (GPT-6 Astra).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7223887995 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1722#issuecomment-7223887995). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-27T16:58:46Z. --- Local Wine follow-through for #1722's null-pointer empty-library bootstrap on the #3484 loading/presentation lineage. Dirty integration base `74722f9cc302d1f0823726eef4e395cdee3cceae` + only bootstrap from `ee84a44859d4384ea5b945fa59e09ad9f9ac8d61` and default-off CPU phase logging. No shader lowering change. Linux6.17/Wine11/RTX4060 Laptop8GiB/NVIDIA590.48.1/16GiB RAM, diagnostic-relaxed vkd3d `2576c0b4adfae4a+` (not stock certification). Three strict real-host presentation/library fixtures pass3/3, including loading an existing native PSO while the library save mutex is held. Fresh diagnostics release43.80s; frozen binary SHA256 `d32bab6072539f38548c7e7173b35f6c73e6c571d385a02fac2b8f2862de8d9f` used for both title legs. Private cache/data/shader-cache seeds restored identically; only the1592-byte native library produced by cold is added to warm. OS file cache uncontrolled. Focus-checked live confirmation visibly advances picker to intro and illustrated loading artwork in both. Comparison window is the same5–25s after input,586 CPU post-Present intervals per leg: |CPU observation|Cold|Warm library| |---|---:|---:| |p99 interval,ms|54.172|47.580| |Maximum interval,ms|119.795|104.561| |Intervals>50ms|7|4| |Intervals>100ms|2|1| |Maximum DXGI Present call,ms|1.320|1.948| Cold last library save reports8made/0loaded. Warm loads those8 native PSOs and makes2 additional ones in its later save. Both use already-cached shader DXIL for these records. This is one bounded pair, not statistical repeatability, display pacing, an end-to-end cold-launch speedup or gameplay FPS. Loading progress/cache conditions are not sufficiently matched for RAM-saving attribution. The cold119.8ms interval overlaps83.868ms CPU submission preparation; another116.1ms interval overlaps two pipeline waits38.420/15.766ms. Warm's worst104.6ms interval mostly lies outside the instrumented host phases, so remaining delay is not yet localized to a single allocator/compiler/driver. No new GPU waits, flushes, timestamps or resource-state changes were added by the probe. Cold60s and warm75s wall stops/137; different limits allowed the manually confirmed common observation window, not a raised resource cap. Min available RAM4517/4412MiB, peakGPU3338/3344MiB, peak scope5910/5254MiB; all original9GiB/512MiB/global guards unchanged. Scopes ended cleanly; exact kernel intervals empty. One earlier warm run had confirmation too late and is excluded, not silently truncated. Evidence retained locally: `.compat-runtime/logs/loading-cache-20261127T163700Z/{cold,warm-extended,comparison.json}`, guard stamps `20261127T163733Z`/`20261127T164351Z`; focused gates `verify-loading3484-native-cache-gates-20261127T163111Z/`. Temporary launcher cache-path overrides restored, observer/analyzer sources archived. No assets, native-cache bytes, saves or game images published. The failed Wave64/scalar integration remains parked; this is an isolated loading improvement, not rendering clearance. Additional diagnostic follow-through, not another cache A/B: a default-off `GetThreadTimes(GetCurrentThread())` probe now records the presenting thread's cumulative user+kernel time after Present and measures its own query cost separately. CPU-only Wine control passed1/1:20ms CPU work counted20ms, a50ms sleep counted0ms. Observed increments are10ms, not100ns precision. Fresh42.35s diagnostics release SHA256 `fe76aa209ab20b4c9631eddf50b2b9978b758bd0b2903e56b6531322a8cca368`; same #3484+#1722 production, no shader/wait/pacing policy change. Warm-cache trial `20261127T172055Z` used the previous cold1592-byte library and the same private seed. One focus-checked confirmation at17:21:31.091749UTC visibly advanced the picker to six-star intro;70s capture is illustrated loading artwork. In5–25s after input:590 intervals,19.901s wall/1.950s counted presenting-thread CPU; p99=48.560ms, maximum88.559ms,5 intervals>50ms. The two largest intervals were88.559/88.428ms with10/0ms CPU, while Present itself took0.297/0.014ms and the CPU-clock queries0.085/0.018ms. Across the whole run the largest query was2.296ms; no clock errors, thread changes, frame gaps or failed Present HRESULTs. Coarse accounting supports predominantly nonexecution on this thread during these gaps; it does **not** distinguish blocking from descheduling, identify GPU waits, or establish that compiler/guest/other process threads were idle. Native library reports8loaded/3made by its final save.75s wall stop137, minimum availableRAM3548.8MiB, peakGPU3380MiB, peak scope6904.2MiB, minimum disk12.139GiB; scope inactive/dead with success, exact kernel interval empty, unchanged guards. Different progress/timing/probe and uncontrolled OS cache mean these numbers are not a causal improvement or RAM regression against the earlier pair. Evidence `.compat-runtime/logs/loading-clock-20261127T172055Z/` plus its timestamped guard logs. Earlier clock-probe startup `20261127T171651Z` had no input and stayed at the picker; it supplies no loading result. Launcher restored; no game imagery/assets published. Next attribution target is the wait/dependency path outside Present, not disabling completion waits. Boundary follow-through `20261127T174731Z` adds only default-off `frame::wait`/PresentX entry/exit timing. Two frame-wait fixtures pass; fresh43.28s release SHA256 `e7d9435ee09d519c8dff0274250ff384f09a45218496ef02a6fb7b65ab9fd9de`. One focus-checked A at17:48:20.229719UTC advances the observed picker to intro and then loading artwork. The same5–25s post-input window contains593 intervals, p99=46.923ms, maximum74.745ms, four>50ms; no clock/thread/frame/Present errors. This is attribution, not another performance A/B. The paths differ: a60.432ms interval contains56.083ms between previous PresentX exit and next origin-wait entry, followed by two explicit sleeps of1us each. A67.095ms interval contains30.228ms in that gap and two pipeline waits12.884/9.821ms. A56.312ms interval instead contains22.583ms requested/22.826ms actual pacing sleep, followed by19.149ms preparation. Across1188 explicit waits in this window,711 request zero; their maximum actual sleep is301us. These observations do not support removing Sleep(0), frame pacing or completion waits to address all hitches. The gap outside the two boundaries can contain guest code, other imports or descheduling; no specific wait/dependency is identified. 75s wall stop137, minimum availableRAM5220.5MiB, peakGPU3214MiB, scopepeak4914.8MiB, diskminimum11.742GiB. Scope inactive/dead/success, kernel interval empty, all limits unchanged. Confirmation occurred later in this trial, so lower endpoint memory is not a saving claim. Evidence `.compat-runtime/logs/loading-waits-20261127T174731Z/warm-clock/{analysis,boundary-analysis}.json`; observer/analyzer archived, launcher restored. No gameplay claim or imagery published. AI disclosure: local probes, execution and report assisted by OpenAI Codex (GPT-6 Astra).
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/1722:upstream-pr/1722'
git switch 'upstream-pr/1722'

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/1722'
git switch 'upstream-pr/1722'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1722'
git switch 'upstream-pr/1722'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1722'
git switch 'main'
git merge --squash 'upstream-pr/1722'
git switch 'main'
git merge --ff-only 'upstream-pr/1722'
git switch 'main'
git merge 'upstream-pr/1722'
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
Marvisak/VIctory!1721
No description provided.