GPU: track changed buffer descriptor slots with reusable bitsets #1190

Open
github-bot wants to merge 2 commits from github-bot/gh-1190 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-25 23:18 UTC · original
UwUCammie:perf/ordered-buffer-slot-bits → main · +76 −4 · 1 files · 2 commits · open

The first-room heap pass inspects about 43,000 buffer slots per frame on my RX 7900 XT. Membership updates currently touch a B-tree and a hash set, and draining the changed set drops its allocation. The descriptor indices already fit within the heap. This keeps one bit per slot in each set, returns changed slots in ascending order, and retains the allocation across drains.

I ran all 19 descriptor-host tests under Wine 11.22. A native 9700X benchmark with 83,000 live descriptors and 43,000 writes per frame took 73.56 ms with the original sets and 2.53 ms with the bitsets over 16 frames (medians of eight alternating pairs). With only 16 writes per frame over 48 frames, the medians were 0.38 and 0.51 ms. The integration run in the first room averaged 9.04 FPS at 4,844 draws/frame, within the range of the controls.

Benchmark source and commands

**@⁠UwUCammie** on GitHub · 2026-11-25 23:18 UTC · [original](https://github.com/fxceless/victory-fork/pull/1190) `UwUCammie:perf/ordered-buffer-slot-bits` → `main` · +76 −4 · 1 files · 2 commits · open The first-room heap pass inspects about 43,000 buffer slots per frame on my RX 7900 XT. Membership updates currently touch a B-tree and a hash set, and draining the changed set drops its allocation. The descriptor indices already fit within the heap. This keeps one bit per slot in each set, returns changed slots in ascending order, and retains the allocation across drains. I ran all 19 descriptor-host tests under Wine 11.22. A native 9700X benchmark with 83,000 live descriptors and 43,000 writes per frame took 73.56 ms with the original sets and 2.53 ms with the bitsets over 16 frames (medians of eight alternating pairs). With only 16 writes per frame over 48 frames, the medians were 0.38 and 0.51 ms. The integration run in the first room averaged 9.04 FPS at 4,844 draws/frame, within the range of the controls. [Benchmark source and commands](https://github.com/UwUCammie/victory-amd/tree/bench/first-room-radv/benchmarks#descriptor-slot-bookkeeping)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:59:11 +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/1190/head:github-bot/gh-1190'
git switch 'github-bot/gh-1190'

Merge

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