Frame budget: where the time goes in the prison yard (RTX 5090, Linux/Wine), and which PRs move it #3425
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3425
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?
@neonbyte1 on GitHub · 2026-11-27 00:45 UTC · original
A frame budget for one fixed scene, so that performance PRs can be ranked by what they actually remove. Measured numbers only; I'll keep this updated as runs and PRs land. Others' rows for other GPUs/OSes are welcome in the same form.
Setup: RTX 5090 (driver 620.73.04), Linux, GE-Proton11-14 Wine with its vkd3d-proton.
main(63bcca4) plus the unmerged PRs this setup needs to render the world (#2723, #439, #233, #320, #2118, #2703, #2101, #1129, #2312), plus #2958, #3120 (overlap on), #2309, #2461, #3353/#3378, #3313. GTA VI's opening prison yard, a warm shader cache, diag build. Untimed numbers are medians of the last 30 frame-rate lines of a 600 s run; timed numbers come fromVICTORY_GPU_TIMING=1(which turns overlap off), with every command in the table rather than the log's top 25.The title caps itself at 30 fps (#2469), so the target is 33.3 ms.
Where we are
The CPU side and the GPU side run one after the other: with #3312 every submission waits for its own copy lists, so #3120's overlap no longer helps.
CPU side: ~136 ms per frame (best stack + #3341 + #2472)
shadow.rscopy-backshadow.rs/host.rsrefresh pathHostHeap::sync_slotsupload_vram_copies/readback_vram_copiesbindless::uploadsOne lock,
watch::GUARDS, is held ~49 ms/frame by our own paths, and the title spends 52 ms in its write-fault handler queueing behind it.GPU side: 155 ms of commands per frame (timed)
The untimed "on the GPU" figure (~240 ms) is mostly not GPU work: lists take ~176 ms of wall time, the rest is the CPU waiting on synchronous copies. With #3312 in,
GatherCopy(41 ms) and the BVH trace (28 ms) left the top of the table.Findings so far:
D3DCompile(E5005 'Load' on RWByteAddressBuffer,[RootSignature]ignored), so every log showsno batched argument clamp: falling back to inline. #3197's window shader has the same problem. A Wine-compilable version plus #3197 is being measured.Per-PR results on this setup
Still being measured: asynchronous read-back on top of #3312 (to restore the overlap), batched clamps (#2472 fix + #3197), #3387, #3343, #3305, #3289, #3320, #3246, and two small CPU fixes (heap mirroring, bindless uploads).
AI-assisted (Claude); measured on my machine, no game data shared.
@Dathinel on GitHub · 2026-11-27 01:15 UTC · original
A row for a small card, with a different tree and scene, so it compares only loosely. RTX 3050 Laptop 4 GB (32-lane waves), Ryzen 7 7435HS, 24 GB RAM, Windows 11 native, Series S profile, a cool_fox-lineage tree, outdoor free play by a boat. Frame 150 to 154 ms (6.5 to 6.7 fps): 65 preparing, 70 on the GPU, 26 copy-back, in series. That is after skipping the 41
bvh_skinningprograms and bothCS_Primary_GatherCopyvariants. Before the skips, a batch timing that does not serialise the frame gave 128.5 ms of commands:GatherCopy49.7 in one command,bvh_skinning:*23.0, each G-buffer family under 4. One run per figure; night not checked with the skips.https://github.com/Dathinel/victory-4gb/issues/4
No game files or captures attached. Written with AI assistance (Claude Code).