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

Open
kalberts0089-hash wants to merge 1 commit from upstream-pr/2075 into main
kalberts0089-hash commented 2026-11-29 09:08:59 +00:00 (Migrated from github.com)

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_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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549281477 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2075). Originally posted by [kalberts0089-hash](https://github.com/kalberts0089-hash) on 2026-11-29T09:08:59Z. --- 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)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2075:upstream-pr/2075'
git switch 'upstream-pr/2075'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2075'
git switch 'upstream-pr/2075'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2075'
git switch 'upstream-pr/2075'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2075'
git switch 'main'
git merge --squash 'upstream-pr/2075'
git switch 'main'
git merge --ff-only 'upstream-pr/2075'
git switch 'main'
git merge 'upstream-pr/2075'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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