Cache per-part buffer spans in the heap sweep #337

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

@⁠XaviFortes on GitHub · 2026-11-26 17:29 UTC · original
XaviFortes:upstream/buffer-sweep → main · +131 −24 · 1 files · 1 commits · open

Summary

Deduplicate descriptor slots selected by the rolling scan and the write journal. Cache buffer spans per sweep partition and rebuild a partition when a slot replacement or removal invalidates its span. Preserve the existing refresh cadence and unwatched-copy throttling.

Tested and benchmarked in VIctory-RDNA on an RX 7900 XT with Series X at 4K output. An earlier warm run reached a 42.5 ms heap-buffer pass before device removal. A later build with this change recorded an 8.55 ms final-minute median. The builds and scenes differed, so a controlled long-run A/B test would help isolate the gain.

Cherry-picked from f8eb38d. Happy to adjust the patch to upstream style.

**@⁠XaviFortes** on GitHub · 2026-11-26 17:29 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/337) `XaviFortes:upstream/buffer-sweep` → `main` · +131 −24 · 1 files · 1 commits · open ## Summary Deduplicate descriptor slots selected by the rolling scan and the write journal. Cache buffer spans per sweep partition and rebuild a partition when a slot replacement or removal invalidates its span. Preserve the existing refresh cadence and unwatched-copy throttling. Tested and benchmarked in [VIctory-RDNA](https://github.com/XaviFortes/VIctory-RDNA) on an RX 7900 XT with Series X at 4K output. An earlier warm run reached a 42.5 ms heap-buffer pass before device removal. A later build with this change recorded an 8.55 ms final-minute median. The builds and scenes differed, so a controlled long-run A/B test would help isolate the gain. Cherry-picked from `f8eb38d`. Happy to adjust the patch to upstream style.
(cherry picked from commit f8eb38d58232370cad1e44afb3896d208071b6ae)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:39:09 +00:00
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/337/head:github-bot/gh-337'
git switch 'github-bot/gh-337'

Merge

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