docs: building and running this fork on Linux (cross-compile script and notes) #396
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!396
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/396/head"
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?
@Aruku448 on GitHub · 2026-11-26 22:57 UTC · original
Aruku448:docs/linux-build→main· +232 −0 · 2 files · 1 commits · closed without mergingAdds
scripts/linux-cross-build.shanddocs/linux-build.md. Both are additive: no code, no behaviour change for Windows.Why
The fork builds on Linux and runs under Wine with vkd3d-proton, and on one AMD machine it lands near the Windows reference numbers. Getting there involved several things that are not written down anywhere, and the first three cost hours.
The script
Two environment details break a plain
cargo build --target x86_64-pc-windows-msvcon a Linux host:INCLUDE— for the C dependencies the SDK include paths only reachclang-clas-imsvcarguments; exporting the variable does nothing. First failure:libudis86/types.h(44,11): fatal error: 'stdio.h' file not found.lld-linkasks forkernel32.lib, an SDK unpacked with Windows casing holdsKERNEL32.lib, and on a case-sensitive filesystem those differ. The script copies the library directories to a lowercase tree and pointslld-linkat it with/LIBPATH.The script takes an
xwin splatdirectory, generates both wrappers intotarget/linux-cross-tools, and runs the cargo build. Verified here end to end (--profile diag --features diagnostics→ 16 MBvictory.exe, 1m15s).The notes
docs/linux-build.mdrecords the runtime pieces: vkd3d-proton from master (the 3.0.1/3.1 releases fault insidevkCreateComputePipelineson this title's compute programs, and the 3.2.0 builds recurse without end in dxil-spirv and leave pipelines "being made" for the rest of the run), DXVK'sdxgi, Microsoft'sd3dcompiler_47.dllwithd3dcompiler_47=n,b(Wine's builtin fails the layer's owncs_5_1compare shader, after which nothing settles),d3d12corein the override list, and a wineserver carrying the rbtree views fix (bug 60868) — the server climbed from 31% to 71% of a core during a run without it and sits at 4-6% with it.It also records two traps in that wineserver patch: the server must be built from the wine-staging tree of the matching version (11.22-staging expects protocol 980, upstream 11.22 generates 979, and forcing the constant hangs the title in its intro), and in a tree where
process->viewsstill holds every view,free_memory_view()must keep removing from the list unconditionally or the server walks freed memory and dies mid-run.Measurements on that stack (RX 7800 XT, RADV 26.3.1, Wine 11.22-staging)
Prologue prison scene, world frames above 3,000 draws, median of the last 40:
copiestexturesplay.ps1 -Safe-Safe+VICTORY_PORT_DESCRIPTORS=1play.ps1default set (THIN=1 …)-Safe+PORT_GUARD+PORT_JOURNALPORT_DESCRIPTORStransfers and is worth 1.45x there;THINis 9x slower on this stack (not memory pressure — the machine was not swapping);PORT_GUARDcosts 150-370 ms rather than saving 2;PORT_JOURNALis neutral to slightly worse;PORT_CONSTANTSblack-screens on RADV (#163).These are also in comments on #240.
Not in this PR
No attempt to fix the Linux-specific regressions above — this is only the recipe and the numbers, so that the next person does not start from zero.
Pull request closed