perf(gpu): parallelize translation of eligible large thin command lists #599

Open
github-bot wants to merge 6 commits from github-bot/gh-599 into main AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-05 14:51 UTC · original
tommiehansen:perf/phase8-thin-split-20261205 → main · +518 −14 · 3 files · 6 commits · open

Scope

Opt-in VICTORY_THIN_SPLIT=1. Split only queued, closed, eligible large recordings (at least 32 chunks), preserving ordered state checkpoints and refusing unsupported commands, including indirect/compute, copies and uploads. Smaller or unsupported lists follow the existing path.

Pinned native benchmark

Candidate and disabled baseline: 6f1d0d36b4342e3294b1940ffa7a82e53b508641, same binary, flag 0 vs 1. Windows WARP, four ABBA/BAAB blocks, 8 measured repetitions per arm within each trial, 4 workers. Exact thin-list job: 145692035029, artifact thin-split-evidence.

4096 draw workload, median across 8 trial medians per arm:

Metric Baseline Enabled Change
Translation total 2.287 ms 1.838 ms -19.6%
Translation tail 1.945 ms 0.767 ms -60.6%
Submit 75.412 ms 72.193 ms -4.3%

All four paired blocks improve translation; 10 splits per enabled large trial and exact pixel oracle. Smaller lists do not show a reliable benefit and are conservatively gated. WARP submission times are not physical GPU timing or gameplay FPS. Further title traces, concurrency and hardware testing remain useful; ready for review as an opt-in, gated implementation.

Production eligibility census

Head a494f84 adds independent opt-in VICTORY_THIN_SPLIT_CENSUS=1 counters for closed graphics lists, compatible lists, large lists, queued eligible lists and actual splits. The census works with splitting disabled; it does not assert gameplay frequency. Current native verification (passed). Pinned timing above applies to the earlier head; additional mixed-state and title replay coverage is still required.

Current head 4e6dfd6

Native checkpoint tests 2/2; WARP exact pixel oracle passes at 256, 1500 and 4096 draws. At 4096 draws, 10 splits, 1.840 ms total translation, 0.756 ms tail, 77.858 ms submit (8 measured samples; enabled-only run, not a paired comparison). At 256 draws, no split; at 1500, two splits. All-target diagnostic build passed. Previous paired results above remain pinned to the original implementation; census is opt-in. Actual title eligibility and AMD gameplay FPS are not established.

Independent RDNA4 gameplay follow-up

fsrajner, RX 9070 XT: matched intro snapshot, two interleaved repetitions, 4K FSR Quality, HWRT, FG off. Baseline 40/42 ms per frame vs enabled 40/41 ms; worst 5 s window 50.1/59.7 vs 46.5/49.3 ms. No errors. Average improvement within noise, not native-resolution evidence. Keep opt-in; promising tail behavior requires further repetitions/CPU-bound scenes.

**@⁠tommiehansen** on GitHub · 2026-12-05 14:51 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/599) `tommiehansen:perf/phase8-thin-split-20261205` → `main` · +518 −14 · 3 files · 6 commits · open ## Scope Opt-in `VICTORY_THIN_SPLIT=1`. Split only queued, closed, eligible large recordings (at least 32 chunks), preserving ordered state checkpoints and refusing unsupported commands, including indirect/compute, copies and uploads. Smaller or unsupported lists follow the existing path. ## Pinned native benchmark Candidate and disabled baseline: `6f1d0d36b4342e3294b1940ffa7a82e53b508641`, same binary, flag 0 vs 1. Windows WARP, four ABBA/BAAB blocks, 8 measured repetitions per arm within each trial, 4 workers. Exact thin-list job: [145692035029](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47525827524/job/145692035029), artifact `thin-split-evidence`. 4096 draw workload, median across 8 trial medians per arm: | Metric | Baseline | Enabled | Change | |---|---:|---:|---:| | Translation total | 2.287 ms | 1.838 ms | -19.6% | | Translation tail | 1.945 ms | 0.767 ms | -60.6% | | Submit | 75.412 ms | 72.193 ms | -4.3% | All four paired blocks improve translation; 10 splits per enabled large trial and exact pixel oracle. Smaller lists do not show a reliable benefit and are conservatively gated. WARP submission times are not physical GPU timing or gameplay FPS. Further title traces, concurrency and hardware testing remain useful; ready for review as an opt-in, gated implementation. ## Production eligibility census Head `a494f84` adds independent opt-in `VICTORY_THIN_SPLIT_CENSUS=1` counters for closed graphics lists, compatible lists, large lists, queued eligible lists and actual splits. The census works with splitting disabled; it does not assert gameplay frequency. [Current native verification (passed)](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47536772033). Pinned timing above applies to the earlier head; additional mixed-state and title replay coverage is still required. ### Current head `4e6dfd6` Native checkpoint tests 2/2; WARP exact pixel oracle passes at 256, 1500 and 4096 draws. At 4096 draws, 10 splits, 1.840 ms total translation, 0.756 ms tail, 77.858 ms submit (8 measured samples; enabled-only run, not a paired comparison). At 256 draws, no split; at 1500, two splits. All-target diagnostic build passed. Previous paired results above remain pinned to the original implementation; census is opt-in. Actual title eligibility and AMD gameplay FPS are not established. ### Independent RDNA4 gameplay follow-up [fsrajner, RX 9070 XT](https://git.gtahub.st/github/lobomfz--VIctory-xmem/pulls/599): matched intro snapshot, two interleaved repetitions, 4K FSR Quality, HWRT, FG off. Baseline 40/42 ms per frame vs enabled 40/41 ms; worst 5 s window 50.1/59.7 vs 46.5/49.3 ms. No errors. Average improvement within noise, not native-resolution evidence. Keep opt-in; promising tail behavior requires further repetitions/CPU-bound scenes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 14:53:45 +00:00
Author
Owner

@⁠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 frame lines (≥ 50 ms). This scene is GPU-bound: the submit thread waits ~16 ms a frame on the card.

arm ms/frame 5 s windows > 40 ms worst window gpu_wait long frames
base 40 / 42 22/36 50.1 / 59.7 ms 16.0 / 16.2 ms 262 / 249
#612 SUBRENDER_WORKERS=8 40 / 40 22/36 55.2 / 55.9 ms 20.9 / 21.6 ms 233 / 220
#599 THIN_SPLIT=1 40 / 41 25/36 46.5 / 49.3 ms 17.5 / 15.9 ms 246 / 246
#553 JOIN_BARRIERS=1 40 / 40 21/36 51.5 / 52.5 ms 16.3 / 15.6 ms 242 / 239
#608 EVENT_DIRTY_SHADOWS=1 42 / 41 28/36 56.1 / 48.9 ms 17.1 / 16.7 ms 268 / 270
  • For this PR: the best worst window of all arms (46.5 / 49.3 ms), but the mean and the slow-window share are within noise. No errors.
**@⁠fsrajner** on GitHub · 2026-12-05 20:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/599#issuecomment-7444535346) 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 frame` lines (≥ 50 ms). This scene is GPU-bound: the submit thread waits ~16 ms a frame on the card. | arm | ms/frame | 5 s windows > 40 ms | worst window | gpu_wait | long frames | |---|---|---|---|---|---| | base | 40 / 42 | 22/36 | 50.1 / 59.7 ms | 16.0 / 16.2 ms | 262 / 249 | | #612 `SUBRENDER_WORKERS=8` | 40 / 40 | 22/36 | 55.2 / 55.9 ms | 20.9 / 21.6 ms | 233 / 220 | | #599 `THIN_SPLIT=1` | 40 / 41 | 25/36 | 46.5 / 49.3 ms | 17.5 / 15.9 ms | 246 / 246 | | #553 `JOIN_BARRIERS=1` | 40 / 40 | 21/36 | 51.5 / 52.5 ms | 16.3 / 15.6 ms | 242 / 239 | | #608 `EVENT_DIRTY_SHADOWS=1` | 42 / 41 | 28/36 | 56.1 / 48.9 ms | 17.1 / 16.7 ms | 268 / 270 | - For this PR: the best worst window of all arms (46.5 / 49.3 ms), but the mean and the slow-window share are within noise. No errors.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/599/head:github-bot/gh-599'
git switch 'github-bot/gh-599'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-599'
git switch 'github-bot/gh-599'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-599'
git switch 'github-bot/gh-599'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-599'
git switch 'main'
git merge --squash 'github-bot/gh-599'
git switch 'main'
git merge --ff-only 'github-bot/gh-599'
git switch 'main'
git merge 'github-bot/gh-599'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.