Search free ranges when allocating dynamic descriptor tables #47

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

@⁠gomeaw on GitHub · 2026-11-26 00:10 UTC · original
gomeaw:fix/dynamic-descriptor-ranges → main · +172 −64 · 2 files · 1 commits · open

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.

**@⁠gomeaw** on GitHub · 2026-11-26 00:10 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/47) `gomeaw:fix/dynamic-descriptor-ranges` → `main` · +172 −64 · 2 files · 1 commits · open ## 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://git.gtahub.st/github/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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:32 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:36 UTC · original

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

**@⁠avatarmanz** on GitHub · 2026-11-26 07:36 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/47#issuecomment-7185633244) 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 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/47/head:github-bot/gh-47'
git switch 'github-bot/gh-47'

Merge

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