Slot eviction: its own time is in its line (#1644) #2075
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2075"
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 kalberts0089-hash on 2026-11-29T09:08:59Z.
Part of #1644 and #1962
What it changes
let_go_idlerecordsSWEPT_USbefore it callsslot_evict, so the "looks for textures to let go, X ms each" line leaves out the slot walk. In #1644, on an RTX 5060 Laptop 8 GB over its line, a wholeslot_evictpass took about 34 ms (23.5-54.6 ms), one a second, andevictable_slotsalone about 19 ms (14-42 ms). Nothing in the log shows that cost today.slot_evictis now timed on its own, in a newSLOT_EVICT_UScounter. The existing 5-second "textures let go with their slots under pressure" line ends withits own time: N passes, X ms each, the longest Y, in the same style as theSWEPT_USline.slot_evict_settingssaidVICTORY_SLOT_EVICT=1is "off by default". The launcher sets it (apps/victory/src/play.rs,scripts/play-foxhound.ps1), and the comment now says so.The eviction counts are already logged on main (#972), so this only adds the timing. It does not make the walk faster; it makes its cost visible in 8 GB logs such as #1962's.
How it was tested
slot_evict, and nothing logged it.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-gpu -- --test-threads=1).cargo build --locked --release -p victorybuilds. Clippy and rustfmt add nothing new compared with main.Checked for overlap
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.