perf(host): honor VICTORY_WAIT_RESIDENT=textures for buffer pools and coalesce mapped() waits #1553
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1553"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by qlfu on 2026-11-28T21:37:31Z.
Summary
ot_resident\ /
esident\ / \mapped\ to the \uffer_*\ helpers. Both allocate plain buffers (\D3D12_RESOURCE_DIMENSION_BUFFER\ / \D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS), not textures, so under \VICTORY_WAIT_RESIDENT=textures\ they should follow the same policy as \upload_buffer, \shared_buffer_now, \mapped_card_buffer, and \uav_buffer.
\ in \host.rs\ with monotoniceeded\ / \done\ ticket counters (\AcqRel\ / \Acquire\ / \Release).
Verification
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by amazedturnip on 2026-11-29T05:38:33Z.
Tested on 9800X3D + RTX 5070 Ti 16 GB with VICTORY_WAIT_RESIDENT=textures in a combined perf stack across 20+ min sessions. Zero residency errors or corruption; frame pacing improved noticeably with buffer-pool MakeResident stalls cut out.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by qlfu on 2026-11-29T10:14:26Z.
Rebased onto current \main\ (\
829188e9): dropped the \writeback_upload_buffer\ hunk that already landed upstream and wired \MappedBarrier\ around the shared \ASIDE\ copy queue used by \mapped()\ and \with_copy_queue_sync(). Verified with \cargo clippy, \mapped_barrier\ unit tests, and a clean 90s gameplay run (\mapped()\ total wait 449.2 ms -> 167.0 ms, 6 coalesced, 0 WARNs/0 ERRORs).