Feature request: experimental Linux/Wine support and compatibility documentation #340
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#340
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ajsem1337 on GitHub · 2026-11-24 02:24 UTC · original
I'd like to propose documenting and tracking an experimental Linux/Wine path for the Windows build of VIctory. This is a feature/support-tracking request, not a claim that Linux is currently supported or a new regression report against current main.
The Windows-only requirements and the current world-rendering limitations in the README are understood. A separate, explicitly experimental launch recipe and compatibility matrix would help contributors avoid rediscovering Wine-specific setup requirements.
Tested setup
0bb64c56c8f0dccand DXVK3.1.1-134-g2cb40186c, from the installed GE-Proton11-11 distribution.97c78d1, initially unmodified, then with one small local submission-lock change described below.These results are historical: the reviewed main is
d2a4bae, 59 commits ahead of the tested baseline. I have not rebuilt or retested that revision.What worked
S_OKfor 225 frames, with five exact GPU readbacks.d3dcompiler_47.dllin the prefix compiled and ran VIctory's indirect-argument clamp shader. Wine's builtin compiler rejected it. This adds tested workaround evidence to #170; no compiler DLL is attached or redistributed.victory.exe run ... --execute. The EXE bound 88 HLE, 427 host and 72 title imports, with 0 missing; all four title DLLs also bound without missing imports.Remaining observations on the tested revision
Frame pacing was unstable: roughly 15–30 fps in many logged intervals, with much worse spikes observed manually; audio stuttered. One measured interval spent 55–82 ms preparing/updating textures on the CPU versus about 1–1.5 ms on the GPU.
The unmodified baseline exited with:
Moving the existing submission mutex ahead of deferred/prelude preparation changed the pending-allocator error count from 34 to 0 in the next run; that run reached the world and failed differently. Current main already covers preparation with the submission lock, so this is not a request to merge the local change or a claim of a new fix.
The next failure exhausted an approximately 1 MiB thread stack. A debugger capture before termination shows many repeated
d3d12core.dll+0x2648f5 / +0x2649f5frames. The later crash-reporter overflow and the title's null-write report were secondary observations; the exact recursive function has not been identified from the stripped DLL. This may be relevant to #144 / #151, but the AMD/RADV run does not establish the same NVIDIA-driver cause. No kernel GPU reset/fault or device-removal message was recorded in these runs.Relation to current work / proposed scope
I found the already-merged texture improvements #60 and #79, Wine physical-page work #53, and the pipeline-worker code now in main. Those changes mean the old timing and failure observations above should not be treated as current-main results. #90 separately tracks native Linux build/test status; #128 and #170 track specific Wine runtime gaps, and #49 collects tester results.
The proposal is to add an experimental Windows-build-on-Linux recipe and track its tested Wine/VKD3D/DXVK versions, prefix/compiler requirements, Wayland/audio setup and remaining limitations separately from official Windows support.
Only diagnostic text is included here. No game binaries, shaders, memory dumps or game assets are attached. Report prepared with AI assistance (Codex).
@DaviTostes on GitHub · 2026-11-24 02:27 UTC · original
Supporting the proposal with a second data set, measured after the revision in the issue (main
d2a4bae, plus the #129 merge). It confirms the shape and adds the parts that changed:Environment
x86_64-pc-windows-msvc, nativelld-link/clang-cl.Windows test binaries under Wine (no #39/#112 needed)
victory_gpu, 52 tests:pipeline::library::a_rejected_blob_gives_an_empty_library(vkd3d wants a non-empty blob forCreatePipelineLibrary) and #128.victory-hle: 85/86; the one failure isonly_loopback_is_reachable(Wine lacksWSAConnectByList). #195 fixed it; it is closed and the remaining Wine fallbacks are tracked in #217.victory-loaderandvictory-shadersuites also run under Wine; the loader tests that parse the test binary as PE must use the Windows build (on Linux the binary is ELF).The indirect clamp (#170) has two fixes now
d3dcompiler_47rejects the HLSL (E5005), so every indirect execution is dropped on the test path.d3dcompiler_47.dllin the DLL search path makesindirect::tests::*pass (matches the issue's finding).dxcompiler.dll, which Wine does not ship; provided one, the clamp passes.d3dcompiler_47. For a Linux/Wine compatibility recipe, #190 is the piece to point at.#128 is specific to vkd3d-proton
resource::tests::buffer_data_reaches_the_host_texturepasses and the whole GPU suite is green.VirtualQueryreports the mapped upload heap asMEM_FREE, so the deferred copy is skipped; bypassing the guard makes it pass.Other pieces worth naming in the recipe
umu-runwas verified with it (a stock Steam Proton under UMU failed atunable to use parent for game drive; UMU-Proton is the tested runtime).SDL3.dll, XInput fallback, trigger rumble). A GameSir G7 Pro was read live under Wine;SDL3.dllgoes next tovictory.exe.mainstill fails a native Linux build (E0425 host_resource), so the recipe must say "Windows build, run under Wine/Proton", and point at #112/#235 for the native route.The matrix differs from the issue's revision in exactly the places the merged work touched, which is the argument for keeping the version/commit column in the doc rather than a single "Linux works/doesn't" line.
No game data used.
@desplmfao on GitHub · 2026-11-24 03:02 UTC · original
#259
this pr also helps for linux users on nvidia cards
@andyeox-systemd on GitHub · 2026-11-24 03:21 UTC · original
NVIDIA data point to complement the AMD results above (no game files used, synthetic tests only):
Environment
WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n")x86_64-pc-windows-msvcd2a4bae(main, same revision as the AMD run above)Results (
cargo xwin test --workspace --no-fail-fast,CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER=wine)victory-gpu: 40 passed, 3 failed, 1 ignored. Failures:a_rejected_blob_gives_an_empty_library,argument_clamp_builds(clamp().is_some()assertion),buffer_data_reaches_the_host_texture(assertionleft == rightfailed: row 0)victory-hle: 85/86. Failure:only_loopback_is_reachablevictory-loader:loads_binds_and_calls_probefails (1 passed, 1 failed inload_probe)victory-shader: 68/69. Failure:stub_pipeline_is_createdxtask:repository_passes_policyfailsNotes
crates/victory-shader/vkd3d-proton.cacheinto the working tree, whichcargo xtask policyflags (file type not on the allowlist / binary content). Deleting it made the check pass. Maybe worth a.gitignoreentry or pointing the cache elsewhere for test runs.Happy to test further revisions or PRs (#190, #195) on NVIDIA, or to try the Proton launcher from #191, if useful.
@ajsem1337 on GitHub · 2026-11-24 04:44 UTC · original
Following up on the experimental Wine path with results from the Windows MSVC build of
d2a4bae. I tested on an RX 7900 GRE with RADV 26.3.1, Wine 10.0, vkd3d-proton 0bb64c5 and DXVK 3.1.1. The prefix used native D3D12/DXGI, native Wayland and one Pulse socket inside an offline bubblewrap sandbox.For the compatibility matrix, #532 adds an independent RTX 4080 / Proton result. #526 tracks a separate native Linux runtime. Recording the VIctory revision, applied PRs and exact D3D12 runtime alongside each result would make these reports easier to compare.
@andyeox-systemd on GitHub · 2026-11-24 05:20 UTC · original
Thanks for the detailed AMD results, @ajsem1337. Here is the NVIDIA side, with the details you asked for. The logs and comments are on #144.
Setup: RTX 4070 Ti, Arch Linux,
nvidia-open-dkms615.78.08, Wine 11.21 (and Proton Experimental's own Wine for one run), DXVK 3.1.1.Builds tested:
mainatd2a4bae, with #177 (ce945d6) and #151 merged locally. I also tried a local edit giving thevictory-pipelines-*workers a 16 MiB stack.D3D12 runtimes tested: vkd3d-proton 3.0.1, 3.1, and Proton Experimental's 3.1.0.
Result: the title boots and the menus run. It then crashes at the loading screen after the menu, which is the same stage you describe. The crash is in
vkCreateComputePipelines(0xc0000005or0xc000001d, in the Unix call), right after compute shader4e296b1885c37b29is translated. The crash frame varies between 903 and 1330, but the call and the shader stay the same. I don't know yet if your black screen and exit is the same failure, since you didn't mention this call.Stack size: with #151 applied, and with 16 MiB stacks on the
victory-pipelines-*workers, my crash is unchanged. So the pipeline worker stack doesn't explain it on my setup.Other notes:
Required WaveSize range [64, 64], but supported range is [32, 32]errors are logged before the crash, since NVIDIA's warp size is 32. The kernel log shows no Xid or segfault entries.I can't tell yet whether the driver (the report that #177 helps was on 620.73.04) or the shader is the cause. Happy to test a newer driver or any other PR on NVIDIA.
@ajsem1337 on GitHub · 2026-11-24 06:53 UTC · original
Update on the Wine path: title runs on a stack of open PRs. Same machine as before (RX 7900 GRE, RADV 26.3.1, kernel 7.3.5), Wine 10.0, but D3D12 now comes from GE-Proton11-14's vkd3d-proton (
v3.1-83-gcae8353ed). Same offline bubblewrap sandbox, with the process memory-capped.All builds start from
d2a4bae+ #347 + #322. One change was added per run:DEVICE_REMOVEDVKD3D_CONFIG=no_descriptor_heap0x80000003)VK_EXT_descriptor_heappath, the bad descriptor reads address 0. Withdescriptor_buffer, it reads a stale VA. ARADV_DEBUG=hangdump stops in a directDrawMeshTasks: mesh52f7aaea8eb5bce9, pixel474a38e074be39f3.@ajsem1337 on GitHub · 2026-11-24 07:19 UTC · original
Follow-up on the same machine, about an hour later. The stack is the last row of the table above (never-free) plus #490. #490 conflicted with #514 in
watch.rs; I resolved it by hand and all 5watch::tests pass under Wine. Diagnostics build.gfxring timeout (no page fault this time), with VRAM full at 16.9/17.2 GB from never-free.copystat(≈2 s/frame):MEM_MAPPEDheap at 0x1d1a0000, refreshed 51×/frameSo under Wine a world frame is almost all write-watch round trips and re-hashing unchanged textures. Next I'll try #388/#401 for the hashing and #185+#600 (with the Wine fix from aycow/VIctory#1) for the questions.
@ajsem1337 on GitHub · 2026-11-24 08:51 UTC · original
Update from the same RX 7900 GRE / RADV 26.3.1 box. The biggest change is in Wine itself, not VIctory.
wineserver walks every mapped view on each map and unmap
perfinside the sandbox put 37% of the title's CPU time in wineserver, almost all of it in two loops inserver/mapping.c:is_valid_view_addr()(frommap_view)find_mapped_view()(fromunmap_view)Both walk
process->views, a plain list. The title's streaming and tiled memory keeps mapping and unmapping physical-page views, thousands of them, so each request walks all of them. This is the same in Wine 10.0, 11.0 and current master. It is the cost that showed up in VIctory's counters as "copies / write-watch" (1.1–1.7 s per world frame).A small server patch (below) keeps the list and adds an
rb_treekeyed by view base. Views never overlap, so each lookup is a "highest base ≤ address" descent. I builtwineserveralone from the exact source of the installed wine-cachyos 10.0-20260425 (protocol 865) and started it inside the sandbox beforewine. Same VIctory build, same scene:The first loading screen now holds a steady 30 fps and loads much faster. I have not yet run Wine's own tests or an A/B against an unpatched build of the same tree, so treat it as a measurement, not a reviewed fix. It should help anything under Wine that maps many views; I'll take it to Wine after that.
How far it gets now
On
d2a4bae+ the stack from my earlier comments + #388, #452, #490 andVICTORY_SHADER_LOOP_LIMIT=256, it reaches the first prologue mission. The HUD shows "Approach a cellmate to interact with them". On a rebase onto58fed37with never-free it got as far as "Move around / Move camera". Pause, Settings, Controls and Retry checkpoint work, and the footsteps follow movement. It runs at 2–3 fps. The final image stays black (about 950 draws per frame are dropped for untranslated shaders), with occasional red flashes.04b9be3756e8f41c, pixel1af4a50c7fb40c97] from #71, the pixel program's loops running to 2^20.RADV_DEBUG=hangstopped in that draw. Loop limit 32 removed the hang but the title then crashed on the CPU reading garbage pointers. 256 works.HostHeap::mirrornulls a slot the title never rewrote once its view's resource is released, and lists recorded earlier then read null (VA 0 on vkd3d's descriptor-heap path). Keeping that slot and its resource until the title rewrites it removed the faults on thed2a4baestack (6 min, VRAM steady ~13 GB). On a rebase onto58fed37the VA 0 fault came back, and never-free still avoids it there, so there is at least one more release path.VICTORY_SHOW_TARGET=busiestthe presented G-buffer showed tables and benches in the prison. The textures only appear in that diagnostic view. In the normal output every run so far has been black. The geometry is drawn; the lighting and composition passes are what's missing.wineserver patch (against wine-cachyos 10.0-20260425; the two loops are unchanged on master, the patch itself is only tested on 10.0)
@desplmfao on GitHub · 2026-11-24 09:14 UTC · original · edited 2026-11-24 10:42 UTC
Confirming the
wineserverview-tree patch from this comment on different hardware and a newer Wine: RTX 5080, CachyOS, proton-cachyos 11.0-20260703.I ported the patch to
wine-cachyostagcachyos-11.0-20260702-proton-native(protocol 932). The four files and the logic are the same; only the line offsets differ, andis_valid_view_addr()there useshost_page_mask. I builtserver/wineserveralone and ran it from a copy of the Proton folder. Proton ignoresWINESERVER, and ntdll finds the server next to the real path ofntdll.so, sofiles/bin/wine,files/bin/wineserver, andntdll.soandwine-preloaderunderfiles/lib/wine/x86_64-unix/have to be real files in that copy.Same VIctory binary and warm pipeline cache, only the server swapped. The build is Marvisak#185 (including the shared write-watch spans from aycow/VIctory#2) merged with current
mainas in aycow/VIctory#4, plus #493, #259, #177, #151 and #178 (withVICTORY_DXC). This first table is without the view-lookup cache from aycow/VIctory#3 and without a shader loop limit; both are in the update below. Medians over the first 8 world summary lines:At about 1 fps the intro's credits and the distant city lights are visible over a black world, matching your description: UI and emissive light points come through, the lit geometry doesn't. About 4 minutes into the world the patched run hit an NVIDIA
Xid 109(CTX SWITCH TIMEOUT), and the title's+0x23cf683followed about 25 s later. I don't think the server change causes that, but I can't rule it out from one run. With #178 indirect draws run for the first time, and at 4× the speed the run also reaches further. The stock-server run of the same build didn't get that far.AI-assisted (Claude Code).
Update: two more runs of the same stack with the patched server and
VICTORY_SHADER_LOOP_LIMIT=256, in one binary where aycow/VIctory#3 (cached view lookups) can be switched off. Medians over all world lines of each run:Most of the gain is the server patch (about 4×). The loop limit and aycow/VIctory#3 come on top, but the two loop-limit runs were in different scenes (the run without aycow/VIctory#3 spent most of its time in light scenes), so I can't split those last 70 ms between them from one run each. What aycow/VIctory#3 measurably saves with the patched server is about 20 ms of lookups per frame; with the stock server it was 2.3 s → 0.9 s. In these runs the final picture showed lit geometry for the first time here: power lines, poles, traffic-light gantries and road signs under fog and depth of field, with no ground or buildings. The
Xid 109hang came in the patched run and in the run with aycow/VIctory#3, so it isn't aycow/VIctory#3. More on the hang below.The
Xid 109hang, same machine and stack (withVICTORY_SHADER_LOOP_LIMIT=256). I tried your bar-scene pair withVICTORY_SKIP_PIPELINES, which drops every pipeline containing the shader:04b9be3756e8f41c+ pixel1af4a50c7fb40c97In my logs
04b9be3756e8f41conly appears with1af4a50c7fb40c97, so the pixel-only skip dropped a superset of the mesh-only skip, and it still hung. The mesh shader is straight-line code offline. The pixel shader has a three-level clustered-light loop nest, and a per-loop limit multiplies across it (256 allows about 2M iterations per pixel, which may be why 32 helped you). But bounding the whole nest per lane didn't stop the hang either. So on NVIDIA I don't think this hang comes from that pair or from long loops.VKD3D_CONFIG=breadcrumbsgave no dump (the title's check ends the process before vkd3d-proton reports the device lost). Without a skip, about half the runs hung, so the skip runs that stayed clean (the 7.5-minute and 6-minute rows) prove little either. With #542's code on top (#493 still in), 2 of 2 runs reached the first prologue mission and stayed there for 3.5 and 3.75 minutes without a fault. That's encouraging, not yet proof.With the mesh shader skipped, the run reached "Approach a cellmate to interact with them" at about 2 fps (500–670 ms/frame, 3,000–4,000 draws/frame), with working input and a black picture apart from the HUD.
@dcastell1 on GitHub · 2026-11-24 11:25 UTC · original
A note for the Linux/Wine recipe in this thread, from trying to reproduce the working stack on current
main@ffe310e(git clone, no game data,git apply --checkon each PR as posted):ffe310etodaycrates/victory-gpu/src/descriptor.rs:85anddescriptor/host.rs:20descriptor/host.rs:17anddraw.rs:77So the six-PR configuration that produced the first street frame cannot be rebuilt from current main right now: five of the six were based on
d2a4bae(only #177 is onffe310e), and the two descriptor PRs have since drifted. Anyone following this thread will hit that, on Linux or Windows alike.Two things that would make the recipe usable:
For the record, on this box (Windows 11 10.0.26300, RTX 5090, driver 621.24, Rust 1.98.1) plain
main@ffe310eis 342 passed / 0 failed / 6 ignored, and with #177 it is 343/0/6, so the stack's shader fix at least is not what breaks the build.@desplmfao on GitHub · 2026-11-24 11:39 UTC · original
@dcastell1 For #185, aycow/VIctory#4 merges it with current
main(ffe310e) and resolves the conflicts you hit:descriptor.rs,draw.rs,host.rsandwatch.rs, plus a few tests whose callsmainchanged under them. The branch isdesplmfao/VIctory:fix/185-merge-main(head4740e19). It merges intomain@ffe310ewith no conflicts, and #493 merges on top of it with no conflicts too. The resolutions are listed in the PR description and comments. On that branch,victory-gpuhas 92 tests passing andvictory-shader110. The ones that fail here are environment issues under Wine, and they fail the same way without the merge.That is also what my runs above used: #4 + #493 + #259, #177, #151, #178 (later also #489, #542, #638 and aycow/VIctory#3). I haven't tested which of the six are strictly required for the first frame.
AI-assisted (Claude Code).
@dcastell1 on GitHub · 2026-11-24 13:13 UTC · original
Windows 11 + RTX 5090 datapoint, in case it helps the "which stack, which wall" picture. Counts and screen labels only.
4740e19(the #185 merge intoffe310e, aycow/VIctory#4) plusMIN_DYNAMIC = 1 << 18from #747,cargo build --profile diag -p victory --features diagnostics, Rust 1.98.1, MSVC 14.44.35207.cargo test --workspaceon4740e19: 384 passed, 0 failed, 9 ignored.victory.exe run <pkg>\game_scarlett_master.exe --executewithVICTORY_CAPTURE,VICTORY_DUMP_TARGETS=1,VICTORY_GPU_TIMING=1,VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_D3D12_DRED=1.Result: the title presents at 30.0 fps / 33.3 ms/frame from the start, 5.8-6.5 GB working set, 13-66 draws/frame depending on the screen, and walks the first-run screens on its own: accessibility → player selector → legal/copyright → legal consent (both read back from the captured frames with Windows OCR, so they are identified, not guessed).
frame-512of one run had 188,818 distinct colours, so the content is real.Where it stops: the legal consent page. The window can hold the foreground, and
Downheld for 8 s scrolls the notice and moves the selection (so the keyboard device is consumed), but neitherVICTORY_KEYSEnter (4 s cadence, 15-300 s, plus 20 Downs) nor nativeSendInput(1.5 s and 3 s holds) activatesConfirmar. Forcing the stand-in pad to exist unconditionally (gameinput.rs:461) changes nothing, so on this title the pad path is not what the UI reads for accept; that half is in #197.Note on captures:
VICTORY_CAPTUREneeds thediagprofile (the release build has nodiagnosticsfeature and writes no frames), and with the monitor off a GDI window capture comes back black — the in-process frames are the ones that carry content.@dcastell1 on GitHub · 2026-11-24 13:31 UTC · original
For the
fix/185-merge-mainbranch (4740e19, desplmfao):cargo clippy --workspace --all-targets --locked -- -D warningsfails on it, so CI would not let it in as it stands.host.rs:1385isfn refresh_across(per: &[(Arc<crate::shadow::Shadow>, Vec<(usize, usize)>)]), and:1493builds the sameVec<(Arc<Shadow>, Vec<(usize, usize)>)>. Atype RefreshRows = Vec<(usize, usize)>;(or a small struct) used on both sides clears it;#[allow(clippy::type_complexity)]would too, but the alias reads better. Both lines are new relative toffe310e, so this is not pre-existing.Everything else on the branch is green here:
cargo test --workspacegives 384 passed, 0 failed, 9 ignored on Windows 11 10.0.26300, RTX 5090, Rust 1.98.1, MSVC 14.44.35207.AI-assisted (opencode): ran clippy and the suite on the merge branch on this box.
@neonbyte1 on GitHub · 2026-11-24 15:45 UTC · original
RTX 5090 + Wine 11.22: prologue reached; patched wineserver ~5.5× faster per world frame; NVIDIA hang (Xid 109) did not occur with submissions serialized
Setup
v3.1-83-gcae8353edand DXVKdxgi.dll, both from GE-Proton11-14, in a dedicated prefix.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n".VICTORY_CAPTURE), and input fromVICTORY_KEYS.main@ffe310eplus #190, #217, #347, #322, #454, #493, #579, #177, #259 and #542, merged locally (0f70ec9). Two small local fixes on top:resource::trackwith the old signature;stub_pipeline_is_createdskips its hash-refusal half under Wine.Test suite under Wine
The Windows test binaries, cross-built and run under Wine with the same vkd3d-proton:
Each GPU was isolated with
VK_DRIVER_FILES.Setup notes
dxgicrashes inwined3don the first present with vkd3d-proton; DXVK'sdxgi.dllis required.VK_DRIVER_FILESrestricted to one GPU, DXVK reported "No adapters found" untilDXVK_FILTER_DEVICE_NAMEwas set.d4111a6e6ea49d91, pixelc0a7fe77b1862e10) crashes invkCreateGraphicsPipelines. The log shows "dxil-spirv: Failed to find a common merge point" just before the crash. GE-Proton11-14's build fixes it, matching #752.vkCreateComputePipelines, as in #144. With #177, #259 and #542, no pipeline creation crashed.Results on the RTX 5090
Settings for the runs below:
VICTORY_NO_WATCHDOG=1,VICTORY_SHADER_LOOP_LIMIT=256,VICTORY_SKIP_PIPELINES=04b9be3756e8f41c.Xid 109 CTX SWITCH TIMEOUT(nv-2 ran without the loop limit and the skip)Xid 109 CTX SWITCH TIMEOUT0x80000003at+0x63966f; no XidWhat this shows:
VICTORY_GPU_TIMING=1(each list submitted alone and waited for) hung. In nv-2 and nv-3 the shaders first bound just before the hang had nothing in common, which points at overlapping work rather than one shader. That is two runs each way, so it is not proven yet.wineserver view-tree patch, in the game
This is a cleaned-up version of the patch in this thread, rebased on Wine 11.22. The views stay in a list, and a red-black tree keyed by base address handles
find_mapped_view,find_mapped_addrandis_valid_view_addr. Onlywineserverwas swapped between nv-4 and nv-5; everything else was identical. Medians of VIctory's frame summary lines, grouped by time since the game started:copiesms counts some refresh flushes twice:Step::Copyadds a flush's time thatBatch::flushalready added (host.rs:1171,1179,1226). Both runs share this, so the ratio holds, but the absolutecopiesfigures are too high.Microbenchmark: a MapViewOfFile/UnmapViewOfFile pair, with N other views kept mapped (20,000 pairs per row):
Wine's
ntdll:virtual,ntdll:info,kernel32:virtual,kernel32:loaderandkernelbase:processtests pass with the patch.ntdll:exceptionandkernel32:processfail identically with the unpatched server.wineserver patch (Wine 11.22,
git am-able; tests above run with it)No game data attached.
@neonbyte1 on GitHub · 2026-11-24 16:23 UTC · original
@ajsem1337 the wineserver view-tree fix is your idea and your first patch, so please take it to Wine as you planned. You're welcome to use the version in my comment above (Wine 11.22, without the
in_treeflag, overlap check relying on views never overlapping) and any of the numbers:ntdll/kernel32virtual and loader tests.I won't be submitting it to Wine myself.
@ajsem1337 on GitHub · 2026-11-24 17:06 UTC · original
@neonbyte1 thanks, done. Here is where it went:
cachyos_11.0_release/dev, credited to you.Map/unmap pair cost with N other views mapped, same tree with only
wineserverswapped:On the CachyOS branch,
ntdll:virtual/info/exception,kernel32:virtual/loader/processandkernelbase:processgive the same results with both servers: same counts and the same pre-existing failures.AI-assisted (Claude Code).
@pablogonz12 on GitHub · 2026-11-24 20:12 UTC · original
One more item for the Linux/Proton notes: a Vulkan implicit layer left installed for frame capture is enough to make the title crash under Wine, and it is easy to blame the build instead.
Here RenderDoc's layer (Arch
renderdoc 1.46, installed as an implicit layer under/etc/vulkan/implicit_layer.d/) crashed every game run 1-44 s in (first-chance 0x80000003, then an access violation). An isolated Wine prefix alone did not help. WithVK_LOADER_LAYERS_DISABLE=*renderdoc*set, a 120 s smoke run and a 25-minute run were clean (no device removed, no crash).So the check worth adding to the docs: before reporting a Wine crash, look at
/etc/vulkan/implicit_layer.d/and/usr/share/vulkan/implicit_layer.d/and run once withVK_LOADER_LAYERS_DISABLE=*renderdoc*(or with the capture package removed). Processes inside Wine pick up the host's implicit layers.Setup: RX 9070 XT (RDNA4, RADV), Mesa 26.3.1, Ryzen 9 9900X, 30 GB, Arch Linux, GE-Proton11-14, vkd3d-proton master. Not tested: other capture layers (Nsight, apitrace), other distros, NVIDIA. (AI-assisted; numbers from my own runs.)
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original · edited 2026-11-25 21:44 UTC
Automated triage for the maintainers.
This is a request to document and track running the Windows build under Wine/Proton. The project's stated scope is Windows hosts: the README lists Windows 10/11 x64 as the requirement, and neither the README nor the docs in
mainmention Linux, Wine or Proton. Because this runs the unchanged Windows build rather than porting it, it is not a port to another platform. Whether to carry an experimental Wine recipe and compatibility matrix is left to the maintainers.This thread already collects the Wine/Proton results:
main940d32freaching the first-boot screens at 30 fps on an RX 9070 XT, and the first mission's cutscene drawing with open PR #1279 (the indirect argument clamp, #170)New: an RTX 4070 Ti (620.73.04, Wine 11.22) now runs past the NVIDIA pipeline-creation crash of #144 with two pieces: vkd3d-proton built from master (the old dxil-spirv structurizer bug, outside VIctory) and open PR #2723 (heap handle caches keyed by element type). On
main13f91ca+ #2723 with the shader cache warmed bytranslate --cache, the run went about 8 minutes without a crash, at a median of about 1 s per frame, with lit surfaces still black as in other reports. A run on a third-party fork reached gameplay; that fork cannot be checked from this tracker. The reporter also notes thattranslate --cache --pipelinesgrew to about 27 GB of RAM on a 32 GB machine and was killed, and that its pipeline library is only written at the end, so a rerun starts over; that would be best filed as its own issue if it reproduces on Windows.#394 asks the same question and points here. Related: #90 (native Linux build of
main), #144 (NVIDIA under Wine, crash invkCreateComputePipelines), #170 and #698 (the title's own0x80000003after about 7 minutes).Generated by Claude Code
@ntgata1-dotcom on GitHub · 2026-11-25 08:01 UTC · original
Current
mainon RDNA4 under Wine, with no PRs applied: menus at 30 fpsSetup
d3d12,d3d12core) and DXVK'sdxgi, both from GE-Proton11-14.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n",VK_LOADER_LAYERS_DISABLE=~implicit~, andVKD3D_FILTER_DEVICE_NAME/DXVK_FILTER_DEVICE_NAMEset to the dGPU (this box also has an iGPU).main940d32f, release build, cross-built with cargo-xwin 0.24.1 and Rust 1.98.1. My own Series 1.0.2.1 copy.Title, menus only (no input, 240 s)
--execute: the exe and its four DLLs bind with 0 missing imports.--execute: it boots to the first-boot screens (narration, player picker) at a steady 30.0 fps. That's 33.3 ms per frame, 1.4–1.5 ms of it on the GPU, with 21 draws per frame and none dropped.crashes.logentry, and no amdgpu messages in the kernel log.Test suites under the same setup (
cargo xwin test, runnerwine)load_probe, which runs the Linuxcargofrom inside Wine (#989).indirecttests (#170, #1279)draw/bindlessroot-signature tests and thememoryresource-array test (#2196)WSAConnectByList, the temp folder isn't on NTFS, WARP is a hardware adapter under Proton, and a zero digest is acceptedNot tested: getting past the first-boot screens, the world, the patched wineserver, any open PR.
AI-assisted (Claude Code); numbers from my own runs.
@ajsem1337 on GitHub · 2026-11-25 11:00 UTC · original
Linux/Proton world-frame profile and write-tracking results
I used a diagnostic build of
940d32fwith #1849, which addresses a world-load stall observed on Wine. The runs used an RX 7900 GRE with RADV and Resizable BAR, Proton-CachyOS with the wineserver view-tree patch, and a warm shader cache.The prefix contained Microsoft's desktop
d3dcompiler_47.dllwith thenative,builtinoverride. The data-flow logs contain neitherE5005norno argument clamp. Run C3 logged 20 shader translation failures (16 compute, 4 pixel) and 70 per-frame counter lines for indirect calls dropped withno host pipeline. The world remained black.Across the steady-state windows of the three guard baseline runs, median frame times ranged from 0.83 to 1.15 s. In A2, the medians were 833 ms per frame, 510 ms preparing (42 ms in the copy-move counter), 168 ms on the GPU, and 101 ms copying back. The log recorded about 7,700 protection calls, 7,900 page openings, and 75 ms of watch queries per frame. The guard handler accounted for 146 ms of thread time, including 27 ms of lock wait.
In a standalone Proton test, 64 KiB copies into a D3D12 UPLOAD buffer placed in CPU-visible VRAM reached 2.79 GB/s with
ReadProcessMemoryand 11.31 GB/s withmemcpy. At 512 B,ReadProcessMemorytook about 2.32 µs per call. Wine probes the destination before copying. VIctory's deferred scratch fill uses this API. The Wine side is reported with a standalone reproducer as Wine bug 60876. Scratch fill · ReadProcessMemory callWrite-tracking experiments
BeforeRefreshwrites by one submission and shared the guard path'sBeforeTakenloss. The guarded copy-back reproducer kept every marker in title memory while the host copy missed 32 of 32 markers per seed on both tested builds. Details and the reproducer: #2009.The wineserver view-tree work is tracked in #2082 and Wine bug 60868. VIctory #2082 · Wine bug 60868
Measurements and analysis were done with AI assistance (Claude Code and Codex) on my machine. The figures come from recorded runs.
@ntgata1-dotcom on GitHub · 2026-11-25 16:54 UTC · original
Update: the world draws under stock Wine with #1279
A follow-up to my data point above, on the same setup: RX 9070 XT, RADV, Wine 11.22, GE-Proton11-14's vkd3d-proton and DXVK
dxgi, and Wine's ownd3dcompiler_47. With #1279 rebased ontomain(the branch is linked there), the first mission's cutscene draws instead of staying black. That's 2,954 draws a frame on average against 541 onmain, and 9 indirect executions dropped a frame against 3,400. Details and the comparison: #1279Still open on this setup:
0x80000003after about 7½ minutes (#698).AI-assisted (Claude Code); numbers from my own runs.
@andyeox-systemd on GitHub · 2026-11-25 19:40 UTC · original
NVIDIA under Wine: reaching gameplay (RTX 4070 Ti)
Following up on my #144 crash reports, with a working recipe and the remaining limits.
Setup: RTX 4070 Ti (12 GB), Arch Linux,
nvidia-open-dkms620.73.04, kernel 7.3.6, Wine 11.22, DXVK 3.1.1.What made the difference
71cae091, "Remove the legacy structurizer entirely"). With 3.1 and earlier, dxil-spirv's old structurizer turns three of the title's compute shaders into invalid SPIR-V (spirv-val: "Function end cannot be called in blocks", "block exits the loop headed by…"), and NVIDIA's compiler crashes on them invkCreateComputePipelines. Microsoft'sdxvaccepts the DXIL, so this is a converter bug, fixed on master and not in a release yet.main, a UAV read as float and also used by an atomic shares one handle, which gives an invalidAtomicOr/AtomicUMaxand the same crash. That's fixed formainin #2723. DexNom's fork already keys its handle cache by both property words, so it doesn't need that patch.victory.exe warm <game folder>first (25,745 shaders and 2,700 compute pipelines in about 8 minutes) avoided that.Result (DexNom's fork at
2e01ab4, Series X, warm cache): about 16 minutes with no crash, and I stopped it myself. It played the intro, opening credits and cutscenes with audio and subtitles, then reached the first gameplay section, with a tutorial prompt and the player in control. Every dumped shader validated withspirv-val(1,103 of 1,103 on the earlier cold run).Limits
--console series-swith this setup yet.AI-assisted. No game data or screenshots attached.
@andyeox-systemd on GitHub · 2026-11-25 20:12 UTC · original
Follow-up: same setup (RTX 4070 Ti, 620.73.04, Wine 11.22, vkd3d-proton master
71cae091, Series X), but upstreammain(13f91ca) + #2723 instead of DexNom's fork. I warmed it withvictory.exe translate --cache <game folder>(shaders only).main+ #2723, shaders warmedNo crash. Audio was continuous, and there were fewer stalls. The rendering gap is the same: light sources, emissive surfaces and some shadows draw, while lit surfaces stay black. The runs covered different scenes and lengths, so this is a first comparison, not a benchmark.
Note:
translate --cache --pipelines(all 27,160 pipelines) grew to about 27 GB of RAM, and the OOM killer stopped it at 62% on a 32 GB machine. The library isn't saved before the end, so a rerun started from 0. Shaders-only warm-up was enough.@cobrajet302gt on GitHub · 2026-11-26 16:10 UTC · original
Linux/Wine tester here — this path has been running on one box for 45 consecutive boots (RTX 5080, Linux/Wine), so here is a field report on what #3291's guide will want to cover, all measured on the same Wine-modality stack it describes.
Headline result: 30 fps through the whole front-end (account picker, wizard pages, legal notices, first-run setup, SETTINGS), 45 boots, zero first-chance faults and zero device removals on
victory.exeunder Wine with vkd3d-proton supplying D3D12 and DXVK supplying DXGI. World entry is the wall we're pressing on now; the front-end itself is stable at full rate.Five things that cost us real time and are not (yet) in the guide:
Headless displays report 0 Hz and one DXGI build dies on it. On Xvfb (1920x1080 @ 0.00 Hz), Proton 11.0's bundled (Valve-fork)
dxgi.dllfaults0xc0000094(integer divide by zero) in the secondCreateSwapChainForHwnd; stock DXVK 3.1.1'sdxgi.dllhandles the 0 Hz mode fine.dxgi.forceRefreshRate=60did not help on the bundled build. So the guide's "Wine's own DXGI crashes in wined3d on the first present" is one of two known DXGI failure shapes on headless Linux — worth listing both, since the crash offsets differ. Related: keepWINEDLLOVERRIDES='d3d12,d3d12core,dxgi=n,b'complete — omittingd3d12coregives the wine-builtin stub abort (unimplemented function d3d12core.dll.D3D12GetInterface), and never deletelibvkd3d-1.dll/libvkd3d-proton-x64.dllfrom the prefix — wined3d imports them.The account picker needs a console-kind pad; keyboard input is inert there. Under headless Wine the title sits on the account picker facing scripted keyboard input (
VICTORY_KEYS) indefinitely — the HLE merges scripted keys into already-connected gamepads, and the picker is a console-pad-gated screen (XUserAddAsyncoffline-signin path). With a console-class pad enumerating in slot 0 the picker crosses on the firstA. A tester following the guide with a keyboard-only session will read this as a hang: it is a wrong-input-class park, zero errors in the log. Worth a prominent note; a controller is effectively required hardware for the documented path.VICTORY_CACHE_DIRentries are keyed by the data-dir path. RotatingVICTORY_DATA_DIRto "clean state" silently cold-boots the pipeline cache (theshaders from the cacheline flips tohits=0 misses=Neven with the cache dir unchanged), costing ~6-10 minutes of compiling before the first present — which headless looks exactly like a hang. Treat the data-dir + cache-dir as one warm pairing; read the hits/misses line when a boot is slow. The same applies to rebuilds: one of the title's DLL names derives from the build hash, so a new exe can invalidate entries keyed to the old one.Pin the GPU in both layers, and prove it from the title's own budget line. The device is created on the default DXGI adapter, so iGPU boxes silently attribute runs to integrated graphics; set
VKD3D_FILTER_DEVICE_NAMEandDXVK_FILTER_DEVICE_NAME, and aFound device:enumeration list in the log is enumeration, not selection. The durable check is the earlyvideo memory as the system counts itbudget line — its numbers name the actual card.Diagnostics-build gating. On some trees
diagnosticsis not a default feature and a plain release build compiles the input/capture switches out silently — the run looks fully alive (VICTORY_RELAYand the fps lines survive) whileVICTORY_KEYS/VICTORY_PAD/capture are inert. Three facts to check before any input-driven session: sha256 of the exe changed as expected, target isx86_64-pc-windows-gnu, andstrings -a victory.exe | grep -c VICTORY_KEYSis nonzero.One confirmation for #340's tracking: our experience matches the guide's warning that older vkd3d-proton (Proton 11.0's bundled set) fails at first-world-pipeline creation; we moved to a self-built master vkd3d-proton early and it has been stable since, which corroborates the GE-Proton11-14 DLL recommendation from a different prefix entirely.
Disclosure: our runs use a locally-assembled tree (current
mainlineage + PRs #1763 and #2178 applied locally + one local scripted-pad commit,--profile diagbuild), Proton 11.0'sfiles/bin/wine, stock DXVK 3.1.1dxgi.dll, self-built vkd3d-proton masterd3d12/d3d12core, warm data/cache pairing. Happy to re-run anything against the guide's exact GE-Proton11-14 recipe as a controlled A/B once it merges — the guide's path and ours differ mainly in which DLL set is dropped in, and both reach 30 fps menus with zero removals, which is the main compatibility claim either way.