perf(gpu): parallelize translation of eligible large thin command lists #599
No reviewers
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/lobomfz--VIctory-xmem!599
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-599"
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?
@tommiehansen on GitHub · 2026-12-05 14:51 UTC · original
tommiehansen:perf/phase8-thin-split-20261205→main· +518 −14 · 3 files · 6 commits · openWhy
Translating a large already recorded graphics list serially can delay CPU submission even when independent segments can be translated concurrently.
What changes
Opt-in VICTORY_THIN_SPLIT=1: split queued, closed, eligible large recordings (at least 32 chunks) into ordered state checkpoints. Refuse indirect/compute, copies, uploads and unsupported commands. Smaller lists retain original path. Independent VICTORY_THIN_SPLIT_CENSUS=1 counts eligibility and actual splits even when splitting is disabled.
Benchmark results
Windows WARP native benchmark,
6f1d0d3, same binary off/on; four ABBA/BAAB blocks, eight repetitions per trial, four workers, 4096 draws.All four translation blocks improved, ten splits and exact pixels. Current
4e6dfd6CI enabled-only 4096 draws 1.840 ms total, 0.756 ms tail, 77.858 ms submit, eight samples; no split at 256 draws, two at 1500.Independent RX 9070 XT report: 4K FSR Quality, HWRT, FG off, two repeats: 40/42 ms vs 40/41 ms; worst five-second window 50.1/59.7 vs 46.5/49.3 ms. No errors; average within noise, not native-resolution evidence.
Why this should be merged
Scoped CPU translation/tail savings for large admitted lists with exact ordering and small-list fallback. Ready for review opt-in; actual title eligibility remains workload dependent.
Validation
Current head two checkpoint tests, exact pixels at 256/1500/4096, diagnostics all-targets and census passed. Mixed state, descriptor reads and concurrent title replay requested.
Compatibility and dependencies
Default off; no HWRT foundation dependency. Preserve state checkpoints and refusal. Test CPU-bound scenes and report eligible/split counts, frame-time tails and visual parity.
Archived previous description, checklist and historical measurements.
@fsrajner on GitHub · 2026-12-05 20:06 UTC · original
A/B data point on RDNA 4. This PR was tested together with #612, #599, #553 and #608 in one build. All are opt-in, so the arms differ only by env.
Setup: RX 9070 XT 16 GB, Ryzen 7 7800X3D, CachyOS, repo-patched Mesa 26.3.1 RADV + vkd3d-proton, proton-cachyos-slr. Series X profile, 4K output with FSR 4.1.2 Quality, hardware RT (
HW_RT+LEAN_BUILDER+REUSE), frame generation off, headless gamescope. Base:main@49f5f9e+rt-7-reuse+ #542 (+ #611/#596, switched off). The four PRs merged with no conflicts.Method: the same intro snapshot every run, 120 s after the first A press. One warm-up run, then two rounds of all five arms, interleaved. "Long frames" are the
long framelines (≥ 50 ms). This scene is GPU-bound: the submit thread waits ~16 ms a frame on the card.SUBRENDER_WORKERS=8THIN_SPLIT=1JOIN_BARRIERS=1EVENT_DIRTY_SHADOWS=1@Milkhaus-tech on GitHub · 2026-12-06 03:53 UTC · original
RDNA 4 A/B for
VICTORY_THIN_SPLIT=1.Setup: RX 9060 XT 16 GB (RDNA 4, Navi 44), Ryzen 7 5800X, 32 GB RAM, Ubuntu 26.04 (kernel 7.0.0-44), repo Mesa 26.3.1 RADV, GE-Proton11-11, resizable BAR on. Series X profile, potato preset, 1920x1080 output,
VICTORY_FSR_4K=balanced, ML frame generation, ray tracing off.Method:
VICTORY_BENCH_ROUTE=downtown, with the same save restored before each run. I measured route start +30 s to +330 s from thestats: frame5 s windows (about 59 per run). Rendered fps is shown; generated frames are not counted. "p10" is the 10th-percentile 5 s window. One arm per run; the arms were interleaved, not all A then all B. The default arm varied from 31.6 to 33.4 fps over 8 runs, so differences under about 2 fps are noise.Build:
main@8c4e663+ #596 + #637 + #639 + #611 + #599 + #626, all switches off except the one being tested.No measurable change on this setup. The game uses about 9 of 16 threads, and the GPU is mostly the limit: the card reads about 90% busy in play, and waiting on it is a large part of long frames. So spreading list translation across more threads has little to win here. It could matter on CPUs with fewer cores or when the GPU isn't the bottleneck. No visual differences, errors or crashes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.