Linux (Wine + vkd3d-proton, RX 9070 XT): Windows-level frame times on 32 GB of RAM, with a patched wineserver #111
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#111
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?
@Fran-co-F on GitHub · 2026-11-26 03:56 UTC · original
A report for anyone who wants to run this fork on Linux: what it takes, what it measures, and what is still wrong.
Setup
e2a28ec, cross-built withcargo xwin build --locked --profile diag -p victory --features diagnostics --target x86_64-pc-windows-msvc.ec20719, dxil-spirv7c048638with local patches, including therewrite_multiple_back_edges()fix; edited: this said "master". Without those patches use dxil-spirvb540c8aor later), DXVK 3.1.1dxgi, Microsoft's x64d3dcompiler_47.dllnext tovictory.exewithd3dcompiler_47=n,b. Without it the layer's owncs_5_1shaders don't compile.scripts/play.ps1, set by hand in a shell script. Series X profile.The one thing that matters: wineserver. Stock Wine spends seconds per frame with the GPU idle and
wineserverat 100% of a core. It keeps each process's mapped views in a list, and this layer maps and unmaps a lot of views per frame. CachyOS/wine-cachyos#50 (Wine bug 60868) keeps them in a tree. Only the server changes, so it can be built from the Wine source of the same version and started before the title (wineserver -p). Wine tries thewineservernext to its own binary first and falls back toWINESERVER, so a pre-started server is the reliable way. On another VIctory fork the same change took a frame from 1–3.5 s to 115–200 ms.Results (prologue street scene, ~3,000–5,000 draws/frame)
victory replayof one frameVICTORY_GPU_TIMING=1, card time per frame-RayTracing, ~164–205 ms with itOn RAM: Windows charges commit for everything that is reserved and committed, which is where the 64 GB recommendation comes from. Linux only backs pages that are touched. One session of ~5 minutes, so longer ones may need more.
Known problems on Linux
VICTORY_LAND_ECHO=0was not enough here. #13 reports thatVICTORY_RELAY=1 VICTORY_CARD_STEPS=0brings faces back at a cost in speed; I haven't tested it yet.-RayTracinggives a black picture (VICTORY_RECORD). Without the recorder, ray tracing displays fine. The recorder's replay also leaves out lists sent to other queues ("806,396 times" innotes.txt), so ray-tracing passes on async compute aren't in a replay.RADV_THREAD_TRACE_CACHE_COUNTERS=false, or the fork's replay instead.Why Linux may end up the better platform: on Linux the title's memory can live in VRAM at its own addresses. That removes most of what "preparing" spends its time on (#95). For the ray-traced passes, see #110.
@ArturoWolff on GitHub · 2026-11-26 04:33 UTC · original
Independent confirmation of the mapped-view scaling problem, without the game or a GPU. This is a stock-runtime reproduction on the original GE-Proton11-14 runtime used in our RTX 4060 / 16 GB Linux tests, not a measurement of the patched server yet.
Thanks to Fran-co-F for this lead, and to ajsem/neonbyte1 for CachyOS/wine-cachyos#50, whose actual tree-index commit is
fd66dbca8eb0754839ca974e45b5ea446ca62d2f. The change keeps the ordered view list and explicit overlap/address checks, updates the cleanup path, and adds a tree for lookup. I inspected that specific four-file change rather than the entire PR's branch delta; semantic equivalence is not established by this probe.Why the lead matters on this machine. Two prior runs of our private
fxcelessreceiver with the native pipeline-library fix had early loading frames with 54,051 and 55,379 remapping calls, spending 13,206.5 and 10,032.3 ms in the remapping timer. The corresponding reader-lock wait was only 0.1 ms in each, with no or negligible copy work. The receiver'sT::RemapUscovers the full remapping critical section, not solely the Win32 calls, and is not generally an exclusive frame-wall-time metric. That is why I isolated the Win32 path outside the title before changing any synchronization.Fixture: Ryzen 5 5600, Linux, file-backed physical sections on Btrfs, unchanged GE-Proton11-14 Wine 11.0 (Staging), Rust 1.98.1 Windows GNU-LLVM release test. GPU devices, display and title absent. Independent copies of an initialized prefix, no external networking, guarded scopes. Both modes in one identical synthetic test executable:
VirtualFree(...MEM_PRESERVE_PLACEHOLDER)split +MapViewOfFile3(...MEM_REPLACE_PLACEHOLDER)+UnmapViewOfFile2(...MEM_PRESERVE_PLACEHOLDER)on a 64 KiB page from a private file-backed section.XMemMapPhysicalPagesmap and unmap on the51700c6d-based fxceless receiver (with #885 retained; test-only probe, no changes to mapping implementation). Same Win32 operations plus the receiver's bookkeeping.For each density, 5 batches of 2,000 pairs, with that many additional distinct 64 KiB physical-page views held mapped in the same process. The background pages are unique slices, not aliases of one page. Each measured pair checks and increments a word that must survive unmap/remap; the held-page markers are also checked. Setup, 128 untimed warmup pairs per density, and teardown are excluded from timed batches. A start/end acknowledgement lets the harness sample CPU ticks of the same private wineserver process outside each timing interval.
Each CPU/wall figure is the sum of server CPU time divided by the sum of timed wall time across all five batches of that density (
/procticks, 100 Hz), not whole-machine utilization or an additive share of the render frame. At 50,000 views the raw range was 331.8–342.0 us/pair, the HLE range 224.0–253.9. The synthetic tests each reported1 passed; 0 failed; 0 ignoredafter explicitly selecting the normally ignored probe: 40,000 measured pairs plus 512 warmup pairs per mode, all 50,000 held pages checked and released. No host OOM or guard stop. Peak scope memory 3,537 / 3,664 MiB, peak scope swap 210 / 0 MiB. No VRAM or game measurements in these probes.Conclusion: the cost rises substantially with live-view count even without the emulator bookkeeping, any texture uploads, GPU fence waits or game data. The server accounts for most of the observed high-density pair time; this corroborates the Wine-side bottleneck, on the runtime actually used in our local slow runs. Raw was run first and HLE second; the cross-mode timing difference is not evidence that HLE is faster. The real game's live view count and per-operation mix still need measurement, so multiplying these numbers into a frame-time prediction would be unjustified.
The next worthwhile comparison is this same bounded fixture with a properly source/version-matched stock vs tree-index server, followed by a retail run only after the mapping and Wine compatibility checks pass. GE-Proton applies a substantial Wine/Staging patch stack on top of its pinned Wine submodule; I have not treated a matching version string as proof that a server built from another distribution is interchangeable. No changes to host Wine, Steam, or the running game environment made here.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@bordersky on GitHub · 2026-11-26 05:02 UTC · original · edited 2026-11-26 06:07 UTC
Another Linux data point, on an RX 7900 XT, including the ray-tracing builder.
Setup: RX 7900 XT 20 GB (RDNA3), Ryzen 9 5900X, 32 GB RAM, Arch, Mesa/RADV, GE-Proton10-34's Wine with the same views-in-a-tree
wineserverpatch (Wine bug 60868) started before the title, vkd3d-proton master, Microsoft'sd3dcompiler_47.b0cfe2bcross-built on Linux with MinGW (x86_64-pc-windows-gnu,--profile diag --features diagnostics), plus theplaceholder()fallback from #59 (questions about holes went from ~13,000 to ~10 a frame).play.ps1settings withVICTORY_RELAY=1 VICTORY_CARD_STEPS=0 VICTORY_LAND_ECHO=0(#13, #59). Series X profile.Frame times, prison dormitory, same spot, cache warm:
VICTORY_BVH_BUILDER=1, all 53 builder programs (see #101)The same machine was at ~290-330 ms a frame without ray tracing on a Belobug-based tree, so this fork is about 3x faster here as well. With the builder on, interiors get their bounce light and shadows; no device removal or GPU page fault in the builder runs.
Things worth knowing on Linux:
b540c8a(in vkd3d-proton master71cae09and later) fixes it, as #59 also notes.VICTORY_RELAY=2drops the main characters' skin here too (as in #13);RELAY=1keeps it.@ArturoWolff on GitHub · 2026-11-26 05:08 UTC · original
Matched-source wineserver A/B: the tree-index change removes most of the mapped-view scaling cost here. Follow-up to my GE-Proton stock-runtime reproduction. This time I have tested the change itself, independently of the game, on the same Ryzen 5 5600 / 16 GB Linux machine.
Runtime identity. I used the installed Arch
wine-staging 11.22-1client and its Windows DLLs, rather than mixing a server from another build into GE-Proton. The package's exact Wine tag resolves to9f8c4ae4d35c7ff4153267aba9618c026f5f5583and the Staging tag to40ab84054fe2ead6c689de31405ba36269e9ee3a. Both source archive checksums match the package recipe, the recipe SHA-256 matches the cached package's.BUILDINFO, and its Wine, wineserver and Unix ntdll bytes match the installed files. I applied the recipe's full Staging patch set. The two server rebuilds, with the same GCC, flags andconfigure --enable-archs=x86_64,i386 --disable-testssettings, have byte-identical generated host configuration and server-protocol header (Staging protocol 980).Thanks again to ajsem/neonbyte1 for CachyOS/wine-cachyos#50, exact tree commit
fd66dbca8eb0754839ca974e45b5ea446ca62d2f. The private 11.22 adaptation changes only the four server files in that commit, retaining 11.22's existing zero-size, per-process page-alignment and overflow checks. No client changes. Candidate-only patch SHA-2566bdbba4d5589171e40ccedebde8a04754f8a896b6aa1929a516a24bbd3551752. Each test used a read-only private mount of the selected server, an independent copy of the same initialized prefix, and a start-identity and executable-hash check on the actual running server, not just an environment variable. The installed Wine and original GE-Proton files were not modified.Measured result (median microseconds per map/checked-word/unmap pair; same synthetic executable and density sequence as my earlier report, file-backed 64 KiB views):
At 50,000 held views: the stock/tree time ratio is 6.18x for raw (batch range 326.80–339.18 to 49.40–56.95 us) and 6.53x for the actual
XMemMapPhysicalPagesHLE path (353.95–415.44 to 53.34–56.74 us). The server's CPU time divided by timed wall drops from 83.72% to 28.21% for raw and from 79.97% to 27.20% for HLE. In a separate installed-package raw control, median pair time was 47.85 us at zero additional views and 217.15 us at 50,000. The package and rebuild have different binary/build histories; the causal comparison is the two identically configured local rebuilds, not that package-vs-rebuild difference.Correctness and boundaries. Five launches (installed raw, rebuilt-stock raw, tree raw, tree HLE, rebuilt-stock HLE), no GPU or title. Each passed 20 timed batches, with 40,000 checked pairs plus 512 warmup pairs, and checked/released the 50,000 held pages. All five Rust fixtures ended
1 passed; 0 failed; 0 ignored. In addition, the same small Windows API fixture passed before timing in each arm: main-image identity, ordinary DLL mapping/release, file names at the base/interior/last byte of 32 mapped file slices, removal and remapping in differing order, child process exit with 32 live views, and verification/cleanup of the parent's mappings afterward. This exercises both exact-base and containing-address view lookup paths; it is not a full Wine regression suite. All trials ended normally under the host guard, with the separately pre-started private server explicitly stopped and waited for at cleanup. No OOM/guard stops. Minimum available host RAM across measured arms was 8,342 MiB, peak trial memory at most 3,425 MiB, peak trial swap 2.1 MiB.The result supports taking this change into a matched-runtime retail comparison. It is not a measured game FPS improvement or a validation of a patched GE-Proton11-14 server. The 11.22 server must stay paired with its 11.22 client; the prior GE runtime has a different Wine/Staging build. Thanks also for the fresh appearance/save-state reports from Luigilt20 and bordersky. I will keep checkpoint state separate from the mapping-speed variable, and test lighting/skin independently rather than infer their correctness from faster mapping.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@Luigilt20 on GitHub · 2026-11-26 04:53 UTC · original · edited 2026-11-26 05:23 UTC
I tried the face workaround from #13 on a non-XT RX 9070 (16 GB, RADV 26.3.1), Ryzen 5 5500X3D and 32 GB RAM. Both runs used
0a43566, Series X, the same prison checkpoint, and Proton Experimental 2026-11-12 with the patched wineserver.VICTORY_RELAY=2,VICTORY_CARD_STEPS=2, vkd3d-proton2576c0bVICTORY_RELAY=1,VICTORY_CARD_STEPS=0, official vkd3d-proton CI build71cae091Both configurations kept
VICTORY_LATE_WAIT=0,VKD3D_CONFIG=descriptor_heapand native d3dcompiler_47. The two sessions used different camera paths and changed both the settings and the vkd3d revision, so these rates cannot isolate the effect of either change. The original report measured a street scene. AI-assisted local builds, input and measurement with Codex.Follow-up after bordersky's dormitory report. On the same RX 9070, we tested the original
b0cfe2b(MSVC build), standalone Wine 11.17 with the mapped-view tree patch, DXVK 3.1.1 and vkd3d-proton71cae091. We used all three settings from that report (RELAY=1, CARD_STEPS=0, LAND_ECHO=0), the RT builder off, and kept LATE_WAIT=0. In the prison cell, movement and camera rotation logged 206 swapchain Present calls in 79.66 s (2.59/s). The face skin was missing on this reload. The save folder was copied from a completed play session in another runtime where we had seen the face and walked into the corridor.This build retains the original placeholder query. The unmodified
holes_are_known_until_the_runtime_tellstest failed under our Wine 11.17 at the real-placeholder versus mapped-view check, before the ordinary-reservation check. Our result does not measure the speed of the fallback in #59. Thanks for documenting the scene and draw counts.github-bot referenced this issue2026-11-26 06:12:47 +00:00
@ArturoWolff on GitHub · 2026-11-26 05:46 UTC · original
The matched Wine 11.22 server-only comparison now reproduces the remap improvement inside retail loading, on an RTX 4060 / 16 GB Linux machine. This follows the source-matched synthetic test and the original stock GE-Proton reproduction.
Setup: Ryzen 5 5600, RTX 4060 8 GB, NVIDIA 620.73.04, 16 GB RAM and 47 GiB swap. Same installed Wine 11.22 Staging client in both arms, with the independently rebuilt stock and tree servers from my preceding comment (tree adaptation of ajsem/neonbyte1's
fd66dbca8eb0754839ca974e45b5ea446ca62d2f). Actual live server executable hashes verified. Same vkd3d-proton71cae091b06571eand DXVK DLLs. The receiver is our private fxceless #854 (51700c6d43a3507fa65e50fe4bb64074ce706cd4)-based integration, including the native pipeline-library correction; this is not a build of this 7900XTX fork. Full receiver patch SHA-256168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371; unchanged release diagnostics EXE SHA-2566d39ad4ee0e1a8eb0d4af63b3c86ae9854811970fe262640609e5e85ab211471. Series X, private 1920x1080 display and reported display mode, actual title presentation 3840x2160 in both arms. File-backed physical pages, texture no-wait on, paired waves on, levels-on-demand on, generation observer and material frame-shot off. Independent copies of the same prefix, original pre-checkpoint saves, translation/driver caches and 294,584-byte native pipeline library. Both confirmed that this library opened mapped. All starting manifests match; originals verified unchanged after the runs. The host-memory guard remained at 768 MiB available, and each run had the same 330 s scheduled stop. Before retail, each server passed three existing mandatory GPU fixtures (empty-library fallback, real mesh pipeline cache load, and sampled mip readback).Matched early loading observation (one launch per arm):
The remap timer drops by 79.8% (stock/tree ratio 4.95x). Not the same numeric frame ID or an identical complete workload, but a particularly useful comparison: exactly the same remap count, draw count and reported disk-read volume. Texture upload counts differed. The remap timer measures the whole critical section, including the reader wait; it is not generally an exclusive slice of frame wall. This is now a retail observation consistent with the controlled synthetic result, not a multiplication of the synthetic pair timings.
Progress and limits: in both arms I verified the same visible account picker and sent one controller A press/release there. At 37.95 s / 23.91 s from launch (stock/tree). Stock still showed the loading artwork at its last sampled frame, 324.10 s. Tree showed the opening scene title card at 99.15 s (75.24 s after A), subtitles at 107.68 s and intro credits at 202.67 s, but the world behind the subtitles and credits was black. The final sample showed graphic title/credit artwork rather than a recognizable live 3D world. At the last tree status line: 0.5 fps, 1,929.4 ms/frame, 510 draws/frame, 846 dropped without a host pipeline, 1,239 being made, 822 indirect drops. Neither run reached an all-made marker. We have no matched world-frame FPS comparison, no verified in-world control, and no lighting/face fix. Nonzero isolated game PCM: 12/21 vs 18/21 chunks; sound fidelity not measured.
Do not treat the higher memory figures as an isolated tree-index memory cost: tree progressed much further into the opening scene. Both trials ended by scheduled operator STOP, not host OOM or the memory guard. One NVIDIA kernel Xid 31 (MMU fault) was recorded for the tree run just before scheduled STOP (05:39:17.787 UTC; STOP at 05:39:18.381 UTC). No explicit device-removed result or unhandled exception in the retained application log. I cannot attribute that fault, or the earlier black world, to the server patch. The private services retired and the GPU was queryable afterward. This is not a stability pass.
The measured loading bottleneck is worth keeping separate from the unresolved rendering/per-frame bottlenecks. Thanks to Luigilt20 for the fresh prison reload report and to huihuihuha for the 8 GB NVIDIA report in #124: the latter's conservative-path combination is an interesting next correctness check, not yet reproduced here. I will not replace a GE-Proton server with this Wine 11.22 binary or claim an AMD/Windows result. No installed runtime, original saves or game assets changed or included.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@Beqren on GitHub · 2026-11-26 06:14 UTC · original · edited 2026-11-26 08:54 UTC
Same class of machine here (CachyOS, kernel 7.3, RX 9070 16 GB, RADV 26.3.1, 9800X3D, Proton Experimental with the view-tree wineserver), and two findings that may save other Linux users time. Code is now in #166 (it replaces #129); neither needs it to be confirmed.
1. If you see ~280 ms a frame with the GPU idle, look at "waiting for pipelines". On
85d5641with the play settings I got 279-292 ms a frame (the same on mainline Wine 11.17, so not a Proton thing) while the frame line accounted for about 50 ms. Every frame line said500.0 ms waiting for pipelinesand(6 being made): six compute pipelines never finish under vkd3d-proton (17829ac71aab4e8d,32ed072b9f845048,afeea48bbb9913ad,559d9f0184e15fe3,a1b20bc47e3c9597,e8c962358d862e3f: its DXIL converter recurses without end on a loop with two back edges and the worker thread dies), and each frame spends the whole pipeline-wait budget on them.VICTORY_PIPELINE_WAIT_MS=0alone took that build to 55-58 ms at 3,400 draws here, which is about what you report. So if your run did not have the six stuck, I would be curious what differs (vkd3d-proton master against Proton's?). With loops emitted single-latch under Wine the six build and the default budget costs nothing: 53 ms median.2. "Heads without skin" is a compute dispatch dropped before its pipeline exists. The title issues the pass that builds each head's blend mapping once. If its pipeline is not made at that moment the dispatch is dropped and the head never gets its skin, which is why it varies from character to character and run to run. Letting a compute dispatch wait for its own pipeline (outside the frame's budget, with a bound) brought heads back here. Faces then needed two more things under RADV: the format kind of views read through tables, and reading 16-bit integer typed loads after a group barrier through the raw view (the typed load could return a value from before another wave's store).
Also confirming from here:
VICTORY_BVH_BUILDER=1runs under Proton (pipelines=53, no fault), rooms are lit, glossy surfaces still show noise, about 180 ms a frame on this card.Only tested on this one machine. Done with an AI coding assistant and tested by me; the numbers are from this machine's logs.
@Luigilt20 on GitHub · 2026-11-26 06:32 UTC · original · edited 2026-11-26 06:48 UTC
I repeated the dormitory test on the non-XT RX 9070 (16 GB), Ryzen 5 5500X3D and 32 GB of RAM, starting with the setup bordersky posted. I found that my previous launcher forced
VICTORY_LATE_WAIT=0, which disabled the relay even withRELAY=1. These measurements use stage 3,CARD_STEPS=0,LAND_ECHO=0, and the RT builder off. The first table usesRELAY=1.I reproduced the face workaround from #13. With the old checkpoint I could see Lucia's hair, eyes and teeth. I set aside only the copied
SARC0015container and kept Player, settings and caches. After starting again, I could walk and turn the camera in the cell and see her full face.With GE-Proton 10-34, the patched wineserver, vkd3d-proton
71cae091, RADV 26.3.1 and a GNU diagnostics build ofb0cfe2b, I counted swapchain Present calls between timestamped screenshots during gameplay. Draw counts are medians of the sampled host reports.I also repeated the fresh start with the same GNU binary and
RELAY=2. The face stayed visible and Lucia reached the prison corridor. A view at 3,988 draws/frame gave 534 Presents in 59.95 s (8.91/s). A slightly different camera angle at 3,733 draws/frame gave 541 in 59.96 s (9.02/s).In a subsequent interactive session on the same machine, the desktop compositor showed the cell and the title counter at 10 FPS. I counted 575 swapchain Presents in 60.00 s (9.58/s) at a median 3,740 draws/frame with the controller connected.
For #59, this local Wine build exposes a private self-process query for its actual free-placeholder bit. The existing VIctory tests passed for replacement, unmap, ordinary reservation and concurrent mapping. In two similar window views under Wine 11.17, the original runtime reported a median 18,493 questions about holes per frame and the modified runtime reported 3. Those runs also differed in compilation and pipeline cache. AI-assisted builds, input and measurements with Codex.
@ArturoWolff on GitHub · 2026-11-26 06:34 UTC · original
Thanks to Beqren for identifying the six compute programs in #129 and to bordersky and Luigilt20 for clarifying the fresh-start versus checkpoint comparison. I checked that pipeline distinction against two retained RTX 4060 / 16 GB Linux runs, without another retail launch.
Five of the six actually get host pipelines here. Both runs used the same private fxceless
51700c6d43a3507fa65e50fe4bb64074ce706cd4-based receiver, including the native-library correction, the source-matched Wine 11.22 Staging tree server and vkd3d-proton71cae091b06571e. This is not a test of the 7900XTX fork or of Beqren's PR. I verified that the vkd3d source revision references dxil-spirvb540c8a2484eecc7c2155994c806bbd8a8706f41, the version bordersky identified.Seconds between the recorded events (first-bind to translation, then translation to host-pipeline success):
17829ac71aab4e8d32ed072b9f845048afeea48bbb9913ad559d9f0184e15fe3a1b20bc47e3c9597e8c962358d862e3fI checked the receiver's actual logging sites:
first bindis the title's request,shader translatedfollows a successful translation/cache retrieval, and the computehost pipelinemessage follows successful native pipeline load or creation. None of those proves dispatch execution. The remaining identifier has no translation completion, host success or explicit refusal in either record. The long first interval includes unmeasured worker scheduling and other work; it is not a measured translator or driver compile duration. Consequently the six permanently stuck pipelines are not reproduced as a group on this configuration. This does not isolate the vkd3d revision as the reason: hardware and the receiver differ too. The configured frame wait budget was 500 ms in both, and the reported accumulated pipeline wait in long frames from the first named bind onward had medians of 500.6 ms (67 records) and 500.3 ms (62 records). Neither run reached the all-made marker. I cannot assign those waits to any one shader.The single-switch follow-up to #124 did not establish a rendering fix. Same executable (SHA-256
6d39ad4ee0e1a8eb0d4af63b3c86ae9854811970fe262640609e5e85ab211471), source patch168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371, server, graphics DLLs, Series X profile, warm library/driver/cache seed and file backing as my preceding tree-server run. Separate copies of the same initial state, which contains noSARC0015checkpoint. One A at the same visible picker in each. The renderer setting changed wasVICTORY_TEXTURE_NO_WAIT; the newer run also had external kernel-fault observation. The original seed manifests still match.The matching early frames have six draws, 17 reads / 26.4 MB and 0.1 MB of buffer copies; their numeric frame IDs and texture uploads differ. The no-wait line count is a count of nonzero periodic reports, not a total of refresh operations. The cheap remapping survives disabling no-wait in this observation. Both arms show subtitles and credits over an absent world, with many pending pipelines. No gameplay control or corrected faces/lighting established; no checkpoint-specific face comparison. Isolated game audio had nonzero PCM in 18/21 and 14/16 chunks, respectively, but fidelity was not checked.
The prior run ended by scheduled STOP with the previously reported near-stop Xid. The latest run was stopped by the new external kernel-fault guard at the first observed DMA-mapping registration failure, rather than the host-memory floor or scheduled cutoff. Subsequent kernel assertions were also retained. No Xid or explicit application device-removal result in that arm, no host OOM, services retired. I cannot attribute either fault to the no-wait switch, the server patch, or one shader, and am not treating these as stability passes.
This makes measured worker queue/claim/translation progress and correctness of a once-only dispatch's readiness the next useful distinctions here, rather than assuming that all six are dead compiler workers or disabling all waits. The source comparison and these retained log results required no further GPU workload. No game assets, shader contents, captures or private logs are being attached.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
@jtrudeau1530 on GitHub · 2026-11-26 07:57 UTC · original
Confirmation on RDNA3 with stock Arch Wine 11.18: the tree-index wineserver takes the same build and switches from 4.9 to 13.4 fps.
Setup: RX 7900 XT, RADV, Arch, system
wine 11.18-1(unpatched by Arch), vkd3d-proton. The build is this fork's main (39031cb) merged into codec-d/cool_fox plus our local Linux switches (VICTORY_HOLE_SKIP, two frames in flight). The game runs inside a bwrap sandbox. Two consecutive 150 s runs, same build, same settings, opening of the story; only the server changed./usr/bin/wineserver11.18Synthetic map/touch/unmap of a 64 KiB section view (mingw test against Wine's own kernel32): with 50,000 other views held, the system server takes 217.5 µs/pair and the tree server 9.9 µs. With 20,000 held: 81.5 vs ~10 µs. The tree is flat with view count, as in ArturoWolff's numbers above.
Two Linux gotchas that cost me time:
WINESERVER=/pathalone does nothing on 11.18. ntdll'sexec_wineserver(dlls/ntdll/unix/loader.c) tries/usr/bin/wineserverfirst and only falls back to$WINESERVER. Either start the patched server first (wineserver-tree -p, sameWINEPREFIX), or, if you sandbox with bwrap, bind it over the system one inside the sandbox only:--ro-bind /path/wineserver-tree /usr/bin/wineserver. That's what we do; the system package stays untouched.fd66dbcadoesn't apply cleanly to 11.18. Here it is re-applied by hand toserver/file.h,mapping.c,process.c,process.h: same logic, +56/-21, keeps 11.18's ownprocess->page_sizecheck inis_valid_view_addr. Protocol version stays 962, so it pairs with the stock 11.18 client. Build only the server:./configure --enable-archs=x86_64 --without-x ... && make server/wineserverfrom thewine-11.18tag.tree-index patch for Wine 11.18 (adaptation of CachyOS/wine-cachyos#50, fd66dbca)
(AI-assisted with Claude Code on my machine: the build, the patch adaptation and the runs.)
@jtrudeau1530 on GitHub · 2026-11-26 09:09 UTC · original
Linux/AMD recipe that currently gives us ~16 fps (diag) / ~20 fps (release) in the prologue, RX 7900 XT, 32 GB.
Branch: jtrudeau1530/VIctory-7900XTX
linux-amd-best(3241322). It's main0ce46d5+ #162 (pipe fix) + our remaining Linux switches, all off by default unless set:VICTORY_HOLE_SKIP: write-watch questions about placeholder holes answered from the runtime's own records. ~16k VirtualQuery a frame → ~230.VICTORY_MATERIAL_DEMAND: DexNom's material-driven texture order.VICTORY_AMD_PICKS: the image_sample_ovariants.Steps, each measured separately on this machine (150-180 s runs, opening of the story, same spot):
VICTORY_PIPE_FIX=1(#162): without it, 3.4 fps with 500 ms/frame waiting for pipelines. That is the dxil-spirv stack overflow on 6 shaders.VICTORY_HOLE_SKIP=1 VICTORY_SUBMIT_FRAMES=2 VICTORY_SUBMIT_DEPTH=128: about +7%.VICTORY_AMD_PICKS=1,VICTORY_MATERIAL_DEMAND=1,VICTORY_BVH_QUARANTINE=1: about +5-10% each.Full switch set used:
Known on this setup:
VICTORY_PORT_CONSTANTS=1→ black world (#163).VICTORY_HEAP_WORKER(ported locally) makes no difference in the standing prologue scene (0.3 ms of textures a frame); walking runs are in progress.(AI-assisted with Claude Code; all numbers from runs on my machine.)
@UwUCammie on GitHub · 2026-11-26 10:02 UTC · original
I ran
3241322on a second RX 7900 XT with a 9700X, RADV 26.3.1, Wine 11.22, the tree-index wineserver and vkd3d-proton 3.1. I used the posted release settings and the Series X profile. The benchmark build enables timed input in release and counts accepted presents. Each pass used the same starting save and caches. I checked the diner from the front, then counted the first room from 145–183 s.FETCH_CHECK=1RELAY=1 CARD_STEPS=0The two faster runs showed hair and teeth with the face and neck missing in the diner. With
FETCH_CHECK=1, the check was active during that exchange and caught mismatches. The seated character and server still had exposed teeth and eyes. The stage-one fallback had the same missing skin in the same shot. All three completed the 190-second run on this machine. The first-room numbers exclude the startup menus.Two five-second window samples on the published settings changed 15.91 and 16.11 times/s. Both samples of the stage-one fallback changed 11.88 times/s. Settings and measurements · Replay build source
@jtrudeau1530 on GitHub · 2026-11-26 10:14 UTC · original
@UwUCammie thanks for reproducing it on a second card. ~16 fps matches what I see in the same room.
On the faces: on my side the diner faces are complete (skin, face, neck, waitress and Lucia) with the same settings, in diag runs of
3241322and830dc19. The difference I can see is how the run starts. Mine start the story from the opening every time (the runner presses A through the menus; no checkpoint is loaded, although the data dir does keep a profile and an earlier save), while yours start by loading a save. That matches bordersky's correction in #67 that loading any checkpoint loses the faces, independent of the relay setting. Your RELAY=1/CARD_STEPS=0 pass also lost them, which points the same way. So I'd treat it as a save/checkpoint-load bug rather than a RELAY=2 one. If you can, one pass that starts the story fresh would confirm it.Since the post,
linux-amd-bestmoved to830dc19: fxceless'sVICTORY_HEAP_WORKER(#1007 there). It doesn't change the standing room, but walking it's 17.0 → 17.85 fps (diag) and 19.3 → 21.4 fps (release). Also worth adding:VICTORY_CARD_BUFFERS_MIN_KB=256 VICTORY_CARD_BUFFERS_MB=4096drops "preparing" from 43 to 20 ms and ~100 ms/frame of CPU, for only +2% fps here. The wall is now the submission lock while the relay lands data; I'm looking into that next.@UwUCammie on GitHub · 2026-11-26 10:45 UTC · original
I used a copy of my existing profile and story slot. Your 256 KiB minimum and 4 GiB budget, the heap worker, and Beqren’s bounded compute wait gave me 759 accepted presents in 36.85 seconds in the first room (20.60 FPS, 4,817 draws/frame). I was facing the window. Two five-second samples of the actual window changed 20.13 and 20.74 times/s. On the original 830dc191 renderer with the default 4 MiB minimum and 2 GiB budget, I got 15.87 with the worker off and 15.59 with it on. That’s one run per setup on my 7900 XT, not a walking route.
I could switch the missing faces back on this same save: with the compute wait enabled both faces and necks drew during the order. With only the wait disabled in the same executable, I saw eyes and teeth through the missing skin again. Starting with just the saved settings and no player or story data stopped at first-run setup, so I can’t say whether a clean story also avoids it.
Settings and measurements · Compute-wait backport
@anoyarou on GitHub · 2026-11-26 11:22 UTC · original · edited 2026-11-26 11:34 UTC
Three small additions to what Beqren and others found about the six pipelines and dxil-spirv
b540c8a. These are from an RX 9070 XT running Proton Experimentalexperimental-11.0-20261112.694cc674, "Only run fixup passes after structurizer has run". I found it by bisecting with the six translated outside the game (victory_shader::emit::translate) and dxil-spirv's own CLI. The recursion starts inflatten_subgroup_shuffles, one of those fixup passes. This is useful for anyone checking whether a given vkd3d-proton build already has the fix.VKD3D_SHADER_DUMP_PATH. dxil-spirvb540c8a2converts every one, andspirv-valaccepts the six. The older7c048638fails only those six.d3d12core.dllwith that dxil-spirv, and put it next tovictory.exewithd3d12core=n,b. Wine loads a native DLL from the program's folder beforesystem32. The process maps that copy, the six are made in the first seconds, and500 ms waiting for pipelinesdrops to 0. Here that took the frame from 290-301 ms to ~64 ms, standing in the first playable area. Deleting the file undoes it.AI-assisted (Claude Code)
Edit: Fixing dxil-spirv commit already referenced in #166
@Fran-co-F on GitHub · 2026-11-26 11:53 UTC · original
@Beqren: the six build here too, but the setup line in my report was inaccurate (now corrected). It was not plain vkd3d-proton master: it is a self-built
ec20719with dxil-spirv7c048638plus local patches (@0naku's, and Royalflamejlh'srewrite_multiple_back_edges()call inflatten_subgroup_shuffles, from XCL issue 1805). All six reachhost pipelinein my game runs. I haven't run the unpatched build on this title. Anyone following the report should use a vkd3d-proton with dxil-spirvb540c8aor later, as others found here.AI-assisted (Claude Code).
@UwUCammie on GitHub · 2026-11-26 12:14 UTC · original
I can reproduce the missing facial skin from a fresh story with the compute wait enabled. On the RX 7900 XT at 1280×720, I gave each launch empty runtime, vkd3d and Mesa caches and kept the same configured profile. In two controls, the diner shot showed eyes, hair and teeth with the face missing. In the walking control the head blend-shape pipeline was first bound at 49.49 s. Its dispatch timed out at 59.50 s and the host pipeline was ready at 84.63 s.
I tried starting compute builds when the title created their pipelines. That pipeline was ready at 44.17 s, before its first bind at 55.15 s. The face drew at the same spoken line and in the cell. Starting all of them was expensive. The control averaged 14.14 FPS from launch through five minutes and 25.64 FPS across the 75-second movement window. Eager compute gave 7.98 and 11.53 FPS respectively. Every hold is included. The worst was over 11 seconds either way.
Method, timings and patches
@Luigilt20 on GitHub · 2026-11-26 12:52 UTC · original
I repeated the prison walk on the non-XT RX 9070 (16 GB), Ryzen 5 5500X3D and 32 GB RAM. This time the counter includes only successful swapchain Presents during confirmed Win32 movement input. Screenshots show Lucia moving past the bunks, the blue doors and gate A102.
With
linux-amd-bestat830dc191, the upstream output-size change at 1920×1080, GE-Proton 10-34 and vkd3d-proton71cae091, I keptHEAP_WORKER=1,RELAY=2,LATE_WAIT=3,CARD_STEPS=1,CARD_BUFFERS_MIN_KB=256andCARD_BUFFERS_MB=2048. These were fresh story starts. Lucia's face and neck remained visible.The gate opening still hitches. Raising the buffer ceiling to 4096 MiB gave 9.70 FPS over the full corridor in the generic build, versus 10.00 at 2048 MiB. The camera paths varied slightly. AI-assisted builds and measurements with Codex.
@Fran-co-F on GitHub · 2026-11-26 15:57 UTC · original
Isolated measurement of
VICTORY_HOLE_SKIP(from @jtrudeau1530'slinux-amd-best, for the problem in #59), ported onto avatarmanza9400a6+ #166. RX 9070 XT, Wine + vkd3d-proton, RADV, Series X,VICTORY_PORT_GUARD=1in both runs, one 160 s run each, same scene. Heavy world frames (~4,900 draws): 57.6 → 50.6 ms, copies 31 → 16 ms,VirtualQuery~10,000 → ~37 calls a frame, copying back 25 → 28 ms.Caveat: textures and meshes seemed to stream in slightly later by eye; the counters were mixed (5–6% fewer texture MB uploaded, but fewer textures passed over).
AI-assisted (Claude Code and Gemini).
@jtrudeau1530 on GitHub · 2026-11-26 17:38 UTC · original
Linux/RADV:
RADV_PERFTEST=transfer_queuecuts the relay's copy-back by about 10 ms a frame.With
VICTORY_RELAY=2andVICTORY_RELAY_COPY=1, the relay's fetch runs on the COPY queue. Without the perftest, RADV puts that queue on the graphics or compute ring. We measured about 90 MB of fetch a frame at only about 4 GB/s. WithRADV_PERFTEST=transfer_queue, vkd3d-proton's copy queue gets the SDMA engine.Setup: RX 7900 XT, Mesa RADV, Wine 11.18 with the tree-index wineserver, vkd3d-proton. Series X profile. Base: avatarmanz main
c9c932cmerged with our local changes. Switches as in our play set, plusVICTORY_PORT_GUARD=1 VICTORY_PORT_JOURNAL=1.transfer_queueThe picture is identical, and there were no errors in any of these runs.
One combination got killed: transfer_queue together with the userptr shim from #163 and
VICTORY_PLACED_ORDER=1. Our memory guard stopped it under memory pressure on a 32 GB machine. That is probably the pinned port-1 region rather than the queue.The rest of the frame on Linux is the submit thread waiting about 25 ms for flights, mostly on one small upload-memory fill that
card_stepsrefuses because of BEHIND_PLACED. We are looking at that next.AI-assisted (Claude Code); measured on my machine.