Per-call card time on an RTX 5070 Ti (Proton): two compute passes take ~18 ms a frame, inline clamps most of the rest #1186
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1186
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?
@Marukooh on GitHub · 2026-11-25 23:11 UTC · original
Where the card's time goes, per call: RTX 5070 Ti, Proton, prologue
I timed one in 64 title draws, dispatches, mesh draws and indirect executions, plus one in 64 copies, clears, barriers and resolves. Each sampled call gets two timestamps around it in the card meter's ring, and the samples are grouped by pipeline (shader hashes). Timestamps around one call overlap with its neighbours, so the table below is a ranking, not a sum. Base
0b0074eplus local work, argument clamps inline.RTX 5070 Ti 16 GB, driver 620.73, CachyOS, Proton Experimental, vkd3d-proton, 3840x2160 swap chain. Prologue, 2,500-6,000 draws a frame, pipelines ready; 17 tables of 10 s each.
982f3cccd5c04294(8x8 groups, writes an image2D, 83 texture reads)5cf00dc39042edaf(4x8 groups, 315 texture accesses, 54 shuffles, shadow sampler)cb6adcc6da2613ff14264103296aa43a910b4be059bfb28f/bff8660bf8e29c26321d411b20a35ef9/4e1ca5001eccbd277972997d15fd9e69/9f14b72117e2abec5cf00dc39042edafalso appears in #10 on a 4060 Ti.The hoisted clamps: #1184.
@HLVM04 on GitHub · 2026-11-25 23:26 UTC · original
A data point from native Windows D3D12 on the same card (RTX 5070 Ti, driver 616.64, Windows 11 build 26200): fork at
9376fd6, Series X profile, one timing run withVICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1.5cf00dc39042edaf14264103296aa43acb6adcc6da2613ffSo
5cf00dc39042edafcosts about the same on native D3D12, which points at the pass itself rather than vkd3d-proton.14264103296aa43awas much heavier for us, but that is an older tree and one run, and scenes differ. In the same run the frame line read 185.8 ms on the GPU against 119.7 ms summed over the title's commands (indirect 72.4 ms over 5,165 commands, dispatch 39.0 ms over 3,853): a gap of about 66 ms a frame of the same shape as yours, though we did not break it down further.@Marukooh on GitHub · 2026-11-26 01:29 UTC · original
Follow-up from further RTX 5070 Ti (Blackwell, Wave32 native) measurements on
guard-light(VICTORY_HOIST_CLAMPS=1,VICTORY_VIDEO_BUDGET_MB=10500):Now that VRAM spilling is fixed and inline clamps are hoisted,
982f3cccd5c04294(~11–12.5 ms) and5cf00dc39042edaf(~5–7 ms, 315 texture accesses + 54 shuffles) account for ~18 ms out of ~41–46 ms total GPU time (~40%).Next concrete diagnostic & optimization ideas specifically for these two compute hotspots:
--limit-to-submits) on982fand5cf00only: full-frame Nsight traces on Proton overflowed event/timestamp buffers (nancounters), so isolating just the submits containing982fand5cf00is needed to see whether the bottleneck is VGPR register spilling to local memory, Wave64→32+32 emulation overhead (doubling VGPRs + intra-wave shuffles on Blackwell), or L1/texture cache thrashing (especially on5cf00's 315 texture loads).5cf00or982fspill VGPRs due to split-wave64 lowering or SSA temporaries, allowing native Wave32 execution (where lanes 32–63 do not cross-communicate) or tightening register pressure could yield a major speedup on NVIDIA Wave32 GPUs.