gpu: compact unpublished RemapQueue bursts and advance cursor on empty refreshes #2607
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2607"
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 nidea1 on 2026-11-29T14:54:07Z.
Summary
Fixes two bugs in
descriptor/host.rsthat causedRemapQueuehistory evictions and repeated full-heap rescans under heavy streaming/remap bursts, flooding the bindless texture upload queue:HostHeap::refresh_remapped): returned early whenslots.is_empty()without advancing*cursor = latest, leaving that heap's cursor permanently behind untilRemapQueuehistory rolled over and forced full-heap rescans. Now advances*cursor = latestbefore the early return.RemapQueue::record): previously coalesced only strictly adjacent ascending ranges (*last_end == start) and evicted published history immediately atREMAP_LIMIT. Now coalesces overlapping/identical/touching bursts in the fast path (start <= *last_end && end >= *last_start) and compacts the unpublished suffix (sequence > self.published) viajoin()before evicting published entries.Verification
cargo test -p victory-gpu --lib -- remap: 7 passed, 0 failed (including 2 new regression tests covering overlapping/unpublished compaction and cursor advancement on empty heaps).cargo clippy -p victory-gpu --tests: 0 warnings in touched lines.cargo xtask policy --staged: passed.oldest not uploaded yetdropped from >500 frames ago to 2–3 frames ago during initial world entry, andevicted from historydropped by >50%.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T15:40:15Z.
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series X 1440p, and Series S with ray tracing, DLSS Quality). Frame times will follow here.