Search free ranges when allocating dynamic descriptor tables #47

Open
gomeaw wants to merge 1 commit from upstream-pr/47 into main
gomeaw commented 2026-11-26 00:10:32 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by gomeaw on 2026-11-26T00:10:32Z.


Change

Under descriptor pressure, each dynamic table can search up to 262,144 individual slots while holding the allocator lock on a capped adapter. The RTX 5080 report tracks this search time and the separate problem of running out of capacity. RTX 5080 measurements

Keep coalesced free ranges and search in the same order as before, from the cursor and then from the physical start. Releases merge neighbors and account for overlapping partial releases. The total-free and failed-request checks still short-circuit searches. The heap size and recorded descriptor indices retain their existing layout.

Verification

  • A deterministic 20,000-operation regression compares every allocation to a slot-by-slot reference, including failures and cursor order. Windows WARP descriptor tests also cover a range crossing the cursor, the physical ends of the heap, and partial releases. Windows validation
  • In a single-threaded Apple Silicon microbenchmark with 262,144 slots, 256 four-slot holes and one 96-slot run, 1,000 allocate/release pairs of 64 slots took a median of 130.34 ms before and 0.319 ms after. A lightly occupied 100,000-pair run took 3.53 ms before and 4.87 ms after. Allocation indices matched in both cases. These are allocator timings. The impact on RTX frame time and refused tables still needs a matched gameplay run.

Part of #35. AI-assisted with Codex. The measurements use synthetic inputs.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6616445236 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/47). Originally posted by [gomeaw](https://github.com/gomeaw) on 2026-11-26T00:10:32Z. --- ## Change Under descriptor pressure, each dynamic table can search up to 262,144 individual slots while holding the allocator lock on a capped adapter. The RTX 5080 report tracks this search time and the separate problem of running out of capacity. [RTX 5080 measurements](https://github.com/avatarmanz/VIctory-7900XTX/issues/35) Keep coalesced free ranges and search in the same order as before, from the cursor and then from the physical start. Releases merge neighbors and account for overlapping partial releases. The total-free and failed-request checks still short-circuit searches. The heap size and recorded descriptor indices retain their existing layout. ## Verification - A deterministic 20,000-operation regression compares every allocation to a slot-by-slot reference, including failures and cursor order. Windows WARP descriptor tests also cover a range crossing the cursor, the physical ends of the heap, and partial releases. [Windows validation](https://github.com/gomeaw/VIctory-7900XTX/actions/runs/45726194457) - In a single-threaded Apple Silicon microbenchmark with 262,144 slots, 256 four-slot holes and one 96-slot run, 1,000 allocate/release pairs of 64 slots took a median of 130.34 ms before and 0.319 ms after. A lightly occupied 100,000-pair run took 3.53 ms before and 4.87 ms after. Allocation indices matched in both cases. These are allocator timings. The impact on RTX frame time and refused tables still needs a matched gameplay run. Part of #35. AI-assisted with Codex. The measurements use synthetic inputs.
avatarmanz commented 2026-11-26 07:36:09 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:36:09Z.


Left open: changes the dynamic descriptor allocator for every card (overlaps #96); needs an in-game check on the 7900 XTX first.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185633244 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/47#issuecomment-7185633244). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:36:09Z. --- Left open: changes the dynamic descriptor allocator for every card (overlaps #96); needs an in-game check on the 7900 XTX first.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/47:upstream-pr/47'
git switch 'upstream-pr/47'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/47'
git switch 'upstream-pr/47'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/47'
git switch 'upstream-pr/47'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/47'
git switch 'main'
git merge --squash 'upstream-pr/47'
git switch 'main'
git merge --ff-only 'upstream-pr/47'
git switch 'main'
git merge 'upstream-pr/47'
git push origin 'main'
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
avatarmanz/VIctory-7900XTX!47
No description provided.