Linux: scripts/play.sh and docs/proton.md (RX 9070 XT, 32 GB: 72-81 ms a frame in the opening scene, 13-16 GB of RAM) #248

Open
github-bot wants to merge 4 commits from github-bot/gh-248 into rx9070xt AGit
Owner

@⁠nil0ft on GitHub · 2026-11-26 12:06 UTC · original
nil0ft:linux-proton → rx9070xt · +592 −50 · 7 files · 4 commits · open

What

  • scripts/play.sh: what scripts\play.ps1 is on Windows, for a Proton's Wine started outside Steam. The same settings, -Safe and -RayTracing as --safe and --ray-tracing, plus --seconds N (ends a test run) and --mem-max SIZE (a systemd scope with that much memory at most, so a run that grows past it is ended instead of freezing the desktop). It starts a patched wineserver first when one is there, and writes the log to a file, never a pipe (Wine's services keep a pipe open and the shell waits for good).
  • One setting differs from play.ps1: VICTORY_LAND_ECHO=0. With it on, a character's head is drawn without skin (eyes and teeth only): three runs of three; with it off, none of two. This is avatarmanz/VIctory-7900XTX#59's second finding, seen again here.
  • docs/proton.md: a guide, not a report. What a run needs and what happens without each part, how the two parts a stock Proton lacks are built, the set-up, the script's arguments, and symptoms with their causes. The figures of the runs are below, in this text; the doc keeps only the setup it was last checked on and what to expect of memory.
  • README.md: one line that points there.

No code of the layer changes.

Measured

CachyOS (kernel 7.3.6), i5-13600KF, 32 GB RAM (and 31 GB of zram swap), RX 9070 XT 16 GB, RADV / Mesa 26.3.1, the Wine of proton-cachyos 11.0-20261015, DXVK 3.1.1's dxgi, Microsoft's d3dcompiler_47 10.0.17134, 81ebb7b, diagnostics build for x86_64-pc-windows-msvc, Series X, 1080p. Runs of 330 s with the same scripted keys (VICTORY_KEYS): first-boot screens, then the opening scene, 1,000 to 6,000 draws a frame. Medians of the frame lines with 500 draws or more (35 to 58 a run). Frames were saved throughout every run (VICTORY_CAPTURE).

Run vkd3d-proton wineserver ms a frame, median the slowest tenth from preparing
2 30b0eb9 (CachyOS package) views in a tree 296.6 335.7 67.3
3 71cae09 views in a tree 81.1 118.1 60.2
4 71cae09 views in a tree 79.0 106.8 60.9
7 71cae09 Proton's own 510.0 3,240.6 356.2
8 71cae09, VICTORY_LAND_ECHO=0 views in a tree 71.9 105.7 53.2
9 71cae09, play.sh as it is here views in a tree 75.3 105.5 53.8

(Runs 7 to 9 were of a build that also has the change of my other pull request, the placeholder fallback; it did not move the frame: 79.7 ms in run 6.)

vkd3d-proton 30b0eb9 (dxil-spirv 34f0ff8): ten times the dialog

Assertion failed!
File: ../../vkd3d-proton/subprojects/dxil-spirv/cfg_structurizer.cpp, Line: 3495
Expression: "experimental_unstructured_flow || !succ->pred_back_edge || succ->pred_back_edge == &entry"

each holding one pipeline worker. The frame line then reads 8-10 being made for the whole run and 420 to 480 ms waiting for pipelines. With 71cae09 (dxil-spirv b540c8a): no dialog, 0 being made. This looks like the loops with two back edges of #245, on a build of vkd3d-proton that has its assertions on; I did not try #245.

Memory, runs 4, 6, 8 and 9, sampled every 2 s:

on average at most
the process in RAM (RSS) 13.0-13.2 GB 15.5-16.3 GB
the PC's memory the card uses (GTT) 6.6-6.7 GB 9.2-9.4 GB
swap of the process under 0.1 GB 0.3-0.8 GB
the card's memory 13.4-13.5 GB 14.9-15.0 GB of 15.0

Memory left to the PC (MemAvailable) went from 24-26 GB before the start to 4.8-6.0 GB at the least. So this stretch fits in 32 GB; the README's 40-46 GB are Windows' commit, and Linux counts touched pages only (as avatarmanz/VIctory-7900XTX#111 says, with 14-17 GB). The layer's own line agrees: 5385 MB private (14556 MB of it in memory).

Window grid. shadow.rs asks for a run that shows what a finer grid gives. VICTORY_WINDOW_KB=1024 VICTORY_WINDOW_TAILS=1 (run 5): 4,249 windows hold 6,778 MB where 1,424 held 6,724 MB (run 4); they lie over 3,277 MB of title memory against 4,764 MB, so more of it is in more than one window (3,501 MB against 1,960 MB). GTT 6.9 GB on average against 6.7, frame 83.3 ms against 79.0. No gain here.

Checked

  • play.sh with a stand-in for Wine (log file, exit code, --safe, an added variable, a setting left over in the shell, a missing executable), and run 9 is of the script's settings as they are in this branch.
  • The doc's wineboot line in a fresh prefix: done after 9 s.
  • After review (@⁠gut0to): play.sh resolves the executable, PROTON_FILES and VICTORY_LINUX_HOME before it changes folder. A relative executable was checked in the caller's folder and then looked for in the repository (title.exe from the package's folder became <repository>\title.exe). With the stand-in: a relative name, ./sub/../name, a relative symbolic link (kept as named, since its folder is the title's G:), relative PROTON_FILES and VICTORY_LINUX_HOME, an absolute path, and a name that exists only in the repository (refused).
  • cargo xtask policy: ok (248 files).

Not tested

  • Any play beyond the opening scene; any run longer than 330 s; --ray-tracing.
  • Wine's own d3dcompiler_47 (#183 says what happens), another Proton, another card, NVIDIA.

AI-assisted (Claude Code): the script, the runs and this text; I ran them on my machine. No game files, captures or screenshots.

**@⁠nil0ft** on GitHub · 2026-11-26 12:06 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248) `nil0ft:linux-proton` → `rx9070xt` · +592 −50 · 7 files · 4 commits · open ## What - `scripts/play.sh`: what `scripts\play.ps1` is on Windows, for a Proton's Wine started outside Steam. The same settings, `-Safe` and `-RayTracing` as `--safe` and `--ray-tracing`, plus `--seconds N` (ends a test run) and `--mem-max SIZE` (a systemd scope with that much memory at most, so a run that grows past it is ended instead of freezing the desktop). It starts a patched wineserver first when one is there, and writes the log to a file, never a pipe (Wine's services keep a pipe open and the shell waits for good). - One setting differs from `play.ps1`: `VICTORY_LAND_ECHO=0`. With it on, a character's head is drawn without skin (eyes and teeth only): three runs of three; with it off, none of two. This is avatarmanz/VIctory-7900XTX#59's second finding, seen again here. - `docs/proton.md`: a guide, not a report. What a run needs and what happens without each part, how the two parts a stock Proton lacks are built, the set-up, the script's arguments, and symptoms with their causes. The figures of the runs are below, in this text; the doc keeps only the setup it was last checked on and what to expect of memory. - `README.md`: one line that points there. No code of the layer changes. ## Measured CachyOS (kernel 7.3.6), i5-13600KF, 32 GB RAM (and 31 GB of zram swap), RX 9070 XT 16 GB, RADV / Mesa 26.3.1, the Wine of proton-cachyos 11.0-20261015, DXVK 3.1.1's `dxgi`, Microsoft's `d3dcompiler_47` 10.0.17134, `81ebb7b`, diagnostics build for `x86_64-pc-windows-msvc`, Series X, 1080p. Runs of 330 s with the same scripted keys (`VICTORY_KEYS`): first-boot screens, then the opening scene, 1,000 to 6,000 draws a frame. Medians of the frame lines with 500 draws or more (35 to 58 a run). Frames were saved throughout every run (`VICTORY_CAPTURE`). | Run | vkd3d-proton | wineserver | ms a frame, median | the slowest tenth from | preparing | |---|---|---|---|---|---| | 2 | `30b0eb9` (CachyOS package) | views in a tree | 296.6 | 335.7 | 67.3 | | 3 | `71cae09` | views in a tree | 81.1 | 118.1 | 60.2 | | 4 | `71cae09` | views in a tree | 79.0 | 106.8 | 60.9 | | 7 | `71cae09` | Proton's own | 510.0 | 3,240.6 | 356.2 | | 8 | `71cae09`, `VICTORY_LAND_ECHO=0` | views in a tree | 71.9 | 105.7 | 53.2 | | 9 | `71cae09`, `play.sh` as it is here | views in a tree | 75.3 | 105.5 | 53.8 | (Runs 7 to 9 were of a build that also has the change of my other pull request, the placeholder fallback; it did not move the frame: 79.7 ms in run 6.) **vkd3d-proton `30b0eb9`** (dxil-spirv `34f0ff8`): ten times the dialog ``` Assertion failed! File: ../../vkd3d-proton/subprojects/dxil-spirv/cfg_structurizer.cpp, Line: 3495 Expression: "experimental_unstructured_flow || !succ->pred_back_edge || succ->pred_back_edge == &entry" ``` each holding one pipeline worker. The frame line then reads `8-10 being made` for the whole run and 420 to 480 ms `waiting for pipelines`. With `71cae09` (dxil-spirv `b540c8a`): no dialog, `0 being made`. This looks like the loops with two back edges of #245, on a build of vkd3d-proton that has its assertions on; I did not try #245. **Memory**, runs 4, 6, 8 and 9, sampled every 2 s: | | on average | at most | |---|---|---| | the process in RAM (RSS) | 13.0-13.2 GB | 15.5-16.3 GB | | the PC's memory the card uses (GTT) | 6.6-6.7 GB | 9.2-9.4 GB | | swap of the process | under 0.1 GB | 0.3-0.8 GB | | the card's memory | 13.4-13.5 GB | 14.9-15.0 GB of 15.0 | Memory left to the PC (`MemAvailable`) went from 24-26 GB before the start to 4.8-6.0 GB at the least. So this stretch fits in 32 GB; the README's 40-46 GB are Windows' commit, and Linux counts touched pages only (as avatarmanz/VIctory-7900XTX#111 says, with 14-17 GB). The layer's own line agrees: `5385 MB private (14556 MB of it in memory)`. **Window grid.** `shadow.rs` asks for a run that shows what a finer grid gives. `VICTORY_WINDOW_KB=1024 VICTORY_WINDOW_TAILS=1` (run 5): 4,249 windows hold 6,778 MB where 1,424 held 6,724 MB (run 4); they lie over 3,277 MB of title memory against 4,764 MB, so more of it is in more than one window (3,501 MB against 1,960 MB). GTT 6.9 GB on average against 6.7, frame 83.3 ms against 79.0. No gain here. ## Checked - `play.sh` with a stand-in for Wine (log file, exit code, `--safe`, an added variable, a setting left over in the shell, a missing executable), and run 9 is of the script's settings as they are in this branch. - The doc's `wineboot` line in a fresh prefix: done after 9 s. - After review (@⁠gut0to): `play.sh` resolves the executable, `PROTON_FILES` and `VICTORY_LINUX_HOME` before it changes folder. A relative executable was checked in the caller's folder and then looked for in the repository (`title.exe` from the package's folder became `<repository>\title.exe`). With the stand-in: a relative name, `./sub/../name`, a relative symbolic link (kept as named, since its folder is the title's `G:`), relative `PROTON_FILES` and `VICTORY_LINUX_HOME`, an absolute path, and a name that exists only in the repository (refused). - `cargo xtask policy`: ok (248 files). ## Not tested - Any play beyond the opening scene; any run longer than 330 s; `--ray-tracing`. - Wine's own `d3dcompiler_47` (#183 says what happens), another Proton, another card, NVIDIA. AI-assisted (Claude Code): the script, the runs and this text; I ran them on my machine. No game files, captures or screenshots.
play.sh sets what play.ps1 sets and VICTORY_LAND_ECHO=0 besides: with it on,
a character's head is drawn without skin under Wine (three runs of three;
none of two with it off).

Opening scene, 330 s runs: 72-81 ms a frame; 297 ms with vkd3d-proton
30b0eb9 (ten assertions in its shader converter, ten pipelines never made);
510 ms with Proton's own wineserver. The process holds 13 GB of RAM on
average and 16 GB at most.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 12:09:40 +00:00
Author
Owner

@⁠gut0to on GitHub · 2026-11-26 15:47 UTC · original · reviewed

AI-assisted static review; I inspected the argument handling and path resolution, but did not run the script or the game.

**@⁠gut0to** on GitHub · 2026-11-26 15:47 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#pullrequestreview-6077008718) · **reviewed** AI-assisted static review; I inspected the argument handling and path resolution, but did not run the script or the game.
@ -0,0 +96,4 @@
"${scope[@]}" env "${wine[@]}" "${settings[@]}" "${more[@]}" \
"$proton/bin/wine" "$victory" run "$(windows "$(realpath -s "$exe")")" --execute >"$log" 2>&1 </dev/null &
tail --pid=$! -f "$log"
wait $!
Author
Owner

@⁠gut0to on GitHub · 2026-11-26 15:47 UTC · original

Could the executable path be resolved before cd to the repo root? The file check runs while still in the caller’s working directory, but this
ealpath runs after changing directories. A valid relative path supplied by the caller is therefore reinterpreted against the repo and can launch the wrong or missing file. Resolving it once before the cd would preserve the documented path behavior.

**@⁠gut0to** on GitHub · 2026-11-26 15:47 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#discussion_r4710653345) Could the executable path be resolved before cd to the repo root? The file check runs while still in the caller’s working directory, but this ealpath runs after changing directories. A valid relative path supplied by the caller is therefore reinterpreted against the repo and can launch the wrong or missing file. Resolving it once before the cd would preserve the documented path behavior.
The executable was checked in the caller's folder and resolved after cd to
the repository; PROTON_FILES and VICTORY_LINUX_HOME, when relative, changed
meaning the same way.
@ -0,0 +99,4 @@
"${scope[@]}" env "${wine[@]}" "${settings[@]}" "${more[@]}" \
"$proton/bin/wine" "$victory" run "$(windows "$exe")" --execute >"$log" 2>&1 </dev/null &
tail --pid=$! -f "$log"
wait $!
Author
Owner

@⁠nil0ft on GitHub · 2026-11-26 16:58 UTC · original

Right, thanks: a relative path was checked in the caller's folder and resolved after the cd. 249c875 resolves it before the folder changes, and PROTON_FILES and VICTORY_LINUX_HOME with it, which had the same flaw. Links are kept as named. Checked with a stand-in for Wine; the cases are in the description.

**@⁠nil0ft** on GitHub · 2026-11-26 16:58 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#discussion_r4711409131) Right, thanks: a relative path was checked in the caller's folder and resolved after the `cd`. 249c875 resolves it before the folder changes, and `PROTON_FILES` and `VICTORY_LINUX_HOME` with it, which had the same flaw. Links are kept as named. Checked with a stand-in for Wine; the cases are in the description.
Author
Owner

@⁠LOCKhart07 on GitHub · 2026-11-26 20:40 UTC · original

Confirming the VICTORY_LAND_ECHO finding on Windows too (not only Proton). RX 9070 XT, driver 32.0.32029.2010, 7800X3D, 32 GB, a-publier @ cd8dfc0 + #252, release build.

With play.ps1's default settings (LAND_ECHO on), Lucia's head in the opening was drawn as eyes, teeth and hair only, with no skin. In the next run with VICTORY_LAND_ECHO=0, her face rendered normally.

Caveat: I also switched from Series X to Series S between those two runs, so the comparison isn't perfectly isolated. But it matches your 3/3 vs 0/2 result. Maybe worth making LAND_ECHO=0 the default in play.ps1, not only under -Safe?

**@⁠LOCKhart07** on GitHub · 2026-11-26 20:40 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#issuecomment-7202965149) Confirming the `VICTORY_LAND_ECHO` finding on Windows too (not only Proton). RX 9070 XT, driver 32.0.32029.2010, 7800X3D, 32 GB, `a-publier` @ `cd8dfc0` + #252, release build. With `play.ps1`'s default settings (LAND_ECHO on), Lucia's head in the opening was drawn as eyes, teeth and hair only, with no skin. In the next run with `VICTORY_LAND_ECHO=0`, her face rendered normally. Caveat: I also switched from Series X to Series S between those two runs, so the comparison isn't perfectly isolated. But it matches your 3/3 vs 0/2 result. Maybe worth making `LAND_ECHO=0` the default in `play.ps1`, not only under `-Safe`?
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-26 22:43 UTC · original

Checked by reading the code on rx9070xt cd8dfc0 (head 249c875); I did not build or run it, and I have no Linux to try play.sh.

Rebase:

  • The branch still sits on the old rx9070xt history, so GitHub reports conflicts in files this PR does not touch. Taking only the three own commits (24855b8, 8f0c30e, 249c875) onto cd8dfc0, scripts/play.sh and docs/proton.md apply cleanly. Only README.md conflicts.
  • The README conflict is a placement clash. cd8dfc0 added the FSR 4.1.2 paragraphs (README.md:89-100) right after the -Safe paragraph (README.md:86-87), which is where the new Linux line goes. Keeping both resolves it.

Drift of play.sh vs cd8dfc0 scripts/play.ps1:

  • play.sh:60 still sets VICTORY_SKIP_PIPELINES=none. 5cfe32d removed that line from play.ps1 because the value is invalid. In a diagnostics build, which is the build play.sh asks for, crates/victory-gpu/src/pipeline.rs:483-500 rejects none with the warning "VICTORY_SKIP_PIPELINES expects 16-digit shader hashes" and skips nothing. So the setting only adds a warning and can be dropped.
  • play.sh:51-53 keeps VICTORY_CONFIG, GAME_DIR, CACHE_DIR, DATA_DIR and LINUX_HOME, but unsets an inherited VICTORY_FIDELITYFX_DIR. play.ps1:36 keeps that one too.
  • play.sh has nothing like -Fsr4K (play.ps1:5, 13, 29 sets VICTORY_FSR_4K). VICTORY_FSR_4K=quality can still be passed as an extra VAR=value (play.sh:37). The DLL folder would then have to be passed the same way or set in [paths].fidelityfx_dir, because apps/victory/src/run.rs:74-76 fails without it.
  • play.ps1:37-45 (from a8b5133) prints the names of inherited VICTORY_* values it dropped and did not set again. play.sh:51-53 drops them without saying so.
  • The play.sh:55 comment and docs/proton.md:125 say the settings match play.ps1 except for LAND_ECHO. After a rebase, that holds only if the items above are brought in line or listed there too.

If this goes to a-publier instead (now 4eb6cfd):

  • The same three commits also conflict only in README.md there.
  • #327 changed play.ps1 to set VICTORY_D3D12_DRED=light only for -Build diag (play.ps1:24 at 4eb6cfd). play.sh:60 sets it for every --build. It only takes effect in a build with --features diagnostics (crates/victory-gpu/src/host.rs:1854).
  • #336 changed what VICTORY_FSR_4K does when AMD's SDK offers no FSR 4.1.2 (it falls back to FSR 3.1), not how it is passed. The -Fsr4K point above stays the same, and run.rs:74-76 still needs the DLL folder.

Not checked: whether AMD's signed FidelityFX DLL loads under Wine/vkd3d-proton at all.

**@⁠adrianmjim** on GitHub · 2026-11-26 22:43 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#issuecomment-7204924696) Checked by reading the code on rx9070xt cd8dfc0 (head 249c875); I did not build or run it, and I have no Linux to try play.sh. Rebase: - The branch still sits on the old rx9070xt history, so GitHub reports conflicts in files this PR does not touch. Taking only the three own commits (24855b8, 8f0c30e, 249c875) onto cd8dfc0, `scripts/play.sh` and `docs/proton.md` apply cleanly. Only `README.md` conflicts. - The README conflict is a placement clash. cd8dfc0 added the FSR 4.1.2 paragraphs (README.md:89-100) right after the `-Safe` paragraph (README.md:86-87), which is where the new Linux line goes. Keeping both resolves it. Drift of play.sh vs cd8dfc0 scripts/play.ps1: - play.sh:60 still sets `VICTORY_SKIP_PIPELINES=none`. 5cfe32d removed that line from play.ps1 because the value is invalid. In a diagnostics build, which is the build play.sh asks for, crates/victory-gpu/src/pipeline.rs:483-500 rejects `none` with the warning "VICTORY_SKIP_PIPELINES expects 16-digit shader hashes" and skips nothing. So the setting only adds a warning and can be dropped. - play.sh:51-53 keeps VICTORY_CONFIG, GAME_DIR, CACHE_DIR, DATA_DIR and LINUX_HOME, but unsets an inherited `VICTORY_FIDELITYFX_DIR`. play.ps1:36 keeps that one too. - play.sh has nothing like `-Fsr4K` (play.ps1:5, 13, 29 sets `VICTORY_FSR_4K`). `VICTORY_FSR_4K=quality` can still be passed as an extra VAR=value (play.sh:37). The DLL folder would then have to be passed the same way or set in `[paths].fidelityfx_dir`, because apps/victory/src/run.rs:74-76 fails without it. - play.ps1:37-45 (from a8b5133) prints the names of inherited VICTORY_* values it dropped and did not set again. play.sh:51-53 drops them without saying so. - The play.sh:55 comment and docs/proton.md:125 say the settings match play.ps1 except for LAND_ECHO. After a rebase, that holds only if the items above are brought in line or listed there too. If this goes to a-publier instead (now 4eb6cfd): - The same three commits also conflict only in `README.md` there. - #327 changed play.ps1 to set `VICTORY_D3D12_DRED=light` only for `-Build diag` (play.ps1:24 at 4eb6cfd). play.sh:60 sets it for every `--build`. It only takes effect in a build with `--features diagnostics` (crates/victory-gpu/src/host.rs:1854). - #336 changed what `VICTORY_FSR_4K` does when AMD's SDK offers no FSR 4.1.2 (it falls back to FSR 3.1), not how it is passed. The `-Fsr4K` point above stays the same, and run.rs:74-76 still needs the DLL folder. Not checked: whether AMD's signed FidelityFX DLL loads under Wine/vkd3d-proton at all.
Author
Owner

@⁠Tymon3310 on GitHub · 2026-11-27 00:20 UTC · original

A second machine confirms the guide: RX 6800 XT 16 GB (RDNA2), Ryzen 9 5950X, 94 GB RAM, Arch (kernel 7.3.6-zen), RADV / Mesa 26.3.1. Build: a-publier 4eb6cfd plus the null-blob library / 64 MB worker stacks / watchdog fixes, avatarmanz/VIctory-7900XTX#338's Wine shader changes, and a one-line rootstring fix (see my comment there). Series S profile, opening scene and early world. Medians of the frame lines:

Setup ms a frame
GDK-Proton 11-7 (stock wineserver), vkd3d-proton ec20719 ~340
proton-cachyos 11.0 + the views-in-a-tree wineserver (wine-cachyos#50 on the Proton's own wine commit b5f2dc7b), vkd3d-proton 71cae09 ~180 (best 141)

With ec20719 the frame line read (6 being made) for the whole run, with no dialog: it is a release build without assertions, so those pipelines fail silently. With 71cae09 it reads (0 being made). The card went from about 10% to fully busy.

Two things the guide could add:

  1. vm.unprivileged_userfaultfd=1. It defaults to 0 on many distributions (Arch included). Then Wine cannot use userfaultfd + PAGEMAP_SCAN for write watches and falls back to mprotect and a fault per page. With it on, the process holds an anon_inode:[userfaultfd] fd, and textures and assets stream in much faster. Frame time barely moved on its own (about 340 → 350 ms with the old server), but streaming clearly improved.
  2. VICTORY_PORT_CONSTANTS=1 is black under Wine (#19), and the reason is in libdrm. vkd3d-proton imports the section through VK_EXT_external_memory_host, but Wine's sections are memfd MAP_SHARED mappings, and libdrm_amdgpu hard-codes AMDGPU_GEM_USERPTR_ANONONLY (amdgpu_bo.c), so the kernel refuses them with EPERM. vkd3d then falls back without a word to a separate allocation (Failed to import host memory, hr 0x8007000e at WARN), and the GPU reads memory nobody writes. A libdrm without that flag, plus keeping OpenExistingHeapFromFileMapping's view mapped, makes VICTORY_INPLACE_PROBE=2 pass completely. But the frames were slower (median 618 against 353 ms), so it is not worth it on Linux for now.

AI-assisted (Claude Code): the builds, runs and this text; I ran them on my machine. No game files, captures or screenshots.

**@⁠Tymon3310** on GitHub · 2026-11-27 00:20 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#issuecomment-7206379485) A second machine confirms the guide: **RX 6800 XT 16 GB (RDNA2), Ryzen 9 5950X, 94 GB RAM, Arch (kernel 7.3.6-zen), RADV / Mesa 26.3.1**. Build: `a-publier` 4eb6cfd plus the null-blob library / 64 MB worker stacks / watchdog fixes, avatarmanz/VIctory-7900XTX#338's Wine shader changes, and a one-line `rootstring` fix (see my comment there). Series S profile, opening scene and early world. Medians of the frame lines: | Setup | ms a frame | |---|---| | GDK-Proton 11-7 (stock wineserver), vkd3d-proton `ec20719` | ~340 | | proton-cachyos 11.0 + the views-in-a-tree wineserver (wine-cachyos#50 on the Proton's own wine commit `b5f2dc7b`), vkd3d-proton `71cae09` | **~180** (best 141) | With `ec20719` the frame line read `(6 being made)` for the whole run, with no dialog: it is a release build without assertions, so those pipelines fail silently. With `71cae09` it reads `(0 being made)`. The card went from about 10% to fully busy. Two things the guide could add: 1. **`vm.unprivileged_userfaultfd=1`.** It defaults to 0 on many distributions (Arch included). Then Wine cannot use userfaultfd + `PAGEMAP_SCAN` for write watches and falls back to `mprotect` and a fault per page. With it on, the process holds an `anon_inode:[userfaultfd]` fd, and textures and assets stream in much faster. Frame time barely moved on its own (about 340 → 350 ms with the old server), but streaming clearly improved. 2. **`VICTORY_PORT_CONSTANTS=1` is black under Wine (#19), and the reason is in libdrm.** vkd3d-proton imports the section through `VK_EXT_external_memory_host`, but Wine's sections are `memfd` `MAP_SHARED` mappings, and `libdrm_amdgpu` hard-codes `AMDGPU_GEM_USERPTR_ANONONLY` (`amdgpu_bo.c`), so the kernel refuses them with EPERM. vkd3d then falls back without a word to a separate allocation (`Failed to import host memory, hr 0x8007000e` at WARN), and the GPU reads memory nobody writes. A libdrm without that flag, plus keeping `OpenExistingHeapFromFileMapping`'s view mapped, makes `VICTORY_INPLACE_PROBE=2` pass completely. But the frames were slower (median 618 against 353 ms), so it is not worth it on Linux for now. AI-assisted (Claude Code): the builds, runs and this text; I ran them on my machine. No game files, captures or screenshots.
Author
Owner

@⁠BlueCatsz on GitHub · 2026-11-27 11:56 UTC · original

Independent confirmation of this Linux/Proton setup on RX 9070 XT 16 GB (RDNA4), Ryzen 7 5800X3D, 32 GB DDR4, CachyOS, Mesa RADV 26.3.1, running retail 1.0.2.1 (Series X profile, VICTORY_LAND_ECHO=0, VKD3D_CONFIG=descriptor_heap, diag build of a-publier 4eb6cfd + #124 + #247 + #541's moving-faces hunk):

  • RB-tree wineserver (CachyOS/wine-cachyos#50) + vkd3d-proton (71cae09) + native d3dcompiler_47.dll:
    • vkd3d-proton 71cae09 (with the legacy structurizer removed) eliminated the 6 being made / 416.7–600.1 ms waiting for pipelines stalls (0 being made).
    • CachyOS/wine-cachyos#50 cut kernel askings from 53.1–83.0 ms down to 6.3–13.4 ms (and combined with #247 dropped questions about holes from 8,323–10,253 down to 3–41 in steady state).
    • Native d3dcompiler_47.dll fixed the Wine builtin HLSL errors (0 indirect drops).
    • Opening scene ran at 10.0–18.3 fps (54.7–100.2 ms/frame) with VICTORY_CARD_BUFFERS_MIN_MB=1.
  • Renderer ports status on vkd3d-proton + RADV:
    • Ports 2, 5, 6, 7 (VICTORY_PORT_DESCRIPTORS=1, CBV, GUARD, JOURNAL) all work cleanly together (12.6–17.3 fps in the opening scene, 30.0 fps in menus).
    • Port 1 (VICTORY_PORT_CONSTANTS=1) caused a black screen from frame 1 because vkd3d_import_host_memory fails with hr 0x8007000e on MapViewOfFile section views and silently returns a disconnected zeroed allocation. Opened #569 to verify host-heap coherency once and fall back cleanly instead of drawing black frames.

AI assistance disclosure: analysis and test notes were compiled with AI assistance; all builds and hardware runs were executed and verified locally.

**@⁠BlueCatsz** on GitHub · 2026-11-27 11:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/248#issuecomment-7217645798) Independent confirmation of this Linux/Proton setup on **RX 9070 XT 16 GB (RDNA4), Ryzen 7 5800X3D, 32 GB DDR4, CachyOS, Mesa RADV `26.3.1`**, running retail 1.0.2.1 (Series X profile, `VICTORY_LAND_ECHO=0`, `VKD3D_CONFIG=descriptor_heap`, `diag` build of `a-publier` `4eb6cfd` + `#124` + `#247` + `#541`'s moving-faces hunk): - **RB-tree `wineserver` (`CachyOS/wine-cachyos#50`) + `vkd3d-proton` (`71cae09`) + native `d3dcompiler_47.dll`:** - `vkd3d-proton` `71cae09` (with the legacy structurizer removed) eliminated the `6 being made` / `416.7–600.1 ms waiting for pipelines` stalls (`0 being made`). - `CachyOS/wine-cachyos#50` cut `kernel askings` from `53.1–83.0 ms` down to `6.3–13.4 ms` (and combined with `#247` dropped `questions about holes` from `8,323–10,253` down to `3–41` in steady state). - Native `d3dcompiler_47.dll` fixed the Wine builtin HLSL errors (`0` indirect drops). - Opening scene ran at **`10.0–18.3 fps`** (`54.7–100.2 ms/frame`) with `VICTORY_CARD_BUFFERS_MIN_MB=1`. - **Renderer ports status on `vkd3d-proton` + RADV:** - Ports 2, 5, 6, 7 (`VICTORY_PORT_DESCRIPTORS=1`, `CBV`, `GUARD`, `JOURNAL`) all work cleanly together (`12.6–17.3 fps` in the opening scene, `30.0 fps` in menus). - Port 1 (`VICTORY_PORT_CONSTANTS=1`) caused a black screen from frame 1 because `vkd3d_import_host_memory` fails with `hr 0x8007000e` on `MapViewOfFile` section views and silently returns a disconnected zeroed allocation. Opened #569 to verify host-heap coherency once and fall back cleanly instead of drawing black frames. --- *AI assistance disclosure: analysis and test notes were compiled with AI assistance; all builds and hardware runs were executed and verified locally.*
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/victory-gpu/src/ambient.rs
  • crates/victory-gpu/src/host.rs
  • 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/248/head:github-bot/gh-248'
git switch 'github-bot/gh-248'

Merge

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