Repository navigation
Conversation
…all dynamic, up to 2^20 Ported by hand from 381e9d97 of cmt8/VIctory linux/fx-next6, its larger pool only. A view heap has 2^18 dynamic slots for tables made afresh, and a list holds the ones its draws took until it has run. In a run under Proton on an RX 7900 XTX (RADV) with submissions sent ahead for longer between settles, 2^18 ran out: 600 to 1,500 draws of frames of about 10,000 were dropped for "a descriptor table found no free slots" (missing geometry, smearing). Where the host's view heap is larger than the title's slots plus 2^18 (UNCAPPED_VIEWS, 2^21 views: vkd3d-proton on RADV, AMD on Windows) the slots between the title's and the null slot went unused; now they are all 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 wrap at the heap's own count instead of DYNAMIC. In two runs with the larger pool, the most dynamic slots in use at once was 399,750 and no table was refused. 381e9d97 also had a table that finds none free wait up to 250 ms for slots given back (VICTORY_DYNAMIC_WAIT_MS) and a status line; the wait never fired in those runs and is left out here, as is the status line. Test: on a host with room, the slots up to the null slot are dynamic (up to DYNAMIC_MOST) and can all be taken at once. Tested: cargo xwin build --release -p victory; cargo xtask policy (179 files ok); Windows tests under Wine 11.22 with Proton Experimental's vkd3d-proton on an RX 7900 XTX: victory-gpu 163 passed, 8 failed, the same 8 as on this commit's parent; the new test and dynamic_slots_are_held_until_released pass with 2^20 dynamic slots. Not run on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on RX 7900 XT (CachyOS Linux, Wine 11.22 + vkd3d-proton |
This was referenced Nov 25, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What 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 A list holds the host copy of a texture it reads when the staging was up to date (VICTORY_TEXTURE_HOLD_READS) #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.