Descriptors: a view heap with room past the title's slots makes them all dynamic, up to 2^20 #1010
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1010
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1010/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cmt8 on GitHub · 2026-11-25 15:57 UTC · original
up/dynamic-slots→main· +39 −8 · 1 files · 1 commits · closed without mergingWhat breaks today
Tables made afresh come from the view heap's 2^18 dynamic slots. A list holds its slots until it has run. With submissions sent ahead for longer between settles, more lists hold tables at once and the 2^18 run out. Their draws are then dropped ("a descriptor table found no free slots"). In one run under Proton on an RX 7900 XTX, 600 to 1,500 draws were dropped in frames of about 10,000, showing up as missing geometry and smearing in full-screen passes.
On a host whose view heaps take
UNCAPPED_VIEWS(2^21: vkd3d-proton on RADV, and AMD on Windows), the title uses about 1,000,000 slots. That leaves about 800,000 slots between the dynamic ones and the null slot that nothing uses.The change
Where the heap has that room, every slot between the title's and the null slot is dynamic, up to
DYNAMIC_MOST(2^20). A capped host (NVIDIA, 1,000,000 views) keeps 2^18 as before. The search and the cursor now wrap at the heap's own count instead ofDYNAMIC. The heap's debug line names the count. One test covers it: on a host with room, the slots up to the null slot are dynamic and can all be taken at once.Evidence
wine-testxtask from Marvisak/VIctory #1218 (not part of this PR): victory-gpu 163 passed, 8 failed. The same 8 fail on0b0074e0. The new test anddynamic_slots_are_held_until_releasedpass with 2^20 dynamic slots.Not verified
VICTORY_DYNAMIC_WAIT_MS). That wait is left out here: it never fired in our runs, and on a host that truly runs out it could stall each table.Related
These save slots rather than add them, and would combine with this change:
HostHeap::dynamic. Thetakebound this PR changes is the one that commit adjusts. The two touch the same line.AI-assisted (Claude Code); no game data.
@UwUCammie on GitHub · 2026-11-25 16:59 UTC · original
Tested on RX 7900 XT (CachyOS Linux, Wine 11.22 + vkd3d-proton
VKD3D_CONFIG=descriptor_heap+ RADV).spare_view_heap_slots_are_dynamicpasses under Wine and gameplay runs cleanly with ~10.7k tables/frame and 0 refused dynamic slot allocations.Pull request closed