Reduce traversal frame-time spikes and streaming stalls #5
Labels
No labels
accessibility
area: compatibility
area: docs
area: hygiene
area: infra
area: memory
area: ray-tracing
area: rendering
area: shaders
area: submission
area: textures
bug
ci
dependencies
difficulty: advanced systems
difficulty: intermediate
documentation
duplicate
enhancement
experimental
good first issue
help wanted
invalid
known issue
performance
priority: P0
priority: P1
priority: P2
proposal
question
rendering
research
testing
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VictoryX-dev--VictoryX#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@VictoryX-dev on GitHub · 2026-12-03 02:57 UTC · original
Problem
While steady heavy-scene frame pacing improved dramatically (
P99 46.4 → 35.1 ms,1% low 20.0 → 27.0 FPS), moving rapidly through new areas still produces severe frame-time spikes during asset and texture streaming.Known Evidence
VICTORY_SWEEP_SLICES=1+VICTORY_RELEASE_LEAVE_ONCE=1: P9935.1 ms, P99.939.0 ms, 1% low27.0 FPS.55.5–86 ms(worst windows64–86 ms), 1% low15.3 FPS, 13–22% of frames > 33.3 ms.VICTORY_FRAME_METRICS=1) showed heavy frames (> 1.8× window median) spent ~19.9 ms in the index-picked texture/view pass vs ~5.8 ms in normal frames, with sustained 15–25 ms bursts during rapid area entry.VICTORY_TEXTURE_HOST_WRITTEN_UNQUEUED=1: avoids queueing host-written textures (RTV/DSV/UAV) into the index-picked title-texture pass. Synthetic stand-mix fixture saves ~0.12 µs per look and ~0.08 µs per write (~0.4 ms/frame ceiling estimate in steady scenes; unmeasured in traversal).Approaches That Did Not Work
VICTORY_TEXTURE_PASS_MS=10(kept off): Time-slicing the index-picked texture pass to 10 ms/frame did not improve P99 (35.1 → 35.2 ms) and delayed texture publication by up to 435 ms (visible pop-in).Relevant Source Modules
runtime/crates/victory-gpu/src/draw.rsruntime/crates/victory-gpu/src/texture.rsruntime/crates/victory-gpu/src/texture/ahead.rsruntime/crates/victory-gpu/src/descriptor.rsruntime/crates/victory-gpu/src/frame_metrics.rsruntime/crates/victory-gpu/src/spikes.rsruntime/crates/victory-hle/src/modules/dstorage.rsExpected Contribution
VICTORY_FRAME_METRICS=1,VICTORY_SPIKES=1andVICTORY_XFER=2to separate costs across:victory-formats,dstorage.rs),pool.rs,texture.rs),draw.rs,descriptor.rs),watch.rs,xmem.rs).Acceptance Criteria
% frames > 33.3 msimprove measurably on a matched release-package traversal route without visible texture pop-in or quality loss.