perf(descriptor): skip unused list-view raw twins and coalesce heap-sync rounds #9
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/MahanYTT--VIctory-MA!9
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-9"
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?
@MahanYTT on GitHub · 2026-12-04 17:55 UTC · original
MahanYTT:perf/descriptor-raw-twins→mega-upgrade-v3· +303 −61 · 2 files · 1 commits · merged 2026-12-04 20:18 UTCSummary
Fixes two descriptor hot-path bottlenecks identified in the 1440p RTX 5070 Ti gameplay log (12,249 raw buffer view twins created/frame and 1.23 ms/frame write-watch asking for 44 changed heap pages):
crates/victory-gpu/src/descriptor/host.rs):HostHeap::make_listedpreviously passedSome(views.slot(at + 1))unconditionally even whenraw_twins=false(self.twinsempty on capped 1M-slot heaps), creating 12,249 unused D3D12 SRVs/UAVs per frame and halvingListViewscapacity. Now reserves 2 slots and creates a twin only whenself.twinsis populated andtwinned(&view)is true (doublingListViewscapacity from 4,096 to 8,192 views). Also guardsself.twin(index)inmake_at/mirrorbehindtwinned(view).sync_heapsrounds & skip empty batches (crates/victory-gpu/src/descriptor.rs): Replaced(u64, u64)inSYNC_ROUNDSwithSyncRounds { asked, started, done }sovictory-heap-syncclaims and coalesces all queued rounds arrived before a scan starts instead of running redundant back-to-back 19.4 MBGetWriteWatchscans. Added empty-batch early exits insync_heaps().list_view_slot_plan, cache compatibility, andSyncRoundscoalescing/invariants.