Linux under Wine: 23.5-25.5 fps on an RX 7900 XTX; pipeline workers' stack, thread names in the log, docs/linux-wine.md #386

Open
github-bot wants to merge 1 commit from github-bot/gh-386 into main AGit
Owner

@⁠LofisMusk on GitHub · 2026-11-26 21:58 UTC · original
LofisMusk:linux-wine → main · +74 −0 · 4 files · 1 commits · open

From a tester working with Claude (AI-assisted). Measured on my own machine; no game data in this PR.

This fork runs on Linux under Wine 11.22 with RADV on an RX 7900 XTX, at 23.5 fps in release in the prison cell (25.5 at the end of a 5-minute run, about 40 ms a frame; 17 fps in diag). On the same machine fxceless/victory-fork does 7.3 fps in release, so your renderer work carries over to Linux.

Before the changes below it ran at 3.4-3.5 fps here and Lucia had no face. What it took:

  • Pipeline workers die under Wine. dxil-spirv in vkd3d-proton 3.2 recursed without end on five pipelines of the prologue (one graphics, four compute). The workers overflowed their stack at the same address even with 64 MiB, those pipelines were never made, and the default 500 ms VICTORY_PIPELINE_WAIT_MS was spent in every frame (500.1 ms waiting for pipelines). vkd3d-proton master 71cae091 (dxil-spirv from 2026-11-25, the new structurizer) fixes the recursion: 0 workers die, nothing is left being made.
  • A wineserver with the view tree (CachyOS/wine-cachyos@fd66dbc, Marvisak/VIctory#834) and a low VICTORY_PIPELINE_WAIT_MS (2 here).

In this PR:

  • The pipeline workers get a 64 MiB stack (reserved, not committed). The DXIL to SPIR-V conversion inside the driver call can pass the default 2 MiB under Wine.
  • VICTORY_LOG_THREADS=1 names the thread on each log line. This is how the five pipelines were found: the last host pipeline shaders=[...] of each worker before its has overflowed its stack. Off by default, so the log is unchanged.
  • VICTORY_KEYS (diagnostics builds) also gives a scripted run with no pad a host pad in slot 0. The account screen does not take the stand-in pad's A, so an unattended run without a pad stopped there.
  • docs/linux-wine.md: the setup and the measurements.

Both profiles build with cargo xwin (diag --features diagnostics and release). Only the Linux path has been run; the changes do not alter Windows behaviour except the larger stack reservation for the pipeline workers.

🤖 Generated with Claude Code

https://claude.ai/code/session_018VwqyDRnxhcvy1dojRs4Cr

**@⁠LofisMusk** on GitHub · 2026-11-26 21:58 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386) `LofisMusk:linux-wine` → `main` · +74 −0 · 4 files · 1 commits · open *From a tester working with Claude (AI-assisted). Measured on my own machine; no game data in this PR.* This fork runs on Linux under Wine 11.22 with RADV on an RX 7900 XTX, at **23.5 fps in release** in the prison cell (25.5 at the end of a 5-minute run, about 40 ms a frame; 17 fps in diag). On the same machine `fxceless/victory-fork` does 7.3 fps in release, so your renderer work carries over to Linux. Before the changes below it ran at 3.4-3.5 fps here and Lucia had no face. What it took: - **Pipeline workers die under Wine.** dxil-spirv in vkd3d-proton 3.2 recursed without end on five pipelines of the prologue (one graphics, four compute). The workers overflowed their stack at the same address even with 64 MiB, those pipelines were never made, and the default 500 ms `VICTORY_PIPELINE_WAIT_MS` was spent in every frame (`500.1 ms waiting for pipelines`). vkd3d-proton master `71cae091` (dxil-spirv from 2026-11-25, the new structurizer) fixes the recursion: 0 workers die, nothing is left being made. - **A wineserver with the view tree** (CachyOS/wine-cachyos@fd66dbc, Marvisak/VIctory#834) and a low `VICTORY_PIPELINE_WAIT_MS` (2 here). In this PR: - The pipeline workers get a 64 MiB stack (reserved, not committed). The DXIL to SPIR-V conversion inside the driver call can pass the default 2 MiB under Wine. - `VICTORY_LOG_THREADS=1` names the thread on each log line. This is how the five pipelines were found: the last `host pipeline shaders=[...]` of each worker before its `has overflowed its stack`. Off by default, so the log is unchanged. - `VICTORY_KEYS` (diagnostics builds) also gives a scripted run with no pad a host pad in slot 0. The account screen does not take the stand-in pad's A, so an unattended run without a pad stopped there. - `docs/linux-wine.md`: the setup and the measurements. Both profiles build with `cargo xwin` (`diag --features diagnostics` and `release`). Only the Linux path has been run; the changes do not alter Windows behaviour except the larger stack reservation for the pipeline workers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018VwqyDRnxhcvy1dojRs4Cr
The pipeline workers get a 64 MiB stack (reserved): under Wine the
DXIL to SPIR-V conversion inside the driver call can pass the default
2 MiB. VICTORY_LOG_THREADS=1 names the thread on each log line (how the
pipelines that kill a worker were found). VICTORY_KEYS also gives a
scripted run with no pad a host pad in slot 0 (diagnostics builds).

docs/linux-wine.md: what it takes on Linux (a wineserver with the view
tree, vkd3d-proton with dxil-spirv from 2026-11-25, a low
VICTORY_PIPELINE_WAIT_MS) and what was measured: 23.5-25.5 fps in
release on an RX 7900 XTX in the prison cell.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018VwqyDRnxhcvy1dojRs4Cr
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:56:24 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 22:23 UTC · original

I tried the CI package at 71cae091 on a 7900 XT, RADV 26.3.1 and Wine 11.22. The alternate-compile recovery messages disappeared. I counted zero in the first 300 seconds on this build and six in each of two earlier cold launches on GE cae8353e. The diner close-up showed a face.

For my first-boot test I kept the AMD branch’s existing wait budgets and changed the D3D12 DLLs in a copied prefix. With a 720p scene, no save and five empty caches, I got 2,702 presents in 300 seconds (9.01 FPS). P99 was 1.94 s, the worst gap was 11.52 s, and 194.35 s fell in gaps over 100 ms. There were still 378 first compute-dispatch drop notices. That window includes startup and the opening montage, so it measures a different workload from your standing cell run. Settings and measurements

**@⁠UwUCammie** on GitHub · 2026-11-26 22:23 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7204627898) I tried the CI package at `71cae091` on a 7900 XT, RADV 26.3.1 and Wine 11.22. The alternate-compile recovery messages disappeared. I counted zero in the first 300 seconds on this build and six in each of two earlier cold launches on GE `cae8353e`. The diner close-up showed a face. For my first-boot test I kept the AMD branch’s existing wait budgets and changed the D3D12 DLLs in a copied prefix. With a 720p scene, no save and five empty caches, I got 2,702 presents in 300 seconds (9.01 FPS). P99 was 1.94 s, the worst gap was 11.52 s, and 194.35 s fell in gaps over 100 ms. There were still 378 first compute-dispatch drop notices. That window includes startup and the opening montage, so it measures a different workload from your standing cell run. [Settings and measurements](https://github.com/UwUCammie/victory-amd/blob/0efbb20e/benchmarks/README.md#vkd3d-proton-on-a-cold-opening)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 22:41 UTC · original

The fresh GE control finished with the same executable, DXGI DLL and input sequence. GE cae8353e accepted 2,682 presents in 300 seconds (8.94 FPS), against 2,702 (9.01 FPS) on 71cae091. P99 was 0.81 s on GE and 1.94 s on upstream. The longest gaps were 11.45 and 11.52 s respectively. Gaps over 100 ms occupied 192.61 and 194.35 seconds. Both runs started without a story save and with five empty graphics caches. The near-identical average and 11.5-second stalls put this one behind the wait-budget experiments for cold-start performance. The new driver still resolved all six observed fallback compiles. Full comparison

**@⁠UwUCammie** on GitHub · 2026-11-26 22:41 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7204899465) The fresh GE control finished with the same executable, DXGI DLL and input sequence. GE `cae8353e` accepted 2,682 presents in 300 seconds (8.94 FPS), against 2,702 (9.01 FPS) on `71cae091`. P99 was 0.81 s on GE and 1.94 s on upstream. The longest gaps were 11.45 and 11.52 s respectively. Gaps over 100 ms occupied 192.61 and 194.35 seconds. Both runs started without a story save and with five empty graphics caches. The near-identical average and 11.5-second stalls put this one behind the wait-budget experiments for cold-start performance. The new driver still resolved all six observed fallback compiles. [Full comparison](https://github.com/UwUCammie/victory-amd/blob/568f8c34/benchmarks/README.md#vkd3d-proton-on-a-cold-opening)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 22:47 UTC · original

I repeated the cold boot with 71cae091 and changed just VICTORY_PIPELINE_WAIT_MS to 2. It gave 6.89 FPS over the first five minutes, with 3.08 s P99 and a 20.22 s longest gap. At 500 ms on the same executable and driver I got 9.01 FPS, 1.94 s P99 and an 11.52 s longest gap. The 2 ms run also showed an overbright shot around 100 s. The shots diverged across wall-clock checkpoints. These settings may behave differently in the already-loaded cell, but 2 ms was worse in my first-boot pair. Cold-start measurements

**@⁠UwUCammie** on GitHub · 2026-11-26 22:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7204986988) I repeated the cold boot with `71cae091` and changed just `VICTORY_PIPELINE_WAIT_MS` to `2`. It gave 6.89 FPS over the first five minutes, with 3.08 s P99 and a 20.22 s longest gap. At 500 ms on the same executable and driver I got 9.01 FPS, 1.94 s P99 and an 11.52 s longest gap. The 2 ms run also showed an overbright shot around 100 s. The shots diverged across wall-clock checkpoints. These settings may behave differently in the already-loaded cell, but 2 ms was worse in my first-boot pair. [Cold-start measurements](https://github.com/UwUCammie/victory-amd/blob/3143fcc3/benchmarks/README.md#vkd3d-proton-on-a-cold-opening)
Author
Owner

@⁠akimfomin on GitHub · 2026-11-26 23:30 UTC · original

Beqren's #166 at c61b25c merges cleanly into your #386 head 14709c57663bf8fac1d4fc01c40f635872658017. The public Git check included both exact heads. Its separate compute-only wait lets a once-only dispatch wait for its own pipeline with a bound, independent of the global graphics wait. That gives a way to test the missing skin and long stalls separately after UwUCammie's 2 ms vs 500 ms result.

For a first comparison, keep vkd3d-proton 71cae091 and your global wait fixed. Use one cold-start pair with only VICTORY_COMPUTE_WAIT 0/1, log dropped compute dispatches and the longest frame, and note whether the face appears. Consider the compute-wait part by itself because #166 also includes a library-init change discussed in #151. No Linux performance claim from the merge check. PortBridge · AI-assisted comparison.

**@⁠akimfomin** on GitHub · 2026-11-26 23:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7205598843) Beqren's #166 at `c61b25c` merges cleanly into your #386 head `14709c57663bf8fac1d4fc01c40f635872658017`. The public Git check included both exact heads. Its [separate compute-only wait](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/pulls/166) lets a once-only dispatch wait for its own pipeline with a bound, independent of the global graphics wait. That gives a way to test the missing skin and long stalls separately after [UwUCammie's 2 ms vs 500 ms result](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/pulls/386). For a first comparison, keep vkd3d-proton `71cae091` and your global wait fixed. Use one cold-start pair with only `VICTORY_COMPUTE_WAIT` 0/1, log dropped compute dispatches and the longest frame, and note whether the face appears. Consider the compute-wait part by itself because #166 also includes a library-init change discussed in #151. No Linux performance claim from the merge check. [PortBridge](https://github.com/akimfomin/PortBridge/issues/98) · AI-assisted comparison.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 23:54 UTC · original

I ran the suggested pair on the RX 7900 XT with 71cae091b06571e, the 500 ms graphics wait and the same 720p release binary containing the AMD backport of the bounded wait. Both runs started with empty graphics caches and no story save. This switch also changes which compute pipelines get priority.

Compute wait FPS over the first 300 s P99 gap Longest gap Gaps over 1 s
Off 16.44 465 ms 2.20 s 3
On 14.18 296 ms 11.27 s 30

The enabled run logged 320 first compute-wait drop notices. The disabled run has no equivalent notice. Faces were visible in the samples from both runs, but the cuts differed and I couldn't verify the same bake at the same moment. I'd keep the bounded wait available based on the earlier reproduced missing faces. Full counts and setup

**@⁠UwUCammie** on GitHub · 2026-11-26 23:54 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7205984874) I ran the suggested pair on the RX 7900 XT with `71cae091b06571e`, the 500 ms graphics wait and the same 720p release binary containing the AMD backport of the bounded wait. Both runs started with empty graphics caches and no story save. This switch also changes which compute pipelines get priority. | Compute wait | FPS over the first 300 s | P99 gap | Longest gap | Gaps over 1 s | | --- | ---: | ---: | ---: | ---: | | Off | 16.44 | 465 ms | 2.20 s | 3 | | On | 14.18 | 296 ms | 11.27 s | 30 | The enabled run logged 320 first compute-wait drop notices. The disabled run has no equivalent notice. Faces were visible in the samples from both runs, but the cuts differed and I couldn't verify the same bake at the same moment. I'd keep the bounded wait available based on the earlier reproduced missing faces. [Full counts and setup](https://github.com/UwUCammie/victory-amd/commit/668439d1)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 00:41 UTC · original

I repeated the 720p pair with the same frame-health counters in both arms, vkd3d-proton 71cae091b06571e and a 500 ms graphics wait.

Compute wait FPS over first 300 s Longest gap Compute misses while compiling
Off 10.09 3.84 s 427,931 / 5,026,211 counted
On 8.74 11.31 s 8,240 / 2,449,667 counted

The dispatch counts cover 270 s after each first present and exclude intentionally omitted ray-only work. Neither arm logged a terminal refusal. The off run showed a black view with subtitles at 100 s and reached the prison by 255 s. The on run showed an exterior at 100 s and was still in the montage at 285 s. The totals now include misses in both modes, though the runs reached different scenes. Full measurements

**@⁠UwUCammie** on GitHub · 2026-11-27 00:41 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7206676743) I repeated the 720p pair with the same frame-health counters in both arms, vkd3d-proton `71cae091b06571e` and a 500 ms graphics wait. | Compute wait | FPS over first 300 s | Longest gap | Compute misses while compiling | | --- | ---: | ---: | ---: | | Off | 10.09 | 3.84 s | 427,931 / 5,026,211 counted | | On | 8.74 | 11.31 s | 8,240 / 2,449,667 counted | The dispatch counts cover 270 s after each first present and exclude intentionally omitted ray-only work. Neither arm logged a terminal refusal. The off run showed a black view with subtitles at 100 s and reached the prison by 255 s. The on run showed an exterior at 100 s and was still in the montage at 285 s. The totals now include misses in both modes, though the runs reached different scenes. [Full measurements](https://github.com/UwUCammie/victory-amd/commit/b4d34e2a)
Author
Owner

@⁠Beqren on GitHub · 2026-11-27 04:53 UTC · original

@⁠UwUCammie thank you for the compute-wait pairs above. They were right: I reproduced the long stalls on an RX 9070 (10.2 and 10.3 s longest gap, 8 and 9 gaps over 1 s in the first 300 s of a cold start), and it was #166's own 10 s a frame being spent over and over.

#166 is updated because of it: a frame's compute waits now end after 500 ms, each pipeline gets one wait, and the pipeline a dispatch is waiting for is made next. Here that gave a 1.1 s longest gap with the heads still having skin (wait off: 1.0 s, no skin). Numbers, and what the shorter wait gives up, are in #166. It is one machine and single runs, so if you repeat your pair on the 7900 XT I would like to know whether it holds there.

Done with an AI coding assistant (Claude Code), directed and tested by me.

**@⁠Beqren** on GitHub · 2026-11-27 04:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/386#issuecomment-7210179641) @⁠UwUCammie thank you for the compute-wait pairs above. They were right: I reproduced the long stalls on an RX 9070 (10.2 and 10.3 s longest gap, 8 and 9 gaps over 1 s in the first 300 s of a cold start), and it was #166's own 10 s a frame being spent over and over. #166 is updated because of it: a frame's compute waits now end after 500 ms, each pipeline gets one wait, and the pipeline a dispatch is waiting for is made next. Here that gave a 1.1 s longest gap with the heads still having skin (wait off: 1.0 s, no skin). Numbers, and what the shorter wait gives up, are in #166. It is one machine and single runs, so if you repeat your pair on the 7900 XT I would like to know whether it holds there. Done with an AI coding assistant (Claude Code), directed and tested by me.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/make.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/386/head:github-bot/gh-386'
git switch 'github-bot/gh-386'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-386'
git switch 'github-bot/gh-386'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-386'
git switch 'github-bot/gh-386'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-386'
git switch 'main'
git merge --squash 'github-bot/gh-386'
git switch 'main'
git merge --ff-only 'github-bot/gh-386'
git switch 'main'
git merge 'github-bot/gh-386'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.