Linux (Proton/vkd3d-proton): console vtables swapped in place break vkd3d-proton's type checks; shared fences hang; the newer retail title then runs at ~0.5 fps #1701
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1701
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?
@EliasTX09 on GitHub · 2026-11-24 19:25 UTC · original
Game and package version: the newer retail game from the README table (, v1.0.2.1)
XCL version:
9e3831e(main, 2026-11-24 18:06), cross-built on Linux withcargo xwin build --release --target x86_64-pc-windows-msvcGPU and driver: AMD Radeon RX 9060 XT (RDNA4), Mesa/RADV 26.2.6
OS: CachyOS, kernel 7.3.4. Not Windows: Proton Experimental 11.0 (20261027b), started with its
winedirectly,WINEDLLOVERRIDES=d3d12=n;d3d12core=n;dxgi=n, DXC 1.9.2609, libopus from MSYS2. No network (unshare --net).I know Linux is not a target (design spec §2). I'm reporting this because people already run XCL under Wine, and three of the four problems below come from one design choice (lpVtbl swapped in place), not from Wine itself.
What happens, in order
lpVtblof the runtime's own objects (real.rs, the console vtables "under the guard"). vkd3d-proton checks it:Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 1077Proton's builds keep asserts enabled. I worked around it with vkd3d-proton 3.1 built with
-Db_ndebug=true.d3d12_command_allocator_from_iface()(command.c) returns NULL when the vtable is not its own, soResetlogsInvalid command allocator.and the title hits an int3 (rax=0x80070057). Patched locally to skip the vtable comparison.d3d12_command_list_from_iface()accepts only vkd3d's own command list vtables and returns NULL, andvkd3d_submission_has_query_reset_hazarddereferences that. Patched locally the same way.D3D12_FENCE_FLAG_SHARED. vkd3d-proton makes thosed3d12_shared_fenceobjects and tells them apart fromd3d12_fenceby vtable (is_shared_ID3D12Fence1). After the swap it treats them as plain fences. Wine logserr:winevulkan:signaller_worker wait timed out with non-empty poll list. The kernel shows no amdgpu timeout. Fixed without any patch byVKD3D_CONFIG=ignore_shared_fence.After that the title runs through intro and menus without a crash: 169 presents, exit code 0. It is very slow: ~0.5 fps.
Where the time goes (Series X mode, second run)
From
sparse windows timingafter ~65 s:write-watch 18384 ms (10199799 dirty pages), lock wait 1 ms, chunk scan 101 ms, upload 11355 ms (38664 runs), 42 presents in ~89 s.Wine's write watch itself looks fine. A test exe under the same Wine (1 GiB,
MEM_WRITE_WATCH,GetWriteWatch(WRITE_WATCH_FLAG_RESET)in 16384-entry calls liketake_written) reports 262144 pages in 4.7 ms, 0 on the next look, and exactly 4096 after writing every 64th page. Wine logsUsing kernel write watches.(userfaultfd). So it is ~18 ns per page in isolation, but ~1.8 µs per reported page in the title.With
device_type = "lockhart"andraytracing = "off"(1920x1080 swap chain) the write-watch time drops (5.9 s / 7.26 M pages after ~94 s), but the upload grows to 54.7 s (98648 runs) in the same time.Also listed at exit: unimplemented console methods
ID3D12CommandAllocator::#9(70×),ID3D12GraphicsCommandList10::#126,#142,#75(69× each),#131,#132,ID3D12CommandQueue::#31(newer layout, 17×).Suggestions (for the maintainer to judge)
under_wine()), XCL could clearD3D12_FENCE_FLAG_SHAREDin CreateFence, or documentVKD3D_CONFIG=ignore_shared_fence. A small change, and it removes the hang.Not tested
Windows (I have not run this commit there), NVIDIA, other titles under Linux. The vkd3d patches are local hacks to see how far the title gets, not proposed changes.
AI use: the investigation, local patches and this report were done with Claude Code (Claude Opus 5.5) on my machine. I checked the runs and numbers above myself.
report.jsonandxcl.logof the last Series X run are attached. User names are edited out.