Linux/Proton (RADV, RX 6900 XT, 5800X3D) on 85d5641: 85-88 ms a frame in Series X, 79 in Series S; what moved it and where the CPU goes #156

Open
opened 2026-11-26 08:31:28 +00:00 by github-bot · 4 comments
Owner

@⁠zocram4cc on GitHub · 2026-11-26 08:25 UTC · original

Frame times measured on Linux, for the record next to the Windows reports (#70, #133, #143) and the other Linux ones (#111, #129, #138). One machine, one scene sequence, numbers from the frametime CSV (VICTORY_FRAMETIME_DUMP): median of the first 150 one-second rows with more than 100 draws ("world seconds").

Machine

CPU Ryzen 7 5800X3D (8 cores / 16 threads)
GPU Radeon RX 6900 XT 16 GB, Mesa RADV 26.3.1
RAM 78 GB
OS Garuda (Arch), kernel 7.3.5
Wine Proton Experimental (11.0-20261112) with the view-tree wineserver
Game 1.0.2.1, own dump, saved game in the world

Build and settings

  • main at 85d5641 plus our branch (guard-page fix #68, Linux pieces, and our own single-latch loop fix, the same idea as #129's first commit). Release profile; a scripted feature lets VICTORY_KEYS and a breakpoint step-over work without diagnostics so release builds can be driven by script.
  • scripts/play.ps1's settings, plus VICTORY_LATE_WAIT=default, VICTORY_PIPELINE_WAIT_MS=2500, VICTORY_PIPELINE_BOOK=1, VICTORY_LAND_SKIP=1.
  • Linux only: GLIBC_TUNABLES=glibc.pthread.rseq=0, WINE_CPU_TOPOLOGY=16:0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15 (see below).

Frame times

Configuration ms a frame (median) slowest frame of each second (median) draws a frame GPU busy
Series X, release 87.9 / 85.1 (2 runs) 140 / 134 4,850 61 %
Series X, --profile diag --features diagnostics 88.9 / 86.5 125 / 137 — 59 %
Series S, release 79.7 / 79.2 104 / 98 4,160-4,490 52 %
Series S, release, second plane composed over the first 76.8 104 4,540 —
  • Over a longer session (512 world seconds, Series X, diag) the median was 85.5 ms, 11.7 fps.
  • Rebasing from 0a43566 to 85d5641 did not change the frame here (88.6 median of 3 before, 88.9 / 86.5 after).
  • Run to run spread of the median is about ±1.5 % on the same settings; the slowest-frame column about ±10 %.

What moved it, and what did not (each one A/B'd, same scenes)

Change Effect
WINE_CPU_TOPOLOGY above −3 % (median of 3: 88.6 vs 91.5). Linux numbers SMT siblings n/n+8; the title pins its threads as if they were 2k/2k+1, so its 0-7 and 8-12 groups shared five physical cores. With the list above its masks land as on Windows.
Release instead of diag −3 %
Series S instead of Series X −8 % median, −27 % slowest frame
VICTORY_LAND_SKIP=1 −4 % (one A/B, at the noise edge)
Kayotic1337's Wine fallback for known holes (#59, with the correction posted there) questions about holes 18,520 → 2 a frame, copies 49 → 34 ms a frame; frame unchanged
VICTORY_SUBMIT_FRAMES=2, bigger or smaller thread pools, VICTORY_COPY_COMPARE=1, unpinning the title's threads flat or worse

Where the CPU goes (Series X, 10 s at world second 60)

Threads CPU (100 % = one core)
victory-list ×8 (thin list translation) 207 %
victory-wide ×4 107 %
victory-submit 52 %
victory-land ×3 40 %
other runtime threads ~110 %
the title's own threads ~330 %

The title's busiest thread is busy 64-71 % of the time; the rest it waits. In a perf profile of one victory-list thread about 59 % is the runtime's own per-call work (bind, keep, view lookups, buffer lookups, locks) and 20-26 % is inside vkd3d-proton and RADV; the rest is kernel and Wine.

Known problems here

  • Faces: heads without skin in Series X on this tree; with Series S the skin is there. #129's compute-wait fix addresses the Series X case; not yet run here.
  • A crash in about one run in three on stock Proton: Wine aborts a runtime thread with virtual_setup_exception stack overflow (visible only with WINEDEBUG=err+all); the fault is in __wine_syscall_dispatcher writing the thread's syscall frame. Not seen in ~18 runs on locally rebuilt ntdll.so copies; cause not found yet.
  • The title releases one SRW lock it does not own about 500 times a run (RtlReleaseSRWLockExclusive ... is not owned exclusive); impact unknown.

Not tested on Windows. Investigation and code with an AI assistant (Claude), measured by me on the machine above.

**@⁠zocram4cc** on GitHub · 2026-11-26 08:25 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/156) Frame times measured on Linux, for the record next to the Windows reports (#70, #133, #143) and the other Linux ones (#111, #129, #138). One machine, one scene sequence, numbers from the frametime CSV (`VICTORY_FRAMETIME_DUMP`): median of the first 150 one-second rows with more than 100 draws ("world seconds"). ## Machine | | | |---|---| | CPU | Ryzen 7 5800X3D (8 cores / 16 threads) | | GPU | Radeon RX 6900 XT 16 GB, Mesa RADV 26.3.1 | | RAM | 78 GB | | OS | Garuda (Arch), kernel 7.3.5 | | Wine | Proton Experimental (11.0-20261112) with the view-tree wineserver | | Game | 1.0.2.1, own dump, saved game in the world | ## Build and settings - `main` at `85d5641` plus our branch (guard-page fix #68, Linux pieces, and our own single-latch loop fix, the same idea as #129's first commit). Release profile; a `scripted` feature lets `VICTORY_KEYS` and a breakpoint step-over work without `diagnostics` so release builds can be driven by script. - `scripts/play.ps1`'s settings, plus `VICTORY_LATE_WAIT=default`, `VICTORY_PIPELINE_WAIT_MS=2500`, `VICTORY_PIPELINE_BOOK=1`, `VICTORY_LAND_SKIP=1`. - Linux only: `GLIBC_TUNABLES=glibc.pthread.rseq=0`, `WINE_CPU_TOPOLOGY=16:0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15` (see below). ## Frame times | Configuration | ms a frame (median) | slowest frame of each second (median) | draws a frame | GPU busy | |---|---:|---:|---:|---:| | Series X, release | 87.9 / 85.1 (2 runs) | 140 / 134 | 4,850 | 61 % | | Series X, `--profile diag --features diagnostics` | 88.9 / 86.5 | 125 / 137 | — | 59 % | | **Series S, release** | **79.7 / 79.2** | **104 / 98** | 4,160-4,490 | 52 % | | Series S, release, second plane composed over the first | 76.8 | 104 | 4,540 | — | - Over a longer session (512 world seconds, Series X, diag) the median was 85.5 ms, 11.7 fps. - Rebasing from `0a43566` to `85d5641` did not change the frame here (88.6 median of 3 before, 88.9 / 86.5 after). - Run to run spread of the median is about ±1.5 % on the same settings; the slowest-frame column about ±10 %. ## What moved it, and what did not (each one A/B'd, same scenes) | Change | Effect | |---|---| | `WINE_CPU_TOPOLOGY` above | −3 % (median of 3: 88.6 vs 91.5). Linux numbers SMT siblings `n`/`n+8`; the title pins its threads as if they were `2k`/`2k+1`, so its `0-7` and `8-12` groups shared five physical cores. With the list above its masks land as on Windows. | | Release instead of diag | −3 % | | Series S instead of Series X | −8 % median, −27 % slowest frame | | `VICTORY_LAND_SKIP=1` | −4 % (one A/B, at the noise edge) | | Kayotic1337's Wine fallback for known holes (#59, with the correction posted there) | questions about holes 18,520 → 2 a frame, copies 49 → 34 ms a frame; frame unchanged | | `VICTORY_SUBMIT_FRAMES=2`, bigger or smaller thread pools, `VICTORY_COPY_COMPARE=1`, unpinning the title's threads | flat or worse | ## Where the CPU goes (Series X, 10 s at world second 60) | Threads | CPU (100 % = one core) | |---|---:| | `victory-list` ×8 (thin list translation) | 207 % | | `victory-wide` ×4 | 107 % | | `victory-submit` | 52 % | | `victory-land` ×3 | 40 % | | other runtime threads | ~110 % | | the title's own threads | ~330 % | The title's busiest thread is busy 64-71 % of the time; the rest it waits. In a perf profile of one `victory-list` thread about 59 % is the runtime's own per-call work (bind, keep, view lookups, buffer lookups, locks) and 20-26 % is inside vkd3d-proton and RADV; the rest is kernel and Wine. ## Known problems here - **Faces**: heads without skin in Series X on this tree; with Series S the skin is there. #129's compute-wait fix addresses the Series X case; not yet run here. - **A crash in about one run in three** on stock Proton: Wine aborts a runtime thread with `virtual_setup_exception stack overflow` (visible only with `WINEDEBUG=err+all`); the fault is in `__wine_syscall_dispatcher` writing the thread's syscall frame. Not seen in ~18 runs on locally rebuilt `ntdll.so` copies; cause not found yet. - The title releases one SRW lock it does not own about 500 times a run (`RtlReleaseSRWLockExclusive ... is not owned exclusive`); impact unknown. Not tested on Windows. Investigation and code with an AI assistant (Claude), measured by me on the machine above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:31:28 +00:00
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-26 08:49 UTC · original

Ran your tree on an 8 GB card under Wine/RADV. It holds and it is lighter per frame than the fork we came from; memory is nowhere near the 35-46 GB your README warns about, at least with a texture budget and Series S.

Setup: CachyOS kernel 7.3.5, Ryzen 5 9600X, 30 GB RAM, Radeon RX 7600 XT 8 GB, RADV (Mesa 27.0.0), Wine 11.22, vkd3d-proton from master, your main 0ce46d5, x86_64-pc-windows-gnu, --features diagnostics, retail 1.0.2.1.
Switches: --console series-s, VICTORY_TEXTURE_BUDGET_MB=4096, VICTORY_CARD_BUFFERS_MB=1024, plus the launcher-equivalent ones from the README (VICTORY_RELAY=2, VICTORY_INDIRECT_GATHER=1, VICTORY_HEAP_WORKER=1, VICTORY_CARD_FETCH_INFLIGHT=1).
One local patch: a dxcompiler.dll fallback in host::compile and in indirect::make_from, because Wine's d3dcompiler_47 refuses the clamp shader (E5005 on InterlockedMax/Load over RWByteAddressBuffer) and the world never renders without it. DXC builds the same source as cs_6_0. On Windows this never runs.

Frame, Series S, in the prison interior:

value
best stretch 132 ms a frame (7.5 fps) at 4,501 draws
29 world frames average 4.27 fps, median 227 ms, 90th percentile 2.0 s
copies per frame 88-92 MB
textures per frame 18 MB
copied back 46 MB
GPU busy 32-38 ms of the frame

For comparison, the fxceless/victory-fork build we tested the same way moves 150-250 MB of copies a frame for the same scene, so whatever you did to the copy path shows up as a third of the traffic here.

Memory: RSS 8.9 GB, VRAM 7.5 GB of 8.2 GB, 10.8 GB of RAM still available. So on this machine it is 8-9 GB, not 35: the texture budget caps the host copies, and the price is the visual defect below.

Still open here: rectangular tiles of unrelated texture on the character's back (same in both builds), and interiors are dark without ray tracing.

Questions, if you have a minute:

  1. Is VICTORY_TEXTURE_BUDGET_MB the right knob to bound the footprint, or is there something in your tree that does it better?
  2. Is Series S meant to be used this way, or does your speed work assume Series X?
  3. #163 says VICTORY_PORT_CONSTANTS=1 makes every world frame black on RADV — I did not set it. Is there a switch we should not enable on RADV?

No game files, dumps or screenshots, numbers only.

**@⁠YaBulochka** on GitHub · 2026-11-26 08:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/156#issuecomment-7187060027) Ran your tree on an 8 GB card under Wine/RADV. It holds and it is lighter per frame than the fork we came from; memory is nowhere near the 35-46 GB your README warns about, at least with a texture budget and Series S. **Setup:** CachyOS kernel 7.3.5, Ryzen 5 9600X, 30 GB RAM, Radeon RX 7600 XT 8 GB, RADV (Mesa 27.0.0), Wine 11.22, vkd3d-proton from master, your `main` `0ce46d5`, `x86_64-pc-windows-gnu`, `--features diagnostics`, retail 1.0.2.1. **Switches:** `--console series-s`, `VICTORY_TEXTURE_BUDGET_MB=4096`, `VICTORY_CARD_BUFFERS_MB=1024`, plus the launcher-equivalent ones from the README (`VICTORY_RELAY=2`, `VICTORY_INDIRECT_GATHER=1`, `VICTORY_HEAP_WORKER=1`, `VICTORY_CARD_FETCH_INFLIGHT=1`). **One local patch:** a `dxcompiler.dll` fallback in `host::compile` and in `indirect::make_from`, because Wine's `d3dcompiler_47` refuses the clamp shader (`E5005` on `InterlockedMax`/`Load` over `RWByteAddressBuffer`) and the world never renders without it. DXC builds the same source as `cs_6_0`. On Windows this never runs. **Frame, Series S, in the prison interior:** | | value | |---|---| | best stretch | 132 ms a frame (7.5 fps) at 4,501 draws | | 29 world frames | average 4.27 fps, median 227 ms, 90th percentile 2.0 s | | copies per frame | 88-92 MB | | textures per frame | 18 MB | | copied back | 46 MB | | GPU busy | 32-38 ms of the frame | For comparison, the `fxceless/victory-fork` build we tested the same way moves 150-250 MB of copies a frame for the same scene, so whatever you did to the copy path shows up as a third of the traffic here. **Memory:** RSS 8.9 GB, VRAM 7.5 GB of 8.2 GB, 10.8 GB of RAM still available. So on this machine it is 8-9 GB, not 35: the texture budget caps the host copies, and the price is the visual defect below. **Still open here:** rectangular tiles of unrelated texture on the character's back (same in both builds), and interiors are dark without ray tracing. Questions, if you have a minute: 1. Is `VICTORY_TEXTURE_BUDGET_MB` the right knob to bound the footprint, or is there something in your tree that does it better? 2. Is Series S meant to be used this way, or does your speed work assume Series X? 3. #163 says `VICTORY_PORT_CONSTANTS=1` makes every world frame black on RADV — I did not set it. Is there a switch we should not enable on RADV? No game files, dumps or screenshots, numbers only.
Author
Owner

@⁠zocram4cc on GitHub · 2026-11-26 08:49 UTC · original

Follow-up: the same machine with #129 (Beqren) integrated on top of the tree above (13 of its 14 code commits; its VICTORY_KEYS change is covered by our scripted feature), release build, same settings and scenes:

without #129 with #129
Series X, ms a frame 87.9 / 85.1 87.5 / 84.7
Series X, slowest frame of each second 140 / 134 136 / 135
Series S, ms a frame 79.7 / 79.2 73.9 / 80.7

Speed is unchanged within the noise, and the faces are fixed in Series X (frame captures at world frames 1579 and 2490 show skin on the necks and the guard's face, which were missing without #129). It ran 211 world seconds after a cold shader cache with no crash.

**@⁠zocram4cc** on GitHub · 2026-11-26 08:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/156#issuecomment-7187063814) Follow-up: the same machine with **#129 (Beqren) integrated** on top of the tree above (13 of its 14 code commits; its `VICTORY_KEYS` change is covered by our `scripted` feature), release build, same settings and scenes: | | without #129 | with #129 | |---|---:|---:| | Series X, ms a frame | 87.9 / 85.1 | 87.5 / 84.7 | | Series X, slowest frame of each second | 140 / 134 | 136 / 135 | | Series S, ms a frame | 79.7 / 79.2 | 73.9 / 80.7 | Speed is unchanged within the noise, and **the faces are fixed in Series X** (frame captures at world frames 1579 and 2490 show skin on the necks and the guard's face, which were missing without #129). It ran 211 world seconds after a cold shader cache with no crash.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-26 09:14 UTC · original

Follow-up on the same machine, with a texture-budget sweep: the stall is the working set, not the budget, and the card plateaus at ~6.6 GB no matter what I set.

Same setup as above (RX 7600 XT 8 GB, RADV, Wine 11.22, your 0ce46d5, Series S, VICTORY_PORT_DESCRIPTORS=1, VICTORY_AMBIENT=0.8). Only VICTORY_TEXTURE_BUDGET_MB changed.

budget VRAM used RSS frame (samples)
3072 6.62 GB 7.0 GB 145-162 ms
4608 6.83 GB 8.1 GB 132-342 ms
5632 6.57 GB 5.4-8.1 GB 146-755 ms

Why it plateaus. From the counters in the same run:

memory of textures: 43,437 title textures have no host copy yet (16,458 MB of title memory)

The title's texture set is ~16 GB. The card holds 6.6 GB of it, room() stops making copies, and from then on every new district evicts and re-reads. That is the 750 ms spike, and it is why memory use stops growing while the title keeps asking.

GPU time is 0-3 ms in those frames, so nothing is waiting on the card; the frame is copies (100-140 MB), copy-backs (35-45 MB) and staging.

Questions:

  1. Is there an eviction or residency priority in your tree that I have not found — something in the pareto-residency profile that prefers keeping a smaller set resident instead of churning?
  2. Does Series S change the texture set at all on your machine (fewer HD variants), or is it the same 16 GB?
  3. VICTORY_TEXTURE_NO_WAIT=1 is in your launcher: with it on, do textures that never arrive leave the previous content (pop-in) by design? That is what we see, and I want to be sure it is the intended trade.

For reference, the same scene in fxceless/victory-fork moves 150-250 MB of copies a frame; yours at 100-140 MB is where the extra 2-3 fps on this card comes from.

No game files or dumps; numbers only.

**@⁠YaBulochka** on GitHub · 2026-11-26 09:14 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/156#issuecomment-7187633261) Follow-up on the same machine, with a texture-budget sweep: the stall is the working set, not the budget, and the card plateaus at ~6.6 GB no matter what I set. **Same setup** as above (RX 7600 XT 8 GB, RADV, Wine 11.22, your `0ce46d5`, Series S, `VICTORY_PORT_DESCRIPTORS=1`, `VICTORY_AMBIENT=0.8`). Only `VICTORY_TEXTURE_BUDGET_MB` changed. | budget | VRAM used | RSS | frame (samples) | |---|---:|---:|---| | 3072 | 6.62 GB | 7.0 GB | 145-162 ms | | 4608 | 6.83 GB | 8.1 GB | 132-342 ms | | 5632 | 6.57 GB | 5.4-8.1 GB | 146-755 ms | **Why it plateaus.** From the counters in the same run: ``` memory of textures: 43,437 title textures have no host copy yet (16,458 MB of title memory) ``` The title's texture set is ~16 GB. The card holds 6.6 GB of it, `room()` stops making copies, and from then on every new district evicts and re-reads. That is the 750 ms spike, and it is why memory use stops growing while the title keeps asking. GPU time is 0-3 ms in those frames, so nothing is waiting on the card; the frame is copies (100-140 MB), copy-backs (35-45 MB) and staging. Questions: 1. Is there an eviction or residency priority in your tree that I have not found — something in the `pareto-residency` profile that prefers keeping a smaller set resident instead of churning? 2. Does Series S change the texture set at all on your machine (fewer HD variants), or is it the same 16 GB? 3. `VICTORY_TEXTURE_NO_WAIT=1` is in your launcher: with it on, do textures that never arrive leave the previous content (pop-in) by design? That is what we see, and I want to be sure it is the intended trade. For reference, the same scene in `fxceless/victory-fork` moves 150-250 MB of copies a frame; yours at 100-140 MB is where the extra 2-3 fps on this card comes from. No game files or dumps; numbers only.
Author
Owner

@⁠z395977743-svg on GitHub · 2026-11-26 14:57 UTC · original

One Windows/RDNA 3 data point for the LAND_SKIP row: the readback-skip counter stayed at its printed zero in the opening prison room on an RX 7900 XTX.

Ryzen 5 5600X, 32 GB RAM, driver 32.0.32029.2010, Windows 10 19045. Series X on c9c932c with local integration of #53, #98 and #153, direct command lists, windowed 1920×1080 output, 1280×720 input and FSR 3 frame generation. I used copies of the same save and a warmed cache. Both runs skipped the intro and issued the same two short backwards inputs at the window, turning the camera towards the bunks and door. Only VICTORY_LAND_SKIP changed. Each PresentMon sample covered about 20 seconds across that transition.

LAND_SKIP Host landing reports across the run Windows displayed frames / seconds p90 displayed interval
0 114, all printed 0 pieces / 0.0 MB held by an earlier fetch 465 / 19.78 (23.51 FPS) 81.20 ms
1 115, same printed counters 472 / 19.89 (23.73 FPS) 81.24 ms

The renderer's samples in both capture windows went from roughly 5,000 to 7,400 draws/frame as the camera turned, with zero pipelines being built and zero indirect draws dropped in those samples. The FPS column includes frame generation. A single pair with a less-than-1% difference gives us no measurable reason to enable the switch for this scene; the printed counters did not identify eligible traffic at their reporting precision. Other scenes and the Proton path may differ.

**@⁠z395977743-svg** on GitHub · 2026-11-26 14:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/156#issuecomment-7195583662) One Windows/RDNA 3 data point for the `LAND_SKIP` row: the readback-skip counter stayed at its printed zero in the opening prison room on an RX 7900 XTX. Ryzen 5 5600X, 32 GB RAM, driver 32.0.32029.2010, Windows 10 19045. Series X on `c9c932c` with local integration of #53, #98 and #153, direct command lists, windowed 1920×1080 output, 1280×720 input and FSR 3 frame generation. I used copies of the same save and a warmed cache. Both runs skipped the intro and issued the same two short backwards inputs at the window, turning the camera towards the bunks and door. Only `VICTORY_LAND_SKIP` changed. Each PresentMon sample covered about 20 seconds across that transition. | LAND_SKIP | Host landing reports across the run | Windows displayed frames / seconds | p90 displayed interval | |---|---|---|---| | 0 | 114, all printed 0 pieces / 0.0 MB held by an earlier fetch | 465 / 19.78 (23.51 FPS) | 81.20 ms | | 1 | 115, same printed counters | 472 / 19.89 (23.73 FPS) | 81.24 ms | The renderer's samples in both capture windows went from roughly 5,000 to 7,400 draws/frame as the camera turned, with zero pipelines being built and zero indirect draws dropped in those samples. The FPS column includes frame generation. A single pair with a less-than-1% difference gives us no measurable reason to enable the switch for this scene; the printed counters did not identify eligible traffic at their reporting precision. Other scenes and the Proton path may differ.
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#156
No description provided.