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
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#156
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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
Build and settings
mainat85d5641plus 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; ascriptedfeature letsVICTORY_KEYSand a breakpoint step-over work withoutdiagnosticsso release builds can be driven by script.scripts/play.ps1's settings, plusVICTORY_LATE_WAIT=default,VICTORY_PIPELINE_WAIT_MS=2500,VICTORY_PIPELINE_BOOK=1,VICTORY_LAND_SKIP=1.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
--profile diag --features diagnostics0a43566to85d5641did not change the frame here (88.6 median of 3 before, 88.9 / 86.5 after).What moved it, and what did not (each one A/B'd, same scenes)
WINE_CPU_TOPOLOGYaboven/n+8; the title pins its threads as if they were2k/2k+1, so its0-7and8-12groups shared five physical cores. With the list above its masks land as on Windows.VICTORY_LAND_SKIP=1VICTORY_SUBMIT_FRAMES=2, bigger or smaller thread pools,VICTORY_COPY_COMPARE=1, unpinning the title's threadsWhere the CPU goes (Series X, 10 s at world second 60)
victory-list×8 (thin list translation)victory-wide×4victory-submitvictory-land×3The title's busiest thread is busy 64-71 % of the time; the rest it waits. In a perf profile of one
victory-listthread 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
virtual_setup_exception stack overflow(visible only withWINEDEBUG=err+all); the fault is in__wine_syscall_dispatcherwriting the thread's syscall frame. Not seen in ~18 runs on locally rebuiltntdll.socopies; cause not found yet.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.
@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
main0ce46d5,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.dllfallback inhost::compileand inindirect::make_from, because Wine'sd3dcompiler_47refuses the clamp shader (E5005onInterlockedMax/LoadoverRWByteAddressBuffer) and the world never renders without it. DXC builds the same source ascs_6_0. On Windows this never runs.Frame, Series S, in the prison interior:
For comparison, the
fxceless/victory-forkbuild 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:
VICTORY_TEXTURE_BUDGET_MBthe right knob to bound the footprint, or is there something in your tree that does it better?VICTORY_PORT_CONSTANTS=1makes 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.
@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_KEYSchange is covered by ourscriptedfeature), release build, same settings and scenes: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.
@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). OnlyVICTORY_TEXTURE_BUDGET_MBchanged.Why it plateaus. From the counters in the same run:
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:
pareto-residencyprofile that prefers keeping a smaller set resident instead of churning?VICTORY_TEXTURE_NO_WAIT=1is 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-forkmoves 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.
@z395977743-svg on GitHub · 2026-11-26 14:57 UTC · original
One Windows/RDNA 3 data point for the
LAND_SKIProw: 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
c9c932cwith 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. OnlyVICTORY_LAND_SKIPchanged. Each PresentMon sample covered about 20 seconds across that transition.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.