Fix Proton Wave64 startup and reduce Wine remapping stalls #937

Open
hh-ze wants to merge 4 commits from upstream-pr/938 into main
hh-ze commented 2026-11-25 13:17:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by hh-ze on 2026-11-25T13:17:06Z.


Changes

  • Apply the two DXIL loop back-edge fixes from Marvisak/VIctory#2309 so vkd3d-proton can compile the affected Wave64 compute pipelines.
  • Persist and reload the early pipeline list when the host provides no application-owned D3D12 pipeline library.
  • Add an optional Wine server patch that indexes mapped views by base address, with a synthetic benchmark and Proton test instructions. The patch builds as a separate Wine server for a test prefix.
  • Document the tested VICTORY_BACK_OWN_VIEW=1 configuration and the comparison with sparse mip streaming disabled.

Verification

I tested on Linux with GE-Proton11-13, an RTX 5060 Ti, and NVIDIA driver 595.99.02. The three previously failing compute pipelines (fdd56d97a806bcca, b2ff2ef0d6c98dd7, and 32ed072b9f845048) compiled without a skip list. Two launches confirmed that the warmup list saved and reloaded. The test prefix used a native d3dcompiler_47.dll and disabled VK_NV_raw_access_chains.

  • Wine remapping: With the same Proton client and 65,536 live views, the synthetic unmap/remap pair went from 371.0 to 47.8 µs. I confirmed the patched process reached the prison checkpoint and responded to camera input.
  • Copy-back: In alternating 20-second intervals in the prison, median copy-back decreased from 279 to 232 ms across 19 comparable timing windows. Median frame rate went from 2.7 to 3.15 FPS. A separate run checked 131,072 direct writes and recorded zero missing stores and zero mismatches on pages with clean guards.
  • Regression tests: 174 shader tests and four targeted GPU tests passed. Three optional tests were ignored. The bounded GPU tests recorded no NVIDIA kernel faults.

Remaining issues

Interior lighting and some geometry are still incorrect. The shorter VRAM and text experiments did not show a reason to change the tested buffer budget or texture upload setting. Sparse mip streaming sometimes exposed empty textures, and loading flicker was reported with that setting enabled.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5492076704 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/938). Originally posted by [hh-ze](https://github.com/hh-ze) on 2026-11-25T13:17:06Z. --- ## Changes - Apply the two DXIL loop back-edge fixes from Marvisak/VIctory#2309 so vkd3d-proton can compile the affected Wave64 compute pipelines. - Persist and reload the early pipeline list when the host provides no application-owned D3D12 pipeline library. - Add an optional Wine server patch that indexes mapped views by base address, with a synthetic benchmark and [Proton test instructions](https://github.com/hh-ze/victory-fork/blob/proton-shader-warmup/docs/proton/README.md). The patch builds as a separate Wine server for a test prefix. - Document the tested `VICTORY_BACK_OWN_VIEW=1` configuration and the comparison with sparse mip streaming disabled. ## Verification I tested on Linux with GE-Proton11-13, an RTX 5060 Ti, and NVIDIA driver 595.99.02. The three previously failing compute pipelines (`fdd56d97a806bcca`, `b2ff2ef0d6c98dd7`, and `32ed072b9f845048`) compiled without a skip list. Two launches confirmed that the warmup list saved and reloaded. The test prefix used a native `d3dcompiler_47.dll` and disabled `VK_NV_raw_access_chains`. - **Wine remapping:** With the same Proton client and 65,536 live views, the synthetic unmap/remap pair went from 371.0 to 47.8 µs. I confirmed the patched process reached the prison checkpoint and responded to camera input. - **Copy-back:** In alternating 20-second intervals in the prison, median copy-back decreased from 279 to 232 ms across 19 comparable timing windows. Median frame rate went from 2.7 to 3.15 FPS. A separate run checked 131,072 direct writes and recorded zero missing stores and zero mismatches on pages with clean guards. - **Regression tests:** 174 shader tests and four targeted GPU tests passed. Three optional tests were ignored. The bounded GPU tests recorded no NVIDIA kernel faults. ## Remaining issues Interior lighting and some geometry are still incorrect. The shorter VRAM and text experiments did not show a reason to change the tested buffer budget or texture upload setting. Sparse mip streaming sometimes exposed empty textures, and loading flicker was reported with that setting enabled.
avt0m4t48 commented 2026-11-25 14:10:50 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T13:34:31Z.


I verified the early-list change independently on 9e7cb4c with Windows Server 2025 x64 and Rust 1.98.1 MSVC. The probe forces library() to return None and uses real filesystem operations.

  • An obstruction at the temporary-file path made the first write fail. After removing it, a forced save wrote the original key without another note_used() call. This covers the retry gap I reported on #259.
  • A periodic save immediately after the successful retry left the new key pending. Four threads then recorded distinct keys and forced saves. The resulting list contained all six keys, and a fresh test process loaded all six through wanted_early().

Both phases passed. This checks the early-list half of the PR without requiring a graphics driver that rejects the application library. I did not run Proton, the Wave64 conversion, or a title for this check. Synthetic probe · Windows run

AI-assisted using Codex.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7163975503 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/938#issuecomment-7163975503). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-25T13:34:31Z. --- I verified the early-list change independently on `9e7cb4c` with Windows Server 2025 x64 and Rust 1.98.1 MSVC. The probe forces `library()` to return `None` and uses real filesystem operations. - An obstruction at the temporary-file path made the first write fail. After removing it, a forced save wrote the original key without another `note_used()` call. This covers the retry gap I reported on #259. - A periodic save immediately after the successful retry left the new key pending. Four threads then recorded distinct keys and forced saves. The resulting list contained all six keys, and a fresh test process loaded all six through `wanted_early()`. Both phases passed. This checks the early-list half of the PR without requiring a graphics driver that rejects the application library. I did not run Proton, the Wave64 conversion, or a title for this check. [Synthetic probe](https://github.com/avt0m4t48/victory-fork/commit/1c300d0a18572104f0118fc4db33bd53e5a49def) · [Windows run](https://github.com/avt0m4t48/victory-fork/actions/runs/45624276061) AI-assisted using Codex.
Filip722 commented 2026-11-25 14:10:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-25T13:52:56Z.


Independent check on Bazzite 44 with an Intel Core 7 240H, 16 GB host RAM, and RTX 5060 Laptop 8 GB (NVIDIA 615.78.08). Runtime was GE-Proton 11-14 with vkd3d-proton build cae8353ed7959c4+. Rust 1.98.1, Windows MSVC release target.

  • The exact 9e7cb4c test binary passed all three synthetic loop/PHI fixtures in emit::bitcode under GE-Proton. They generated their input graphs in Rust.
  • A private integration on the same head ran Series S with the Wine file-backed pages, runtime DXC fallback, #885 native cache call and the #798 built-in upscaler selection. The first attempt stopped on the storage guard during early loading. The same seed and executable passed that point on retry.
  • The retry reopened the native pipeline library and recorded 1,166 cache loads and 62 builds. The sampled pending count reached zero during loading. All title-window captures were black from startup. The title recorded first binds for 74 pipelines at frame 5979. The host-memory guard stopped it around 369 s at 6,057.5 MiB available. The last regular sample had 3,829 MiB free VRAM and 78 MiB scope swap. No matching NVIDIA Xid was recorded. A rendered or controllable screen remains unverified on this laptop.

Edited after reviewing the full capture series to clarify that the loading milestone was measured from logs and the window captures were black. Testing and report prepared with OpenAI Codex assistance.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7164426605 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/938#issuecomment-7164426605). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T13:52:56Z. --- Independent check on Bazzite 44 with an Intel Core 7 240H, 16 GB host RAM, and RTX 5060 Laptop 8 GB (NVIDIA 615.78.08). Runtime was GE-Proton 11-14 with vkd3d-proton build `cae8353ed7959c4+`. Rust 1.98.1, Windows MSVC release target. - The exact `9e7cb4c` test binary passed all three synthetic loop/PHI fixtures in `emit::bitcode` under GE-Proton. They generated their input graphs in Rust. - A private integration on the same head ran Series S with the Wine file-backed pages, runtime DXC fallback, #885 native cache call and the #798 built-in upscaler selection. The first attempt stopped on the storage guard during early loading. The same seed and executable passed that point on retry. - The retry reopened the native pipeline library and recorded 1,166 cache loads and 62 builds. The sampled pending count reached zero during loading. All title-window captures were black from startup. The title recorded first binds for 74 pipelines at frame 5979. The host-memory guard stopped it around 369 s at 6,057.5 MiB available. The last regular sample had 3,829 MiB free VRAM and 78 MiB scope swap. No matching NVIDIA Xid was recorded. A rendered or controllable screen remains unverified on this laptop. Edited after reviewing the full capture series to clarify that the loading milestone was measured from logs and the window captures were black. Testing and report prepared with OpenAI Codex assistance.
upstream-sync changed title from [PR #938] Fix Proton Wave64 shader compilation and persist pipeline warmup to [PR #938] Fix Proton Wave64 startup and reduce Wine remapping stalls 2026-11-26 10:06:38 +00:00
Filip722 commented 2026-11-26 23:13:11 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T23:13:11Z.


I independently tested the indexed wineserver on an RTX 5060 Laptop with Bazzite 44, GE-Proton11-14 and protocol 938. Both rebuilt servers used the same prepared GE source and toolchain. In a synthetic test with 32,768 simultaneously mapped views, 2,048 further map/unmap pairs took 318.6 ms on the rebuilt stock server and 24.4 ms with the tree. Shared bytes remained coherent, and both used memfd-backed mappings.

I also compared the installed stock server and the indexed server with the same Series S app binary, render settings and initial checkpoint and caches. The server update ran through a read-only bind in a private sandbox. Wineserver CPU use in the 80–160 s loading interval was 85.1% of one core on stock and 5.1% with the patch. The matched cell view appeared at 301.6 and 245.9 s respectively. Over the shared 302–314 s scene window, distinct presents measured 4.31 and 5.97 FPS. Stock hit the test's VRAM headroom stop shortly after that window. The patched server sustained 5.86 FPS over a separate 54 s cell window, and the camera visibly responded to held input. These are single replays.

This independently confirms the GE-Proton11-14 installation path for the view-index patch discussed here. Wine patch · Open GE integration

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7205355081 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/938#issuecomment-7205355081). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T23:13:11Z. --- I independently tested the indexed wineserver on an RTX 5060 Laptop with Bazzite 44, GE-Proton11-14 and protocol 938. Both rebuilt servers used the same prepared GE source and toolchain. In a synthetic test with 32,768 simultaneously mapped views, 2,048 further map/unmap pairs took 318.6 ms on the rebuilt stock server and 24.4 ms with the tree. Shared bytes remained coherent, and both used memfd-backed mappings. I also compared the installed stock server and the indexed server with the same Series S app binary, render settings and initial checkpoint and caches. The server update ran through a read-only bind in a private sandbox. Wineserver CPU use in the 80–160 s loading interval was 85.1% of one core on stock and 5.1% with the patch. The matched cell view appeared at 301.6 and 245.9 s respectively. Over the shared 302–314 s scene window, distinct presents measured 4.31 and 5.97 FPS. Stock hit the test's VRAM headroom stop shortly after that window. The patched server sustained 5.86 FPS over a separate 54 s cell window, and the camera visibly responded to held input. These are single replays. This independently confirms the GE-Proton11-14 installation path for the view-index patch discussed here. [Wine patch](https://github.com/CachyOS/wine-cachyos/commit/fd66dbc) · [Open GE integration](https://github.com/GloriousEggroll/proton-ge-custom/pull/1016) Assisted by Codex (GPT-6.2-Sol High).
Filip722 commented 2026-11-27 12:26:03 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T12:26:03Z.


A second matched Proton pair shows the mapped-view index helping a different application build on the same RTX 5060 Laptop (8 GB, 16 GiB system RAM). This used a VI-BR renderer integration with GE-Proton11-14, vkd3d-proton cae8353ed7959c4+, NVIDIA 615.78.08 and Series S at 40% render scale. Both runs started with the same executable, offline checkpoint, warmed cache and renderer settings. The only change was a read-only bind of the indexed wineserver from the previous test into the isolated launch namespace. I verified the running server binary's digest.

  • The cell view was visible by 326 s with stock GE and by 190 s with the indexed server. The indexed arm reached the movement prompt and visibly responded to camera and movement input.
  • In the matched stationary view before the HUD appeared, 20 s windows yielded 212 and 211 distinct successful DXGI presents respectively. Median/p95 frame intervals were 91/116 ms and 85/138 ms. This sample shows earlier world entry and similar in-view throughput.
  • In separate 54 s stationary windows at that view, stock yielded 10.78 FPS and indexed yielded 11.56 FPS. The HUD appeared during the indexed window, so the shorter pre-HUD result is the closer comparison. Both runs eventually hit the VRAM cutoff.

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7218237725 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/938#issuecomment-7218237725). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-27T12:26:03Z. --- A second matched Proton pair shows the mapped-view index helping a different application build on the same RTX 5060 Laptop (8 GB, 16 GiB system RAM). This used a VI-BR renderer integration with GE-Proton11-14, vkd3d-proton `cae8353ed7959c4+`, NVIDIA 615.78.08 and Series S at 40% render scale. Both runs started with the same executable, offline checkpoint, warmed cache and renderer settings. The only change was a read-only bind of the indexed wineserver from the previous test into the isolated launch namespace. I verified the running server binary's digest. - The cell view was visible by 326 s with stock GE and by 190 s with the indexed server. The indexed arm reached the movement prompt and visibly responded to camera and movement input. - In the matched stationary view before the HUD appeared, 20 s windows yielded 212 and 211 distinct successful DXGI presents respectively. Median/p95 frame intervals were 91/116 ms and 85/138 ms. This sample shows earlier world entry and similar in-view throughput. - In separate 54 s stationary windows at that view, stock yielded 10.78 FPS and indexed yielded 11.56 FPS. The HUD appeared during the indexed window, so the shorter pre-HUD result is the closer comparison. Both runs eventually hit the VRAM cutoff. Assisted by Codex (GPT-6.2-Sol High).
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/938:upstream-pr/938'
git switch 'upstream-pr/938'

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/938'
git switch 'upstream-pr/938'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/938'
git switch 'upstream-pr/938'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/938'
git switch 'main'
git merge --squash 'upstream-pr/938'
git switch 'main'
git merge --ff-only 'upstream-pr/938'
git switch 'main'
git merge 'upstream-pr/938'
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
fxceless/victory-fork!937
No description provided.