gpu: compact unpublished RemapQueue bursts and advance cursor on empty refreshes #2607
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2607
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@nidea1 on GitHub · 2026-11-29 14:54 UTC · original
nidea1:fix/remap-queue-cursor-and-compaction→main· +123 −8 · 1 files · 1 commits · merged 2026-11-29 22:54 UTCSummary
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%.@dyshay on GitHub · 2026-11-29 15:40 UTC · original
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.github-bot referenced this pull request2026-11-30 02:37:04 +00:00
RemapQueue::recordburst compaction) causes 15–25× regression inopening or noting guardsand severe frame-time stutters #3666RemapQueue::recordburst compaction) causes 15–25× regression inopening or noting guardsand severe frame-time stutters #3666