Repository navigation
victory-gpu: segregate single-slot and table dynamic descriptors (#747) - #949
Sakura-Byte wants to merge 1 commit into
Conversation
…visak#747) - Track top-down single-slot (n == 1) and bottom-up multi-slot table (n > 1) cursors inside DynamicPool so single-slot churn does not fragment multi-slot table space while preserving release reuse. - Bump MIN_DYNAMIC from 1 << 16 (65,536) to 1 << 17 (131,072) for capped heaps while preserving PORTABLE_VIEWS clamping. - Add unit and HostHeap tests covering free_space/free_table, non-fragmentation between n == 1 and n > 1, exhaustion without overlap, release reuse, and 128K MIN_DYNAMIC.
|
With capacity held at eight slots, the same allocation sequence and three table releases left six free slots in both allocators. The baseline’s longest contiguous run was two slots. With the two search directions, all six free slots were contiguous. This isolates a placement effect from the separate increase in the capped heap reserve. All nine descriptor tests on the author revision passed on RTX 4090 under Wine/vkd3d-proton 3.2. An allocator-only port that retained our comparison build’s existing capacity and guard passed twelve tests, including a free range straddling the search cursor. The eight-slot trace is synthetic. To attribute a title allocation failure to fragmentation, the useful measurements at that failure are the request width, total free slots, and largest contiguous run in the same heap. |
RTX 5080 (Blackwell, Wave32) A/B Test of #949 and #1024Environment:
Findings:
|
|
Tested unmodified Verification results
Non-blocking review notes
Synthetic tests and RTX 4060 hardware only; no game data. AI-assisted. |
|
On the size: 2^17 may be too small for the full world on a capped heap. @R0D4X's zero drops were at ~440–480 draws per frame, and the world runs several times that once more programs translate.
Less fragmentation may lower the need, so I'd judge the two parts apart: this allocator at 2^18, logging peak occupied slots in the world, would show whether 2^17 is enough. If it isn't, AimLogin's layout (#747) gives the 1M heap 262,144 dynamic slots without cutting uncapped hosts. #902 also uses 2^17, so the same question applies there. AI-assisted (Claude Code): the runs and log analysis were automated. The hardware, title copy and runs are the user's. |
|
Independent verification at
No game data used. AI-assisted; all builds and GPU tests executed on my machine. |
…mic descriptors (Marvisak#747)
…mic descriptors (Marvisak#747)
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #1548. Main avoids single-slot fragmentation of the dynamic range another way (root views take runs of 256, memory pairs sit past the dynamic slots); the larger dynamic range on capped heaps is #1548's. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Summary
n == 1) and bottom-up multi-slot table (n > 1) cursors insideDynamicPoolso single-slot churn does not fragment multi-slot table space while preserving release reuse.MIN_DYNAMICfrom1 << 16(65,536) to1 << 17(131,072) for capped heaps while preservingPORTABLE_VIEWSclamping.HostHeaptests coveringfree_space/free_table, non-fragmentation betweenn == 1andn > 1, exhaustion without overlap, release reuse, and 128KMIN_DYNAMIC.Verification
cargo xtask policyandcargo clippy --locked -- -D warnings: cleanAI-assisted; synthetic tests only, zero game assets.