Improve texture streaming, mip residency and pool efficiency #6
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#6
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
Texture residency, mip-level growth/shrink behavior and staging/pool allocation directly govern both VRAM headroom (especially on 8–12 GB GPUs) and streaming smoothness. While sliced sweeps reduced steady-state sweep stalls by >90%, texture memory pressure warnings still occur and mip-tail / low-VRAM paths need further hardening.
Known Evidence
VICTORY_SWEEP_SLICES=1cut texture sweep look cost from9.0 msto0.85 ms(−90.6%) and reduced "card memory tight" warnings from17to5.10–13.9 GBin heavy scenes.victory-gpu/src/resource.rs):VICTORY_SWEEP_SLICEScurrently disables itself wheneverVICTORY_TEXTURE_MIP_TAILis enabled because the two paths have never been validated together.VICTORY_HOLD_NAMED,VICTORY_TILES_BY_RESOURCE) remain opt-in and await broader validation.Approaches That Did Not Work
VICTORY_TEXTURE_PASS_MS=10(kept off): Time-slicing delayed textures up to 435 ms without improving P99.VICTORY_MEM_CENSUS_Snon-zero (kept off): Periodic full address-space walks stalled the title for 450–600 ms each time.Relevant Source Modules
runtime/crates/victory-gpu/src/texture.rsruntime/crates/victory-gpu/src/texture/ahead.rsruntime/crates/victory-gpu/src/texture/levels.rsruntime/crates/victory-gpu/src/pool.rsruntime/crates/victory-gpu/src/residency.rsruntime/crates/victory-gpu/src/tiles.rsruntime/crates/victory-gpu/src/texstore.rsruntime/crates/victory-gpu/src/resource.rsExpected Contribution
VICTORY_SWEEP_SLICES=1andVICTORY_TEXTURE_MIP_TAIL=1with synthetic fixtures.VICTORY_HOLD_NAMED=1andVICTORY_TILES_BY_RESOURCE=1(withVICTORY_RETIRE_AUDIT=1in diagnostics builds) to close remaining texture-replacement lifetime races.VICTORY_MEM_BUDGET,VICTORY_SHARED_LINE_PCT) on 8 GB and 12 GB GPUs.Acceptance Criteria
VICTORY_TILES_BY_RESOURCE=1lifetime invariants.VICTORY_RETIRE_AUDIT=1findings under stress fixtures.