Slot eviction: say what it did every 5 seconds #943
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by psttt432454 on 2026-11-28T09:31:59Z.
Problem
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