Linux (Wine + vkd3d-proton, RX 9070 XT): Windows-level frame times on 32 GB of RAM, with a patched wineserver #111

Open
opened 2026-11-26 05:24:46 +00:00 by github-bot · 19 comments
Owner

@⁠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

  • RX 9070 XT 16 GB (RDNA4), Ryzen 7 9800X3D, 32 GB RAM, CachyOS, kernel 7.3.5, Mesa/RADV 26.3.1.
  • This fork at e2a28ec, cross-built with cargo xwin build --locked --profile diag -p victory --features diagnostics --target x86_64-pc-windows-msvc.
  • Wine 11.17 (system), vkd3d-proton (self-built ec20719, dxil-spirv 7c048638 with local patches, including the rewrite_multiple_back_edges() fix; edited: this said "master". Without those patches use dxil-spirv b540c8a or later), DXVK 3.1.1 dxgi, Microsoft's x64 d3dcompiler_47.dll next to victory.exe with d3dcompiler_47=n,b. Without it the layer's own cs_5_1 shaders don't compile.
  • The environment of 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 wineserver at 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 the wineserver next to its own binary first and falls back to WINESERVER, 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)

Frame 50–56 ms (18–20 fps), about your Windows figures on a 7900 XTX
"preparing" (the wall) 43–55 ms
copying back 19–33 ms
Card time of the drawing queue, from victory replay of one frame ~22 ms
VICTORY_GPU_TIMING=1, card time per frame ~62 ms without -RayTracing, ~164–205 ms with it
Memory about 14–17 GB resident: it ran in a 26 GB cgroup on a 32 GB machine

On 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

  1. Heads without skin (eyes, teeth and hair float): skinned or deformed meshes come back wrong under vkd3d-proton, as in #59 and #13. VICTORY_LAND_ECHO=0 was not enough here. #13 reports that VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 brings faces back at a cost in speed; I haven't tested it yet.
  2. Frame recorder + -RayTracing gives 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" in notes.txt), so ray-tracing passes on async compute aren't in a replay.
  3. Captures with RADV's SQTT cache counters (SPM) on RDNA4 hung the whole GPU once: RLC page faults, then a failed SDMA ring reset. Use 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.

**@⁠Fran-co-F** on GitHub · 2026-11-26 03:56 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111) A report for anyone who wants to run this fork on Linux: what it takes, what it measures, and what is still wrong. **Setup** - RX 9070 XT 16 GB (RDNA4), Ryzen 7 9800X3D, 32 GB RAM, CachyOS, kernel 7.3.5, Mesa/RADV 26.3.1. - This fork at `e2a28ec`, cross-built with `cargo xwin build --locked --profile diag -p victory --features diagnostics --target x86_64-pc-windows-msvc`. - Wine 11.17 (system), vkd3d-proton (self-built `ec20719`, dxil-spirv `7c048638` with local patches, including the `rewrite_multiple_back_edges()` fix; edited: this said "master". Without those patches use dxil-spirv `b540c8a` or later), DXVK 3.1.1 `dxgi`, Microsoft's x64 `d3dcompiler_47.dll` next to `victory.exe` with `d3dcompiler_47=n,b`. Without it the layer's own `cs_5_1` shaders don't compile. - The environment of `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 `wineserver` at 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](https://github.com/CachyOS/wine-cachyos/pull/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 the `wineserver` next to its own binary first and falls back to `WINESERVER`, 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)** | | | |---|---| | Frame | **50–56 ms (18–20 fps)**, about your Windows figures on a 7900 XTX | | "preparing" (the wall) | 43–55 ms | | copying back | 19–33 ms | | Card time of the drawing queue, from `victory replay` of one frame | ~22 ms | | `VICTORY_GPU_TIMING=1`, card time per frame | ~62 ms without `-RayTracing`, ~164–205 ms with it | | Memory | about **14–17 GB resident**: it ran in a 26 GB cgroup on a 32 GB machine | On 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** 1. **Heads without skin** (eyes, teeth and hair float): skinned or deformed meshes come back wrong under vkd3d-proton, as in #59 and #13. `VICTORY_LAND_ECHO=0` was not enough here. #13 reports that `VICTORY_RELAY=1 VICTORY_CARD_STEPS=0` brings faces back at a cost in speed; I haven't tested it yet. 2. **Frame recorder + `-RayTracing` gives 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" in `notes.txt`), so ray-tracing passes on async compute aren't in a replay. 3. **Captures with RADV's SQTT cache counters (SPM) on RDNA4** hung the whole GPU once: RLC page faults, then a failed SDMA ring reset. Use `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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:46 +00:00
Author
Owner

@⁠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 fxceless receiver 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's T::RemapUs covers 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:

  • Raw: receiver's VirtualFree(...MEM_PRESERVE_PLACEHOLDER) split + MapViewOfFile3(...MEM_REPLACE_PLACEHOLDER) + UnmapViewOfFile2(...MEM_PRESERVE_PLACEHOLDER) on a 64 KiB page from a private file-backed section.
  • HLE: real XMemMapPhysicalPages map and unmap on the 51700c6d-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.

Additional live views Raw median us/pair Raw server CPU / timed wall HLE median us/pair HLE server CPU / timed wall
0 47.0 33.1% 49.7 32.4%
5,000 76.8 55.6% 71.0 42.4%
20,000 159.3 73.8% 125.8 61.5%
50,000 336.0 83.0% 225.8 76.1%

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 (/proc ticks, 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 reported 1 passed; 0 failed; 0 ignored after 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).

**@⁠ArturoWolff** on GitHub · 2026-11-26 04:33 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7182705436) **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](https://github.com/CachyOS/wine-cachyos/pull/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 `fxceless` receiver with [the native pipeline-library fix](https://github.com/fxceless/victory-fork/pull/885#issuecomment-7182444748) 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's `T::RemapUs` covers 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: - Raw: receiver's `VirtualFree(...MEM_PRESERVE_PLACEHOLDER)` split + `MapViewOfFile3(...MEM_REPLACE_PLACEHOLDER)` + `UnmapViewOfFile2(...MEM_PRESERVE_PLACEHOLDER)` on a 64 KiB page from a private file-backed section. - HLE: real `XMemMapPhysicalPages` map and unmap on the `51700c6d`-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. | Additional live views | Raw median us/pair | Raw server CPU / timed wall | HLE median us/pair | HLE server CPU / timed wall | |---:|---:|---:|---:|---:| | 0 | 47.0 | 33.1% | 49.7 | 32.4% | | 5,000 | 76.8 | 55.6% | 71.0 | 42.4% | | 20,000 | 159.3 | 73.8% | 125.8 | 61.5% | | 50,000 | **336.0** | **83.0%** | **225.8** | **76.1%** | 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 (`/proc` ticks, 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 reported `1 passed; 0 failed; 0 ignored` after 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).
Author
Owner

@⁠bordersky on GitHub · 2026-11-26 05:02 UTC · original · edited 2026-11-26 06:07 UTC

Correction (later): the faces were not lost to a bad save but to loading a checkpoint at all; a clean checkpoint does it too, with the builder on or off. See #67. The rest of this comment stands.

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 wineserver patch (Wine bug 60868) started before the title, vkd3d-proton master, Microsoft's d3dcompiler_47. b0cfe2b cross-built on Linux with MinGW (x86_64-pc-windows-gnu, --profile diag --features diagnostics), plus the placeholder() fallback from #59 (questions about holes went from ~13,000 to ~10 a frame). play.ps1 settings with VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 VICTORY_LAND_ECHO=0 (#13, #59). Series X profile.

Frame times, prison dormitory, same spot, cache warm:

draws/frame frame
no builder ~3,900 87-88 ms (11.4 fps)
no builder ~6,500-7,000 100-110 ms (9-10 fps)
VICTORY_BVH_BUILDER=1, all 53 builder programs (see #101) ~6,800-7,000 148-152 ms (6.7 fps): preparing ~87, card ~59, copying back ~42

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:

  • vkd3d-proton master is needed for the ray-tracing passes. The dxil-spirv bundled with released vkd3d-proton (3.1 and GE-Proton's) recurses without bound on some of the large traversal compute shaders: the thread that creates the pipeline overflows its stack and dies silently, the pipeline never arrives. dxil-spirv b540c8a (in vkd3d-proton master 71cae09 and later) fixes it, as #59 also notes.
  • VICTORY_RELAY=2 drops the main characters' skin here too (as in #13); RELAY=1 keeps it.
  • Memory on 32 GB is tight with the builder on: ~15 GB resident for the process plus ~8.6 GB of system memory the card uses (GTT), with a browser and chat client open. It ran, but an out-of-memory guard set at 3 GB left ended one run; leave a few GB of headroom or close the rest.
  • A process killed while the title writes its checkpoint leaves a save that loads characters without faces (details in #67). Keep a copy of the save folder from before each run.
**@⁠bordersky** on GitHub · 2026-11-26 05:02 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7183122720) · edited 2026-11-26 06:07 UTC > **Correction (later):** the faces were not lost to a bad save but to **loading a checkpoint at all**; a clean checkpoint does it too, with the builder on or off. See https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/67. The rest of this comment stands. 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 `wineserver` patch (Wine bug 60868) started before the title, **vkd3d-proton master**, Microsoft's `d3dcompiler_47`. `b0cfe2b` cross-built on Linux with MinGW (`x86_64-pc-windows-gnu`, `--profile diag --features diagnostics`), plus the `placeholder()` fallback from #59 (questions about holes went from ~13,000 to ~10 a frame). `play.ps1` settings with `VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 VICTORY_LAND_ECHO=0` (#13, #59). Series X profile. **Frame times, prison dormitory, same spot, cache warm:** | | draws/frame | frame | |---|---|---| | no builder | ~3,900 | 87-88 ms (11.4 fps) | | no builder | ~6,500-7,000 | 100-110 ms (9-10 fps) | | `VICTORY_BVH_BUILDER=1`, all 53 builder programs (see #101) | ~6,800-7,000 | 148-152 ms (6.7 fps): preparing ~87, card ~59, copying back ~42 | 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:** - **vkd3d-proton master is needed for the ray-tracing passes.** The dxil-spirv bundled with released vkd3d-proton (3.1 and GE-Proton's) recurses without bound on some of the large traversal compute shaders: the thread that creates the pipeline overflows its stack and dies silently, the pipeline never arrives. dxil-spirv `b540c8a` (in vkd3d-proton master `71cae09` and later) fixes it, as #59 also notes. - **`VICTORY_RELAY=2` drops the main characters' skin here too** (as in #13); `RELAY=1` keeps it. - **Memory on 32 GB is tight with the builder on:** ~15 GB resident for the process plus ~8.6 GB of system memory the card uses (GTT), with a browser and chat client open. It ran, but an out-of-memory guard set at 3 GB left ended one run; leave a few GB of headroom or close the rest. - **A process killed while the title writes its checkpoint leaves a save that loads characters without faces** (details in #67). Keep a copy of the save folder from before each run.
Author
Owner

@⁠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-1 client and its Windows DLLs, rather than mixing a server from another build into GE-Proton. The package's exact Wine tag resolves to 9f8c4ae4d35c7ff4153267aba9618c026f5f5583 and the Staging tag to 40ab84054fe2ead6c689de31405ba36269e9ee3a. 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 and configure --enable-archs=x86_64,i386 --disable-tests settings, 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-256 6bdbba4d5589171e40ccedebde8a04754f8a896b6aa1929a516a24bbd3551752. 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):

Additional live views Rebuilt stock, raw Tree, raw Rebuilt stock, HLE Tree, HLE
0 47.27 46.00 50.45 50.53
5,000 80.11 46.83 85.27 52.63
20,000 161.83 47.17 165.88 53.71
50,000 333.68 53.99 360.52 55.24

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 XMemMapPhysicalPages HLE 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).

**@⁠ArturoWolff** on GitHub · 2026-11-26 05:08 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7183223514) **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](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/111). 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-1` client and its Windows DLLs, rather than mixing a server from another build into GE-Proton. The package's exact Wine tag resolves to `9f8c4ae4d35c7ff4153267aba9618c026f5f5583` and the Staging tag to `40ab84054fe2ead6c689de31405ba36269e9ee3a`. 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 and `configure --enable-archs=x86_64,i386 --disable-tests` settings, have byte-identical generated host configuration and server-protocol header (Staging protocol 980). Thanks again to ajsem/neonbyte1 for [CachyOS/wine-cachyos#50](https://github.com/CachyOS/wine-cachyos/pull/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-256 `6bdbba4d5589171e40ccedebde8a04754f8a896b6aa1929a516a24bbd3551752`. 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): | Additional live views | Rebuilt stock, raw | Tree, raw | Rebuilt stock, HLE | Tree, HLE | |---:|---:|---:|---:|---:| | 0 | 47.27 | 46.00 | 50.45 | 50.53 | | 5,000 | 80.11 | 46.83 | 85.27 | 52.63 | | 20,000 | 161.83 | 47.17 | 165.88 | 53.71 | | 50,000 | **333.68** | **53.99** | **360.52** | **55.24** | 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 `XMemMapPhysicalPages` HLE 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).
Author
Owner

@⁠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.

Settings Frame count during movement and camera rotation in the prison cell Face
Launcher defaults, VICTORY_RELAY=2, VICTORY_CARD_STEPS=2, vkd3d-proton 2576c0b 136 swapchain Present calls in 80.09 s (1.70/s) Skin missing
VICTORY_RELAY=1, VICTORY_CARD_STEPS=0, official vkd3d-proton CI build 71cae091 276 calls in 84.76 s (3.26/s) Skin still missing when viewed from the front. Hair, eyes and teeth visible

Both configurations kept VICTORY_LATE_WAIT=0, VKD3D_CONFIG=descriptor_heap and 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-proton 71cae091. 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_tells test 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.

**@⁠Luigilt20** on GitHub · 2026-11-26 04:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7182989690) · 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. | Settings | Frame count during movement and camera rotation in the prison cell | Face | | --- | --- | --- | | Launcher defaults, `VICTORY_RELAY=2`, `VICTORY_CARD_STEPS=2`, vkd3d-proton `2576c0b` | 136 swapchain Present calls in 80.09 s (1.70/s) | Skin missing | | `VICTORY_RELAY=1`, `VICTORY_CARD_STEPS=0`, official vkd3d-proton CI build `71cae091` | 276 calls in 84.76 s (3.26/s) | Skin still missing when viewed from the front. Hair, eyes and teeth visible | Both configurations kept `VICTORY_LATE_WAIT=0`, `VKD3D_CONFIG=descriptor_heap` and 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-proton `71cae091`. 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_tells` test 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.
Author
Owner

@⁠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-proton 71cae091b06571e and 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-256 168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371; unchanged release diagnostics EXE SHA-256 6d39ad4ee0e1a8eb0d4af63b3c86ae9854811970fe262640609e5e85ab211471. 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):

Rebuilt stock Tree
Frame 175 180
Remap calls 54,857 54,857
Remapping timer 13,654.0 ms 2,760.4 ms
Timer per call 248.90 us 50.32 us
Reader-lock wait (included above) 0.4 ms 0.3 ms
Frame wall 14,620 ms 3,769 ms
Draws 6 6
Disk reads 17 / 26.4 MB 17 / 26.4 MB
Copies 0.1 MB 0.1 MB

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.

Resources / stop Stock Tree
Minimum host available 5,966 MiB 1,117 MiB
Peak trial cgroup memory 4,240 MiB 8,430 MiB
Peak trial swap 3,034 MiB 5,011 MiB
Peak total GPU used 4,163 MiB 7,843 MiB
Run elapsed 332.42 s 334.17 s

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).

**@⁠ArturoWolff** on GitHub · 2026-11-26 05:46 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7183794063) **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](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/111) and the original [stock GE-Proton reproduction](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/111). 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-proton `71cae091b06571e` and DXVK DLLs. The receiver is our private **fxceless #854 (`51700c6d43a3507fa65e50fe4bb64074ce706cd4`)-based integration**, including [the native pipeline-library correction](https://github.com/fxceless/victory-fork/pull/885#issuecomment-7182444748); this is not a build of this 7900XTX fork. Full receiver patch SHA-256 `168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371`; unchanged release diagnostics EXE SHA-256 `6d39ad4ee0e1a8eb0d4af63b3c86ae9854811970fe262640609e5e85ab211471`. 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): | | Rebuilt stock | Tree | |---|---:|---:| | Frame | 175 | 180 | | Remap calls | 54,857 | 54,857 | | Remapping timer | 13,654.0 ms | **2,760.4 ms** | | Timer per call | 248.90 us | 50.32 us | | Reader-lock wait (included above) | 0.4 ms | 0.3 ms | | Frame wall | 14,620 ms | 3,769 ms | | Draws | 6 | 6 | | Disk reads | 17 / 26.4 MB | 17 / 26.4 MB | | Copies | 0.1 MB | 0.1 MB | 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. | Resources / stop | Stock | Tree | |---|---:|---:| | Minimum host available | 5,966 MiB | 1,117 MiB | | Peak trial cgroup memory | 4,240 MiB | 8,430 MiB | | Peak trial swap | 3,034 MiB | 5,011 MiB | | Peak total GPU used | 4,163 MiB | 7,843 MiB | | Run elapsed | 332.42 s | 334.17 s | 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](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/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).
Author
Owner

@⁠Beqren on GitHub · 2026-11-26 06:14 UTC · original · edited 2026-11-26 08:54 UTC

Correction (2026-11-26): the six pipelines below are a converter bug that is fixed upstream, not vkd3d-proton in general. With vkd3d-proton 71cae09 (dxil-spirv b540c8a) all six build here without any change to the layer; they hang with the vkd3d-proton 3.2.0 that Proton Experimental ships. So "never made" and "no warm helps" apply to that version only, and a newer vkd3d-proton is the proper fix. Thanks to ArturoWolff in #111 for the check. #129 is closed; what held up after re-testing on both versions is in #166 (the pipeline library with a null blob, a bounded wait for once-only compute dispatches, the single-latch stopgap).

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 85d5641 with 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 said 500.0 ms waiting for pipelines and (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=0 alone 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=1 runs 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.

**@⁠Beqren** on GitHub · 2026-11-26 06:14 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7184231609) · edited 2026-11-26 08:54 UTC > **Correction (2026-11-26):** the six pipelines below are a converter bug that is fixed upstream, not vkd3d-proton in general. With vkd3d-proton `71cae09` (dxil-spirv `b540c8a`) all six build here without any change to the layer; they hang with the vkd3d-proton 3.2.0 that Proton Experimental ships. So "never made" and "no warm helps" apply to that version only, and a newer vkd3d-proton is the proper fix. Thanks to ArturoWolff in #111 for the check. #129 is closed; what held up after re-testing on both versions is in #166 (the pipeline library with a null blob, a bounded wait for once-only compute dispatches, the single-latch stopgap). 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 `85d5641` with 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 said `500.0 ms waiting for pipelines` and `(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=0` alone 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=1` runs 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.
Author
Owner

@⁠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 with RELAY=1. These measurements use stage 3, CARD_STEPS=0, LAND_ECHO=0, and the RT builder off. The first table uses RELAY=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 SARC0015 container 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 of b0cfe2b, I counted swapchain Present calls between timestamped screenshots during gameplay. Draw counts are medians of the sampled host reports.

View, warmed up Present calls / elapsed time FPS Draws/frame
Cell window 476 / 60.00 s 7.93 4,854
Facing Lucia, shelves and part of the window 536 / 59.96 s 8.94 3,636
Bunks and the seated NPC 492 / 65.03 s 7.57 6,284

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.

**@⁠Luigilt20** on GitHub · 2026-11-26 06:32 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7184524471) · 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 with `RELAY=1`. These measurements use stage 3, `CARD_STEPS=0`, `LAND_ECHO=0`, and the RT builder off. The first table uses `RELAY=1`. I reproduced the face workaround from [#13](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/13). With the old checkpoint I could see Lucia's hair, eyes and teeth. I set aside only the copied `SARC0015` container 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 of `b0cfe2b`, I counted swapchain Present calls between timestamped screenshots during gameplay. Draw counts are medians of the sampled host reports. | View, warmed up | Present calls / elapsed time | FPS | Draws/frame | | --- | --- | ---: | ---: | | Cell window | 476 / 60.00 s | 7.93 | 4,854 | | Facing Lucia, shelves and part of the window | 536 / 59.96 s | 8.94 | 3,636 | | Bunks and the seated NPC | 492 / 65.03 s | 7.57 | 6,284 | 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](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/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.
Author
Owner

@⁠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-proton 71cae091b06571e. This is not a test of the 7900XTX fork or of Beqren's PR. I verified that the vkd3d source revision references dxil-spirv b540c8a2484eecc7c2155994c806bbd8a8706f41, the version bordersky identified.

Seconds between the recorded events (first-bind to translation, then translation to host-pipeline success):

Identifier from #129 Prior no-wait=1 No-wait=0
17829ac71aab4e8d 186.12 / 1.70 179.87 / 1.25
32ed072b9f845048 94.43 / 0.32 120.02 / 0.59
afeea48bbb9913ad 189.47 / 2.18 181.12 / 2.10
559d9f0184e15fe3 bind only bind only
a1b20bc47e3c9597 185.87 / 3.59 178.03 / 1.83
e8c962358d862e3f 187.83 / 3.95 180.60 / 3.76

I checked the receiver's actual logging sites: first bind is the title's request, shader translated follows a successful translation/cache retrieval, and the compute host pipeline message 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 patch 168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371, 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 no SARC0015 checkpoint. One A at the same visible picker in each. The renderer setting changed was VICTORY_TEXTURE_NO_WAIT; the newer run also had external kernel-fault observation. The original seed manifests still match.

Observation No-wait=1 No-wait=0
Comparable loading frame, 54,857 remaps 2,760.4 ms remap 2,845.5 ms remap
Frame wall 3,769 ms 3,816 ms
Nonzero no-wait report lines 113 0
First sampled intro card, seconds after A 75.24 67.39
First sampled credits, seconds after A 178.76 162.76
Min host available, MiB 1,117 1,246
Peak trial memory / swap, MiB 8,430 / 5,011 8,956 / 4,963
Peak total GPU use, MiB 7,843 7,838

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).

**@⁠ArturoWolff** on GitHub · 2026-11-26 06:34 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7184561401) Thanks to Beqren for identifying the six compute programs in [#129](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/pulls/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](https://github.com/fxceless/victory-fork/pull/885#issuecomment-7182444748), the source-matched Wine 11.22 Staging tree server and vkd3d-proton `71cae091b06571e`. This is not a test of the 7900XTX fork or of Beqren's PR. I verified that the [vkd3d source revision](https://github.com/HansKristian-Work/vkd3d-proton/commit/71cae091b06571e51446cf2a937f0b04c237c04d) references dxil-spirv `b540c8a2484eecc7c2155994c806bbd8a8706f41`, the version bordersky identified. Seconds between the recorded events (first-bind to translation, then translation to host-pipeline success): | Identifier from #129 | Prior no-wait=1 | No-wait=0 | |---|---:|---:| | `17829ac71aab4e8d` | 186.12 / 1.70 | 179.87 / 1.25 | | `32ed072b9f845048` | 94.43 / 0.32 | 120.02 / 0.59 | | `afeea48bbb9913ad` | 189.47 / 2.18 | 181.12 / 2.10 | | `559d9f0184e15fe3` | bind only | bind only | | `a1b20bc47e3c9597` | 185.87 / 3.59 | 178.03 / 1.83 | | `e8c962358d862e3f` | 187.83 / 3.95 | 180.60 / 3.76 | I checked the receiver's actual logging sites: `first bind` is the title's request, `shader translated` follows a successful translation/cache retrieval, and the compute `host pipeline` message 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](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/124) did not establish a rendering fix.** Same executable (SHA-256 `6d39ad4ee0e1a8eb0d4af63b3c86ae9854811970fe262640609e5e85ab211471`), source patch `168b6288a392cb8cdb4c6932d3550f2102364eed1afd01bc7e71712135dc5371`, server, graphics DLLs, Series X profile, warm library/driver/cache seed and file backing as my [preceding tree-server run](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/111). Separate copies of the same initial state, which contains no `SARC0015` checkpoint. One A at the same visible picker in each. The renderer setting changed was `VICTORY_TEXTURE_NO_WAIT`; the newer run also had external kernel-fault observation. The original seed manifests still match. | Observation | No-wait=1 | No-wait=0 | |---|---:|---:| | Comparable loading frame, 54,857 remaps | 2,760.4 ms remap | 2,845.5 ms remap | | Frame wall | 3,769 ms | 3,816 ms | | Nonzero no-wait report lines | 113 | 0 | | First sampled intro card, seconds after A | 75.24 | 67.39 | | First sampled credits, seconds after A | 178.76 | 162.76 | | Min host available, MiB | 1,117 | 1,246 | | Peak trial memory / swap, MiB | 8,430 / 5,011 | 8,956 / 4,963 | | Peak total GPU use, MiB | 7,843 | 7,838 | 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).
Author
Owner

@⁠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.

stock /usr/bin/wineserver 11.18 tree-index wineserver 11.18
world fps (5 s meter lines, last minute) 0.9 – 9.8, mostly 7-8 11.6 – 14.9, mostly 13-14
ms/frame 102 – 351 (one 1,131) 67 – 86
"preparing" 85 – 123 ms 34 – 59 ms
first world frame reached at frame 1,779 frame 838
how far 150 s got opening cutscene through the cutscene into the playable prologue cell

Synthetic 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:

  1. WINESERVER=/path alone does nothing on 11.18. ntdll's exec_wineserver (dlls/ntdll/unix/loader.c) tries /usr/bin/wineserver first and only falls back to $WINESERVER. Either start the patched server first (wineserver-tree -p, same WINEPREFIX), 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.
  2. The CachyOS commit fd66dbca doesn't apply cleanly to 11.18. Here it is re-applied by hand to server/file.h, mapping.c, process.c, process.h: same logic, +56/-21, keeps 11.18's own process->page_size check in is_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/wineserver from the wine-11.18 tag.
tree-index patch for Wine 11.18 (adaptation of CachyOS/wine-cachyos#50, fd66dbca)
Adapted to wine-11.18 (7b3fff76fa5178f6ce0141b2c776afa2a822f101) from CachyOS/wine-cachyos commit fd66dbca8eb0754839ca974e45b5ea446ca62d2f (PR #50, Wine bug 60868).
Only change vs upstream commit: context (11.18 keeps its process->page_size alignment check in is_valid_view_addr). Apply with: git apply tree-index-11.18.patch

diff --git a/server/file.h b/server/file.h
index 61f570f..c3f4732 100644
--- a/server/file.h
+++ b/server/file.h
@@ -176,6 +176,7 @@ extern struct memory_view *get_exe_view( struct process *process );
 extern struct file *get_view_file( const struct memory_view *view, unsigned int access, unsigned int sharing );
 extern const struct pe_image_info *get_view_image_info( const struct memory_view *view, client_ptr_t *base );
 extern int get_view_nt_name( const struct memory_view *view, struct unicode_str *name );
+extern void init_process_views( struct process *process );
 extern void free_mapped_views( struct process *process );
 extern size_t get_page_size(void);
 extern struct mapping *create_fd_mapping( struct object *root, struct unicode_str name, struct fd *fd,
diff --git a/server/mapping.c b/server/mapping.c
index 7446c70..41f9386 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -95,6 +95,7 @@ static struct list shared_map_list = LIST_INIT( shared_map_list );
 struct memory_view
 {
     struct list     entry;           /* entry in per-process view list */
+    struct rb_entry tree_entry;      /* entry in per-process view tree, by base */
     struct fd      *fd;              /* fd for mapped file */
     struct ranges  *committed;       /* list of committed ranges in this mapping */
     struct shared_map *shared;       /* temp file for shared PE mapping */
@@ -356,14 +357,48 @@ static int create_temp_file( file_pos_t size )
     return fd;
 }
 
+static int compare_view_base( const void *key, const struct rb_entry *entry )
+{
+    client_ptr_t base = *(const client_ptr_t *)key;
+    const struct memory_view *view = RB_ENTRY_VALUE( entry, const struct memory_view, tree_entry );
+
+    if (base < view->base) return -1;
+    if (base > view->base) return 1;
+    return 0;
+}
+
+/* initialize the view list and tree of a new process */
+void init_process_views( struct process *process )
+{
+    list_init( &process->views );
+    rb_init( &process->view_tree, compare_view_base );
+}
+
+/* find the view with the highest base address not above addr */
+static struct memory_view *find_view_below( struct process *process, client_ptr_t addr )
+{
+    struct rb_entry *entry = process->view_tree.root;
+    struct memory_view *view, *found = NULL;
+
+    while (entry)
+    {
+        view = RB_ENTRY_VALUE( entry, struct memory_view, tree_entry );
+        if (view->base <= addr)
+        {
+            found = view;
+            entry = entry->right;
+        }
+        else entry = entry->left;
+    }
+    return found;
+}
+
 /* find a memory view from its base address */
 struct memory_view *find_mapped_view( struct process *process, client_ptr_t base )
 {
-    struct memory_view *view;
-
-    LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry )
-        if (view->base == base) return view;
+    struct rb_entry *entry = rb_get( &process->view_tree, &base );
 
+    if (entry) return RB_ENTRY_VALUE( entry, struct memory_view, tree_entry );
     set_error( STATUS_NOT_MAPPED_VIEW );
     return NULL;
 }
@@ -371,11 +406,9 @@ struct memory_view *find_mapped_view( struct process *process, client_ptr_t base
 /* find a memory view from any address inside it */
 static struct memory_view *find_mapped_addr( struct process *process, client_ptr_t addr )
 {
-    struct memory_view *view;
-
-    LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry )
-        if (addr >= view->base && addr < view->base + view->size) return view;
+    struct memory_view *view = find_view_below( process, addr );
 
+    if (view && addr < view->base + view->size) return view;
     set_error( STATUS_NOT_MAPPED_VIEW );
     return NULL;
 }
@@ -389,14 +422,10 @@ static int is_valid_view_addr( struct process *process, client_ptr_t addr, mem_s
     if (addr & (process->page_size - 1)) return 0;
     if (addr + size < addr) return 0;  /* overflow */
 
-    /* check for overlapping view */
-    LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry )
-    {
-        if (view->base + view->size <= addr) continue;
-        if (view->base >= addr + size) continue;
-        return 0;
-    }
-    return 1;
+    /* views don't overlap, so only the last one starting inside the range
+     * or before it can overlap it */
+    view = find_view_below( process, addr + size - 1 );
+    return !view || view->base + view->size <= addr;
 }
 
 /* get the main exe memory view */
@@ -434,19 +463,22 @@ static int add_process_view( struct thread *thread, struct memory_view *view )
                 process->imagelen = name.len;
             process->image_info = view->image;
             list_add_head( &process->views, &view->entry );
+            rb_put( &process->view_tree, &view->base, &view->tree_entry );
             return 1;
         }
     }
     list_add_tail( &process->views, &view->entry );
+    rb_put( &process->view_tree, &view->base, &view->tree_entry );
     return 0;
 }
 
-static void free_memory_view( struct memory_view *view )
+static void free_memory_view( struct process *process, struct memory_view *view )
 {
     if (view->fd) release_object( view->fd );
     if (view->committed) release_object( view->committed );
     if (view->shared) release_object( view->shared );
     list_remove( &view->entry );
+    rb_remove( &process->view_tree, &view->tree_entry );
     free( view );
 }
 
@@ -456,7 +488,7 @@ void free_mapped_views( struct process *process )
     struct list *ptr;
 
     while ((ptr = list_head( &process->views )))
-        free_memory_view( LIST_ENTRY( ptr, struct memory_view, entry ));
+        free_memory_view( process, LIST_ENTRY( ptr, struct memory_view, entry ));
 }
 
 /* find the shared PE mapping for a given mapping */
@@ -1739,7 +1771,7 @@ DECL_HANDLER(unmap_view)
 
     if (!view) return;
     generate_dll_event( current, DbgUnloadDllStateChange, view );
-    free_memory_view( view );
+    free_memory_view( current->process, view );
 }
 
 /* get information about a mapped image view */
diff --git a/server/process.c b/server/process.c
index f1a8c06..2c40957 100644
--- a/server/process.c
+++ b/server/process.c
@@ -647,7 +647,7 @@ struct process *create_process( int fd, struct process *parent, unsigned int fla
     list_init( &process->locks );
     list_init( &process->asyncs );
     list_init( &process->classes );
-    list_init( &process->views );
+    init_process_views( process );
 
     process->end_time = 0;
 
diff --git a/server/process.h b/server/process.h
index dff766d..9e40fe4 100644
--- a/server/process.h
+++ b/server/process.h
@@ -22,6 +22,7 @@
 #define __WINE_SERVER_PROCESS_H
 
 #include "object.h"
+#include "wine/rbtree.h"
 
 struct atom_table;
 struct handle_table;
@@ -79,7 +80,8 @@ struct process
     obj_handle_t         winstation;      /* main handle to process window station */
     obj_handle_t         desktop;         /* handle to desktop to use for new threads */
     struct token        *token;           /* security token associated with this process */
-    struct list          views;           /* list of memory views */
+    struct list          views;           /* list of memory views, main exe first */
+    struct rb_tree       view_tree;       /* memory views by base address */
     client_ptr_t         peb;             /* PEB address in client address space */
     struct dir_cache    *dir_cache;       /* map of client-side directory cache */
     unsigned int         trace_data;      /* opaque data used by the process tracing mechanism */

(AI-assisted with Claude Code on my machine: the build, the patch adaptation and the runs.)

**@⁠jtrudeau1530** on GitHub · 2026-11-26 07:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7186024418) **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. | | stock `/usr/bin/wineserver` 11.18 | tree-index wineserver 11.18 | |---|---:|---:| | world fps (5 s meter lines, last minute) | 0.9 – 9.8, mostly 7-8 | **11.6 – 14.9, mostly 13-14** | | ms/frame | 102 – 351 (one 1,131) | **67 – 86** | | "preparing" | 85 – 123 ms | **34 – 59 ms** | | first world frame reached at | frame 1,779 | **frame 838** | | how far 150 s got | opening cutscene | through the cutscene into the playable prologue cell | Synthetic 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: 1. **`WINESERVER=/path` alone does nothing on 11.18.** ntdll's `exec_wineserver` (`dlls/ntdll/unix/loader.c`) tries `/usr/bin/wineserver` first and only falls back to `$WINESERVER`. Either start the patched server first (`wineserver-tree -p`, same `WINEPREFIX`), 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. 2. The CachyOS commit `fd66dbca` doesn't apply cleanly to 11.18. Here it is re-applied by hand to `server/file.h`, `mapping.c`, `process.c`, `process.h`: same logic, +56/-21, keeps 11.18's own `process->page_size` check in `is_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/wineserver` from the `wine-11.18` tag. <details><summary>tree-index patch for Wine 11.18 (adaptation of CachyOS/wine-cachyos#50, fd66dbca)</summary> ```diff Adapted to wine-11.18 (7b3fff76fa5178f6ce0141b2c776afa2a822f101) from CachyOS/wine-cachyos commit fd66dbca8eb0754839ca974e45b5ea446ca62d2f (PR #50, Wine bug 60868). Only change vs upstream commit: context (11.18 keeps its process->page_size alignment check in is_valid_view_addr). Apply with: git apply tree-index-11.18.patch diff --git a/server/file.h b/server/file.h index 61f570f..c3f4732 100644 --- a/server/file.h +++ b/server/file.h @@ -176,6 +176,7 @@ extern struct memory_view *get_exe_view( struct process *process ); extern struct file *get_view_file( const struct memory_view *view, unsigned int access, unsigned int sharing ); extern const struct pe_image_info *get_view_image_info( const struct memory_view *view, client_ptr_t *base ); extern int get_view_nt_name( const struct memory_view *view, struct unicode_str *name ); +extern void init_process_views( struct process *process ); extern void free_mapped_views( struct process *process ); extern size_t get_page_size(void); extern struct mapping *create_fd_mapping( struct object *root, struct unicode_str name, struct fd *fd, diff --git a/server/mapping.c b/server/mapping.c index 7446c70..41f9386 100644 --- a/server/mapping.c +++ b/server/mapping.c @@ -95,6 +95,7 @@ static struct list shared_map_list = LIST_INIT( shared_map_list ); struct memory_view { struct list entry; /* entry in per-process view list */ + struct rb_entry tree_entry; /* entry in per-process view tree, by base */ struct fd *fd; /* fd for mapped file */ struct ranges *committed; /* list of committed ranges in this mapping */ struct shared_map *shared; /* temp file for shared PE mapping */ @@ -356,14 +357,48 @@ static int create_temp_file( file_pos_t size ) return fd; } +static int compare_view_base( const void *key, const struct rb_entry *entry ) +{ + client_ptr_t base = *(const client_ptr_t *)key; + const struct memory_view *view = RB_ENTRY_VALUE( entry, const struct memory_view, tree_entry ); + + if (base < view->base) return -1; + if (base > view->base) return 1; + return 0; +} + +/* initialize the view list and tree of a new process */ +void init_process_views( struct process *process ) +{ + list_init( &process->views ); + rb_init( &process->view_tree, compare_view_base ); +} + +/* find the view with the highest base address not above addr */ +static struct memory_view *find_view_below( struct process *process, client_ptr_t addr ) +{ + struct rb_entry *entry = process->view_tree.root; + struct memory_view *view, *found = NULL; + + while (entry) + { + view = RB_ENTRY_VALUE( entry, struct memory_view, tree_entry ); + if (view->base <= addr) + { + found = view; + entry = entry->right; + } + else entry = entry->left; + } + return found; +} + /* find a memory view from its base address */ struct memory_view *find_mapped_view( struct process *process, client_ptr_t base ) { - struct memory_view *view; - - LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry ) - if (view->base == base) return view; + struct rb_entry *entry = rb_get( &process->view_tree, &base ); + if (entry) return RB_ENTRY_VALUE( entry, struct memory_view, tree_entry ); set_error( STATUS_NOT_MAPPED_VIEW ); return NULL; } @@ -371,11 +406,9 @@ struct memory_view *find_mapped_view( struct process *process, client_ptr_t base /* find a memory view from any address inside it */ static struct memory_view *find_mapped_addr( struct process *process, client_ptr_t addr ) { - struct memory_view *view; - - LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry ) - if (addr >= view->base && addr < view->base + view->size) return view; + struct memory_view *view = find_view_below( process, addr ); + if (view && addr < view->base + view->size) return view; set_error( STATUS_NOT_MAPPED_VIEW ); return NULL; } @@ -389,14 +422,10 @@ static int is_valid_view_addr( struct process *process, client_ptr_t addr, mem_s if (addr & (process->page_size - 1)) return 0; if (addr + size < addr) return 0; /* overflow */ - /* check for overlapping view */ - LIST_FOR_EACH_ENTRY( view, &process->views, struct memory_view, entry ) - { - if (view->base + view->size <= addr) continue; - if (view->base >= addr + size) continue; - return 0; - } - return 1; + /* views don't overlap, so only the last one starting inside the range + * or before it can overlap it */ + view = find_view_below( process, addr + size - 1 ); + return !view || view->base + view->size <= addr; } /* get the main exe memory view */ @@ -434,19 +463,22 @@ static int add_process_view( struct thread *thread, struct memory_view *view ) process->imagelen = name.len; process->image_info = view->image; list_add_head( &process->views, &view->entry ); + rb_put( &process->view_tree, &view->base, &view->tree_entry ); return 1; } } list_add_tail( &process->views, &view->entry ); + rb_put( &process->view_tree, &view->base, &view->tree_entry ); return 0; } -static void free_memory_view( struct memory_view *view ) +static void free_memory_view( struct process *process, struct memory_view *view ) { if (view->fd) release_object( view->fd ); if (view->committed) release_object( view->committed ); if (view->shared) release_object( view->shared ); list_remove( &view->entry ); + rb_remove( &process->view_tree, &view->tree_entry ); free( view ); } @@ -456,7 +488,7 @@ void free_mapped_views( struct process *process ) struct list *ptr; while ((ptr = list_head( &process->views ))) - free_memory_view( LIST_ENTRY( ptr, struct memory_view, entry )); + free_memory_view( process, LIST_ENTRY( ptr, struct memory_view, entry )); } /* find the shared PE mapping for a given mapping */ @@ -1739,7 +1771,7 @@ DECL_HANDLER(unmap_view) if (!view) return; generate_dll_event( current, DbgUnloadDllStateChange, view ); - free_memory_view( view ); + free_memory_view( current->process, view ); } /* get information about a mapped image view */ diff --git a/server/process.c b/server/process.c index f1a8c06..2c40957 100644 --- a/server/process.c +++ b/server/process.c @@ -647,7 +647,7 @@ struct process *create_process( int fd, struct process *parent, unsigned int fla list_init( &process->locks ); list_init( &process->asyncs ); list_init( &process->classes ); - list_init( &process->views ); + init_process_views( process ); process->end_time = 0; diff --git a/server/process.h b/server/process.h index dff766d..9e40fe4 100644 --- a/server/process.h +++ b/server/process.h @@ -22,6 +22,7 @@ #define __WINE_SERVER_PROCESS_H #include "object.h" +#include "wine/rbtree.h" struct atom_table; struct handle_table; @@ -79,7 +80,8 @@ struct process obj_handle_t winstation; /* main handle to process window station */ obj_handle_t desktop; /* handle to desktop to use for new threads */ struct token *token; /* security token associated with this process */ - struct list views; /* list of memory views */ + struct list views; /* list of memory views, main exe first */ + struct rb_tree view_tree; /* memory views by base address */ client_ptr_t peb; /* PEB address in client address space */ struct dir_cache *dir_cache; /* map of client-side directory cache */ unsigned int trace_data; /* opaque data used by the process tracing mechanism */ ``` </details> (AI-assisted with Claude Code on my machine: the build, the patch adaptation and the runs.)
Author
Owner

@⁠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 main 0ce46d5 + #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 _o variants.
  • some measurement switches.

Steps, each measured separately on this machine (150-180 s runs, opening of the story, same spot):

  1. Tree-index wineserver (my comment above): 4.9 → 13.4 fps.
  2. 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.
  3. 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.
  4. Result: diag 15.4-16.9 fps (frame ~62 ms, "preparing" ~42 ms); release 19-20 fps.

Full switch set used:

VICTORY_TEXTURE_NO_WAIT=1 VICTORY_RELAY=2 VICTORY_WIDE_BACK=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_RELAY_COPY=1 VICTORY_CARD_STEPS=2 VICTORY_INDIRECT_BATCH=2 VICTORY_MAP_THREADS=1 VICTORY_TITLE_PRIORITIES=0 VICTORY_CARD_AWAKE=1 VICTORY_SHOW_AFTER=1 VICTORY_AMBIENT=0.8 VICTORY_SKIP_PIPELINES=none VICTORY_THIN=1 VICTORY_JOIN_PARTS=8 VICTORY_UPLOAD_AHEAD=1 VICTORY_BVH_QUARANTINE=1 VICTORY_MATERIAL_DEMAND=1 VICTORY_AMD_PICKS=1 VICTORY_PIPE_FIX=1 VICTORY_BVH_BUILDER=0 VICTORY_HOLE_SKIP=1 VICTORY_SUBMIT_FRAMES=2 VICTORY_SUBMIT_DEPTH=128 

Known on this setup:

  • VICTORY_PORT_CONSTANTS=1 → black world (#163).
  • fxceless's 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.
  • With RELAY=2 we have faces here (RDNA3); the #13/#138 face loss seems RDNA4-specific or save-dependent.

(AI-assisted with Claude Code; all numbers from runs on my machine.)

**@⁠jtrudeau1530** on GitHub · 2026-11-26 09:09 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7187499094) **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`](https://github.com/jtrudeau1530/VIctory-7900XTX/tree/linux-amd-best) (`3241322`). It's main `0ce46d5` + #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 `_o` variants. - some measurement switches. Steps, each measured separately on this machine (150-180 s runs, opening of the story, same spot): 1. Tree-index wineserver (my comment above): **4.9 → 13.4 fps**. 2. `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. 3. `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. 4. Result: diag 15.4-16.9 fps (frame ~62 ms, "preparing" ~42 ms); release 19-20 fps. Full switch set used: ``` VICTORY_TEXTURE_NO_WAIT=1 VICTORY_RELAY=2 VICTORY_WIDE_BACK=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_RELAY_COPY=1 VICTORY_CARD_STEPS=2 VICTORY_INDIRECT_BATCH=2 VICTORY_MAP_THREADS=1 VICTORY_TITLE_PRIORITIES=0 VICTORY_CARD_AWAKE=1 VICTORY_SHOW_AFTER=1 VICTORY_AMBIENT=0.8 VICTORY_SKIP_PIPELINES=none VICTORY_THIN=1 VICTORY_JOIN_PARTS=8 VICTORY_UPLOAD_AHEAD=1 VICTORY_BVH_QUARANTINE=1 VICTORY_MATERIAL_DEMAND=1 VICTORY_AMD_PICKS=1 VICTORY_PIPE_FIX=1 VICTORY_BVH_BUILDER=0 VICTORY_HOLE_SKIP=1 VICTORY_SUBMIT_FRAMES=2 VICTORY_SUBMIT_DEPTH=128 ``` Known on this setup: - `VICTORY_PORT_CONSTANTS=1` → black world (#163). - fxceless's `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. - With RELAY=2 we have faces here (RDNA3); the #13/#138 face loss seems RDNA4-specific or save-dependent. (AI-assisted with Claude Code; all numbers from runs on my machine.)
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-26 10:02 UTC · original

I ran 3241322 on 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.

Renderer settings Presents / seconds FPS Draws/frame
Posted settings 588 / 37.07 15.86 4,839
Add FETCH_CHECK=1 596 / 37.07 16.08 4,861
RELAY=1 CARD_STEPS=0 446 / 36.82 12.11 4,851

The 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

**@⁠UwUCammie** on GitHub · 2026-11-26 10:02 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7188818801) I ran `3241322` on 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. | Renderer settings | Presents / seconds | FPS | Draws/frame | | --- | ---: | ---: | ---: | | Posted settings | 588 / 37.07 | 15.86 | 4,839 | | Add `FETCH_CHECK=1` | 596 / 37.07 | 16.08 | 4,861 | | `RELAY=1 CARD_STEPS=0` | 446 / 36.82 | 12.11 | 4,851 | The 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](https://github.com/UwUCammie/victory-amd/blob/7df67bc/benchmarks/README.md#the-community-linuxradv-branch-in-the-first-room) · [Replay build source](https://github.com/UwUCammie/VIctory-7900XTX/tree/9d6b882)
Author
Owner

@⁠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 3241322 and 830dc19. 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-best moved to 830dc19: fxceless's VICTORY_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=4096 drops "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.

**@⁠jtrudeau1530** on GitHub · 2026-11-26 10:14 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7189098461) @⁠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 `3241322` and `830dc19`. 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-best` moved to `830dc19`: fxceless's `VICTORY_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=4096` drops "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.
Author
Owner

@⁠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

**@⁠UwUCammie** on GitHub · 2026-11-26 10:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7189796704) 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](https://github.com/UwUCammie/victory-amd/tree/88f0da15/benchmarks#compute-pipeline-waits-and-radeon-buffer-sizes) · [Compute-wait backport](https://github.com/jtrudeau1530/VIctory-7900XTX/pull/2)
Author
Owner

@⁠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 Experimental experimental-11.0-20261112.

  • The fixing commit is HansKristian-Work/dxil-spirv 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 in flatten_subgroup_shuffles, one of those fixup passes. This is useful for anyone checking whether a given vkd3d-proton build already has the fix.
  • No regressions across a whole run's shaders. I dumped all 2,707 shaders of a run with VKD3D_SHADER_DUMP_PATH. dxil-spirv b540c8a2 converts every one, and spirv-val accepts the six. The older 7c048638 fails only those six.
  • With Proton Experimental, without changing it or the prefix: rebuild vkd3d-proton's d3d12core.dll with that dxil-spirv, and put it next to victory.exe with d3d12core=n,b. Wine loads a native DLL from the program's folder before system32. The process maps that copy, the six are made in the first seconds, and 500 ms waiting for pipelines drops 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

**@⁠anoyarou** on GitHub · 2026-11-26 11:22 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7190639096) · 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 Experimental `experimental-11.0-20261112`. - **The fixing commit is HansKristian-Work/dxil-spirv `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 in `flatten_subgroup_shuffles`, one of those fixup passes. This is useful for anyone checking whether a given vkd3d-proton build already has the fix. - **No regressions across a whole run's shaders.** I dumped all 2,707 shaders of a run with `VKD3D_SHADER_DUMP_PATH`. dxil-spirv `b540c8a2` converts every one, and `spirv-val` accepts the six. The older `7c048638` fails only those six. - **With Proton Experimental, without changing it or the prefix:** rebuild vkd3d-proton's `d3d12core.dll` with that dxil-spirv, and put it next to `victory.exe` with `d3d12core=n,b`. Wine loads a native DLL from the program's folder before `system32`. The process maps that copy, the six are made in the first seconds, and `500 ms waiting for pipelines` drops 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
Author
Owner

@⁠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 ec20719 with dxil-spirv 7c048638 plus local patches (@⁠0naku's, and Royalflamejlh's rewrite_multiple_back_edges() call in flatten_subgroup_shuffles, from XCL issue 1805). All six reach host pipeline in my game runs. I haven't run the unpatched build on this title. Anyone following the report should use a vkd3d-proton with dxil-spirv b540c8a or later, as others found here.

AI-assisted (Claude Code).

**@⁠Fran-co-F** on GitHub · 2026-11-26 11:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7191307710) @⁠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 `ec20719` with dxil-spirv `7c048638` plus local patches (@⁠0naku's, and Royalflamejlh's `rewrite_multiple_back_edges()` call in `flatten_subgroup_shuffles`, from XCL issue 1805). All six reach `host pipeline` in my game runs. I haven't run the unpatched build on this title. Anyone following the report should use a vkd3d-proton with dxil-spirv `b540c8a` or later, as others found here. AI-assisted (Claude Code).
Author
Owner

@⁠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

**@⁠UwUCammie** on GitHub · 2026-11-26 12:14 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7191740762) 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](https://github.com/UwUCammie/victory-amd/tree/9eaea4cf/benchmarks#cold-control-and-compute-at-creation-comparison)
Author
Owner

@⁠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-best at 830dc191, the upstream output-size change at 1920×1080, GE-Proton 10-34 and vkd3d-proton 71cae091, I kept HEAP_WORKER=1, RELAY=2, LATE_WAIT=3, CARD_STEPS=1, CARD_BUFFERS_MIN_KB=256 and CARD_BUFFERS_MB=2048. These were fresh story starts. Lucia's face and neck remained visible.

Release build and section Successful Presents / time holding movement FPS Lowest rolling 2 s
Generic, corridor to the threshold 223 / 21.20 s 10.52 9.0
Zen 3 + thin LTO, moving past bunks and table 187 / 15.21 s 12.30 8.0
Zen 3 + thin LTO, corridor through gate opening 251 / 26.50 s 9.47 5.0

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.

**@⁠Luigilt20** on GitHub · 2026-11-26 12:52 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7192574873) 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-best` at `830dc191`, the upstream output-size change at 1920×1080, GE-Proton 10-34 and vkd3d-proton `71cae091`, I kept `HEAP_WORKER=1`, `RELAY=2`, `LATE_WAIT=3`, `CARD_STEPS=1`, `CARD_BUFFERS_MIN_KB=256` and `CARD_BUFFERS_MB=2048`. These were fresh story starts. Lucia's face and neck remained visible. | Release build and section | Successful Presents / time holding movement | FPS | Lowest rolling 2 s | |---|---:|---:|---:| | Generic, corridor to the threshold | 223 / 21.20 s | 10.52 | 9.0 | | Zen 3 + thin LTO, moving past bunks and table | 187 / 15.21 s | 12.30 | 8.0 | | Zen 3 + thin LTO, corridor through gate opening | 251 / 26.50 s | 9.47 | 5.0 | 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.
Author
Owner

@⁠Fran-co-F on GitHub · 2026-11-26 15:57 UTC · original

Isolated measurement of VICTORY_HOLE_SKIP (from @⁠jtrudeau1530's linux-amd-best, for the problem in #59), ported onto avatarmanz a9400a6 + #166. RX 9070 XT, Wine + vkd3d-proton, RADV, Series X, VICTORY_PORT_GUARD=1 in 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).

**@⁠Fran-co-F** on GitHub · 2026-11-26 15:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7196981436) Isolated measurement of `VICTORY_HOLE_SKIP` (from @⁠jtrudeau1530's `linux-amd-best`, for the problem in #59), ported onto avatarmanz `a9400a6` + #166. RX 9070 XT, Wine + vkd3d-proton, RADV, Series X, `VICTORY_PORT_GUARD=1` in 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).
Author
Owner

@⁠jtrudeau1530 on GitHub · 2026-11-26 17:38 UTC · original

Linux/RADV: RADV_PERFTEST=transfer_queue cuts the relay's copy-back by about 10 ms a frame.

With VICTORY_RELAY=2 and VICTORY_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. With RADV_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 c9c932c merged with our local changes. Switches as in our play set, plus VICTORY_PORT_GUARD=1 VICTORY_PORT_JOURNAL=1.

without with transfer_queue
Standing, diag, 180 s (26401 vs 26402) 17.1 fps, copying back 35.3 ms 18.3 fps, 24.9 ms
Standing, earlier pair (26201 vs 26203) 17.1 fps, 34.9 ms 18.2 fps, 25.0 ms
Walking, release, 540 s (26502 vs 26501/26503) 20.9 fps, 32.5 ms 21.8 / 22.3 fps, 21.7 ms

The 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_steps refuses because of BEHIND_PLACED. We are looking at that next.

AI-assisted (Claude Code); measured on my machine.

**@⁠jtrudeau1530** on GitHub · 2026-11-26 17:38 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/111#issuecomment-7199359091) **Linux/RADV: `RADV_PERFTEST=transfer_queue` cuts the relay's copy-back by about 10 ms a frame.** With `VICTORY_RELAY=2` and `VICTORY_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. With `RADV_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 `c9c932c` merged with our local changes. Switches as in our play set, plus `VICTORY_PORT_GUARD=1 VICTORY_PORT_JOURNAL=1`. | | without | with `transfer_queue` | |---|---|---| | Standing, diag, 180 s (26401 vs 26402) | 17.1 fps, copying back 35.3 ms | **18.3 fps, 24.9 ms** | | Standing, earlier pair (26201 vs 26203) | 17.1 fps, 34.9 ms | **18.2 fps, 25.0 ms** | | Walking, release, 540 s (26502 vs 26501/26503) | 20.9 fps, 32.5 ms | **21.8 / 22.3 fps, 21.7 ms** | The 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_steps` refuses because of BEHIND_PLACED. We are looking at that next. _AI-assisted (Claude Code); measured on my machine._
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#111
No description provided.