Slot eviction: say what it did every 5 seconds #943
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!943
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-943"
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?
@psttt432454 on GitHub · 2026-11-28 09:31 UTC · original
psttt432454:diag/slot-evict-line→main· +30 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCProblem
resource::SLOT_EVICTandresource::SLOT_STATE(the memory stack's slot eviction, by skornuta) are counted byslot_evictand when an evicted copy comes back. Nothing reads them, so a run cannot tell whether eviction freed anything, or why it did not.victory playturnsVICTORY_SLOT_EVICT=1on by default.Change
When
VICTORY_SLOT_EVICT=1, the 5-second texture lines inhost.rsget one more line. It reports:resource::slot_evict_on()exposes whether the settings are on. Nothing else changes.What it shows
One measured run, with
victory play --series-sonmainplus #890. RTX 5070 Laptop 8 GB (budget about 6.8 GB), same save and spot as the runs in #890, about 5 minutes:Eviction switches on at the right time, but it can take almost none of the idle textures: 99.8% are held by slots shaders pick by index. Over the run it freed 5 MB while the texture queue's line said
no room, new textures wait. On screen, some surfaces were left without textures. This is the case fxceless/victory-fork#1423 describes: what was sampled, recorded per frame. That issue already has someone working on its first step, so this PR only makes the numbers visible.Tests
cargo build -p victory-gpu: clean.cargo clippy -p victory-gpu --all-targetsreports onemanual_is_multiple_ofatshadow.rs:1708, already onmain. It is not touched here.No game files, logs of the title or images are included.
🤖 Generated with Claude Code