GPU: count skipped descriptor table slots once per page #1128

Open
github-bot wants to merge 1 commit from github-bot/gh-1128 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-25 20:58 UTC · original
UwUCammie:pr/count-tabled-per-page → main · +5 −1 · 1 files · 1 commits · open

In the prison scene the descriptor scan skips roughly 180k recently tabled records per frame. Each skip updates the same atomic statistics counter while the copied-record lock is held. Count skips locally and add the page total after releasing the lock. The single-record path keeps its existing accounting.

I timed the change on an RX 7900 XT, RADV 26.3.1, Wine 11.22 and vkd3d-proton. Two 480 s scripted runs used the same instrumented local stack with #1043, parallel heap scanning and relay 2. The medians below cover seconds 270–390, before the next scripted input.

Per frame Per-record counter Per-page counter
Parallel scan, join and sort 4.89 ms 3.07 ms
Whole descriptor sync 21.64 ms 18.99 ms
Total frame time 113.3 ms 112.1 ms
Records inspected 356k 346k
Slots counted as tabled 188k 184k

The two runs had slightly different workloads. The frame-time difference is small, and the parallel scan on this stack can benefit more than the serial scanner on main. This patch can land independently.

All 18 descriptor-host tests passed under Wine on the PR branch. On the instrumented stack, 31 descriptor-host, 12 watch and 6 plain-copy tests passed. A separate Windows Event Log subscription test fails under Wine on both this branch and its unmodified base.

**@⁠UwUCammie** on GitHub · 2026-11-25 20:58 UTC · [original](https://github.com/fxceless/victory-fork/pull/1128) `UwUCammie:pr/count-tabled-per-page` → `main` · +5 −1 · 1 files · 1 commits · open In the prison scene the descriptor scan skips roughly 180k recently tabled records per frame. Each skip updates the same atomic statistics counter while the copied-record lock is held. Count skips locally and add the page total after releasing the lock. The single-record path keeps its existing accounting. I timed the change on an RX 7900 XT, RADV 26.3.1, Wine 11.22 and vkd3d-proton. Two 480 s scripted runs used the same instrumented local stack with #1043, parallel heap scanning and relay 2. The medians below cover seconds 270–390, before the next scripted input. | Per frame | Per-record counter | Per-page counter | |---|---:|---:| | Parallel scan, join and sort | 4.89 ms | 3.07 ms | | Whole descriptor sync | 21.64 ms | 18.99 ms | | Total frame time | 113.3 ms | 112.1 ms | | Records inspected | 356k | 346k | | Slots counted as tabled | 188k | 184k | The two runs had slightly different workloads. The frame-time difference is small, and the parallel scan on this stack can benefit more than the serial scanner on main. This patch can land independently. All 18 descriptor-host tests passed under Wine on the PR branch. On the instrumented stack, 31 descriptor-host, 12 watch and 6 plain-copy tests passed. A separate Windows Event Log subscription test fails under Wine on both this branch and its unmodified base.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:02 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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