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
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!248
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-248"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nil0ft on GitHub · 2026-11-26 12:06 UTC · original
nil0ft:linux-proton→rx9070xt· +592 −50 · 7 files · 4 commits · openWhat
scripts/play.sh: whatscripts\play.ps1is on Windows, for a Proton's Wine started outside Steam. The same settings,-Safeand-RayTracingas--safeand--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).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'sd3dcompiler_4710.0.17134,81ebb7b, diagnostics build forx86_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).30b0eb9(CachyOS package)71cae0971cae0971cae0971cae09,VICTORY_LAND_ECHO=071cae09,play.shas it is here(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-spirv34f0ff8): ten times the dialogeach holding one pipeline worker. The frame line then reads
8-10 being madefor the whole run and 420 to 480 mswaiting for pipelines. With71cae09(dxil-spirvb540c8a): 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:
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.rsasks 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.shwith 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.winebootline in a fresh prefix: done after 9 s.play.shresolves the executable,PROTON_FILESandVICTORY_LINUX_HOMEbefore it changes folder. A relative executable was checked in the caller's folder and then looked for in the repository (title.exefrom 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'sG:), relativePROTON_FILESandVICTORY_LINUX_HOME, an absolute path, and a name that exists only in the repository (refused).cargo xtask policy: ok (248 files).Not tested
--ray-tracing.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.
@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.
@ -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 $!@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.
@ -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 $!@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.249c875resolves it before the folder changes, andPROTON_FILESandVICTORY_LINUX_HOMEwith it, which had the same flaw. Links are kept as named. Checked with a stand-in for Wine; the cases are in the description.@LOCKhart07 on GitHub · 2026-11-26 20:40 UTC · original
Confirming the
VICTORY_LAND_ECHOfinding 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 withVICTORY_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=0the default inplay.ps1, not only under-Safe?@adrianmjim on GitHub · 2026-11-26 22:43 UTC · original
Checked by reading the code on rx9070xt
cd8dfc0(head249c875); I did not build or run it, and I have no Linux to try play.sh.Rebase:
24855b8,8f0c30e,249c875) ontocd8dfc0,scripts/play.shanddocs/proton.mdapply cleanly. OnlyREADME.mdconflicts.cd8dfc0added the FSR 4.1.2 paragraphs (README.md:89-100) right after the-Safeparagraph (README.md:86-87), which is where the new Linux line goes. Keeping both resolves it.Drift of play.sh vs
cd8dfc0scripts/play.ps1:VICTORY_SKIP_PIPELINES=none.5cfe32dremoved 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 rejectsnonewith the warning "VICTORY_SKIP_PIPELINES expects 16-digit shader hashes" and skips nothing. So the setting only adds a warning and can be dropped.VICTORY_FIDELITYFX_DIR. play.ps1:36 keeps that one too.-Fsr4K(play.ps1:5, 13, 29 setsVICTORY_FSR_4K).VICTORY_FSR_4K=qualitycan 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.a8b5133) prints the names of inherited VICTORY_* values it dropped and did not set again. play.sh:51-53 drops them without saying so.If this goes to a-publier instead (now
4eb6cfd):README.mdthere.VICTORY_D3D12_DRED=lightonly for-Build diag(play.ps1:24 at4eb6cfd). 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).VICTORY_FSR_4Kdoes when AMD's SDK offers no FSR 4.1.2 (it falls back to FSR 3.1), not how it is passed. The-Fsr4Kpoint 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.
@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-publier4eb6cfdplus the null-blob library / 64 MB worker stacks / watchdog fixes, avatarmanz/VIctory-7900XTX#338's Wine shader changes, and a one-linerootstringfix (see my comment there). Series S profile, opening scene and early world. Medians of the frame lines:ec20719b5f2dc7b), vkd3d-proton71cae09With
ec20719the 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. With71cae09it reads(0 being made). The card went from about 10% to fully busy.Two things the guide could add:
vm.unprivileged_userfaultfd=1. It defaults to 0 on many distributions (Arch included). Then Wine cannot use userfaultfd +PAGEMAP_SCANfor write watches and falls back tomprotectand a fault per page. With it on, the process holds ananon_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.VICTORY_PORT_CONSTANTS=1is black under Wine (#19), and the reason is in libdrm. vkd3d-proton imports the section throughVK_EXT_external_memory_host, but Wine's sections arememfdMAP_SHAREDmappings, andlibdrm_amdgpuhard-codesAMDGPU_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 0x8007000eat WARN), and the GPU reads memory nobody writes. A libdrm without that flag, plus keepingOpenExistingHeapFromFileMapping's view mapped, makesVICTORY_INPLACE_PROBE=2pass 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.
@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,diagbuild ofa-publier4eb6cfd+#124+#247+#541's moving-faces hunk):wineserver(CachyOS/wine-cachyos#50) +vkd3d-proton(71cae09) + natived3dcompiler_47.dll:vkd3d-proton71cae09(with the legacy structurizer removed) eliminated the6 being made/416.7–600.1 ms waiting for pipelinesstalls (0 being made).CachyOS/wine-cachyos#50cutkernel askingsfrom53.1–83.0 msdown to6.3–13.4 ms(and combined with#247droppedquestions about holesfrom8,323–10,253down to3–41in steady state).d3dcompiler_47.dllfixed the Wine builtin HLSL errors (0indirect drops).10.0–18.3 fps(54.7–100.2 ms/frame) withVICTORY_CARD_BUFFERS_MIN_MB=1.vkd3d-proton+ RADV:VICTORY_PORT_DESCRIPTORS=1,CBV,GUARD,JOURNAL) all work cleanly together (12.6–17.3 fpsin the opening scene,30.0 fpsin menus).VICTORY_PORT_CONSTANTS=1) caused a black screen from frame 1 becausevkd3d_import_host_memoryfails withhr 0x8007000eonMapViewOfFilesection 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.
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.Merge
Merge the changes and update on Forgejo.