Allocate independent title shadows outside the buffer table lock #199

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

@⁠TaynanGT on GitHub · 2026-11-27 09:02 UTC · original
TaynanGT:perf/independent-shadow-allocations-196 → main · +360 −89 · 2 files · 1 commits · draft

Give each registration one constructor for its independent backing buffer. Wait for D3D12 residency and map the buffer outside the table writer. Recheck the selected range and the constructor ticket before publishing so a replaced registration or a narrower range can’t inherit the earlier allocation.

Based on @⁠NotADonky43’s patch and regressions in #196. The RTX 5070 Ti report measured 21.945 s → 0.202 s in cumulative buffer-table read-lock acquisition through the first heavy present. The paired presents had different draw counts. A steady-state FPS comparison is still pending.

The draft includes coverage for concurrent lookups, retry after allocation failure, and GPU readback after the live registration changes. The patch applies cleanly to 4ee1a47. The lock checks allow unrelated tests a short window to release the same table.

**@⁠TaynanGT** on GitHub · 2026-11-27 09:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/199) `TaynanGT:perf/independent-shadow-allocations-196` → `main` · +360 −89 · 2 files · 1 commits · draft Give each registration one constructor for its independent backing buffer. Wait for D3D12 residency and map the buffer outside the table writer. Recheck the selected range and the constructor ticket before publishing so a replaced registration or a narrower range can’t inherit the earlier allocation. Based on @⁠NotADonky43’s patch and regressions in #196. The RTX 5070 Ti report measured 21.945 s → 0.202 s in cumulative buffer-table read-lock acquisition through the first heavy present. The paired presents had different draw counts. A steady-state FPS comparison is still pending. The draft includes coverage for concurrent lookups, retry after allocation failure, and GPU readback after the live registration changes. The patch applies cleanly to 4ee1a47. The lock checks allow unrelated tests a short window to release the same table.
Allocate and map independent backing before publishing it under the global table writer. Recheck the live registration and keep GPU readback coverage for replacement races.

Co-authored-by: NotADonky43 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 09:04:15 +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/199/head:github-bot/gh-199'
git switch 'github-bot/gh-199'

Merge

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