Slot eviction: its own time is in its line (#1644) #2075

Open
github-bot wants to merge 1 commit from github-bot/gh-2075 into main AGit
Owner

@⁠kalberts0089-hash on GitHub · 2026-11-29 09:08 UTC · original
kalberts0089-hash:slot-evict-log → main · +32 −11 · 2 files · 1 commits · open

Part of #1644 and #1962

What it changes

let_go_idle records SWEPT_US before it calls slot_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 whole slot_evict pass took about 34 ms (23.5-54.6 ms), one a second, and evictable_slots alone about 19 ms (14-42 ms). Nothing in the log shows that cost today.

  • slot_evict is now timed on its own, in a new SLOT_EVICT_US counter. The existing 5-second "textures let go with their slots under pressure" line ends with its own time: N passes, X ms each, the longest Y, in the same style as the SWEPT_US line.
  • The doc comment on slot_evict_settings said VICTORY_SLOT_EVICT=1 is "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

  • GPU and profile: RTX 4070 Ti 12 GB, Windows 11 build 26300. The game was not run.
  • Before: the sweep's time did not include slot_evict, and nothing logged it.
  • After: the slot eviction line has the pass count, the average and the longest pass in ms.
  • For shader changes, the wave sizes tested: n/a
  • cargo test passed for the crates it touches: yes (cargo test --locked -p victory-gpu -- --test-threads=1). cargo build --locked --release -p victory builds. Clippy and rustfmt add nothing new compared with main.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1644, #1962, #972

🤖 Generated with Claude Code

**@⁠kalberts0089-hash** on GitHub · 2026-11-29 09:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2075) `kalberts0089-hash:slot-evict-log` → `main` · +32 −11 · 2 files · 1 commits · open Part of #1644 and #1962 ## What it changes `let_go_idle` records `SWEPT_US` before it calls `slot_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 whole `slot_evict` pass took about 34 ms (23.5-54.6 ms), one a second, and `evictable_slots` alone about 19 ms (14-42 ms). Nothing in the log shows that cost today. - `slot_evict` is now timed on its own, in a new `SLOT_EVICT_US` counter. The existing 5-second "textures let go with their slots under pressure" line ends with `its own time: N passes, X ms each, the longest Y`, in the same style as the `SWEPT_US` line. - The doc comment on `slot_evict_settings` said `VICTORY_SLOT_EVICT=1` is "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 - GPU and profile: RTX 4070 Ti 12 GB, Windows 11 build 26300. The game was not run. - Before: the sweep's time did not include `slot_evict`, and nothing logged it. - After: the slot eviction line has the pass count, the average and the longest pass in ms. - For shader changes, the wave sizes tested: n/a - `cargo test` passed for the crates it touches: yes (`cargo test --locked -p victory-gpu -- --test-threads=1`). `cargo build --locked --release -p victory` builds. Clippy and rustfmt add nothing new compared with main. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1644, #1962, #972 🤖 Generated with [Claude Code](https://claude.com/claude-code)
let_go_idle took its "looks for textures to let go" time before it
called slot_evict, so that line left out the slot walk, which took about
34 ms a pass on an 8 GB laptop once the card was over its line (#1644,
19 ms of it in evictable_slots). slot_evict is now timed on its own, and
the 5-second slot eviction line ends with its passes, milliseconds each
and the longest.

The doc comment that said VICTORY_SLOT_EVICT=1 is off by default says
the launcher sets it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 09:12:12 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/resource.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2075/head:github-bot/gh-2075'
git switch 'github-bot/gh-2075'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2075'
git switch 'github-bot/gh-2075'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2075'
git switch 'github-bot/gh-2075'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2075'
git switch 'main'
git merge --squash 'github-bot/gh-2075'
git switch 'main'
git merge --ff-only 'github-bot/gh-2075'
git switch 'main'
git merge 'github-bot/gh-2075'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2075
No description provided.