perf(gpu): reuse existing heap holes for card windows #209
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/trustno1-coder--VIctory-NVIDIA!209
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-209"
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?
@krofty on GitHub · 2026-11-27 19:48 UTC · original
perf/mixed-window-heaps→main· +1141 −37 · 6 files · 2 commits · closed without mergingRaw-address window buffers stay in system memory on an 8 GB adapter even when existing texture heap backing has usable holes. Adding separate committed window buffers increases VRAM pressure.
Add opt-in VICTORY_POOL_WINDOWS_MB (default 0) to place window card sides in compatible existing Tier2 heap holes. The factory never grows a heap or creates a committed fallback; failed admission retains the existing placement policy. Native Tier2 heaps use the valid universal flag set, with the allocator restricting texture admission to single-sample non-RT/DS resources. Other devices and optional multi-queue configurations keep the existing path.
COM-attached leases retain exclusive extents and cap/accounting reservations through bare resource clones. At final release, mixed-heap charges move into retirement and stay charged until the native fence and rest period permit actual reuse, including quarantined creation failures. Device-loss values fail closed. Fence watermarks are published before execution without acquiring the submission lock from COM release.
First use records an aliasing barrier and uploads the entire window from immutable submission memory, including zero/unrequested bytes. First-use checks discard the invalid preceding GPU representation. Existing subsequent dirty-range uploads, hashing, CPU visibility and submission retirement remain in use.
Closes #180.
Validation on the final integration:
Limitations: placement is at initial window creation and may miss fragmented/resting holes or hit the cap. This does not add a hotness policy or late promotion. Borrowing existing holes does not by itself prevent future texture-heap growth. The single-queue gate is deliberate. PR remains draft, open and unmerged pending game results.
Pull request closed