Allocate independent title shadows outside the buffer table lock #199

Closed
TaynanGT wants to merge 520 commits from upstream-pr/199 into main
TaynanGT commented 2026-11-27 09:02:39 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:02:39Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5523971099 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/199). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T09:02:39Z. --- 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 commented 2026-11-30 17:16:04 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:16:04Z.


Superseded: main has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current main.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285990304 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/199#issuecomment-7285990304). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:16:04Z. --- Superseded: `main` has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay!199
No description provided.