victory-gpu: VICTORY_KEEP_SHOWN=0 to go back to the room-gated keep #613

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

@⁠Danneman92 on GitHub · 2026-12-05 18:32 UTC · original
Danneman92:keep-shown → main · +18 −4 · 2 files · 1 commits · open

What

VICTORY_KEEP_SHOWN=0 restores the pre-#503 keep: a waiting slot keeps the texture it shows only while the pool has room. With the variable unset nothing changes - #503's keep-whatever-the-room stays the default.

Credit

This change only makes #503 optional ("descriptor: a waiting slot keeps the texture it shows, whatever the room", by YaBulochka). The behaviour the switch restores as an opt-in is the code #503 replaced, and the reasoning for #503 — neutral flashes at 86-93% of the card's texture budget — is theirs. Credit is also in the commit message.

Why

#503 fixed the neutral flashes where the room ran out by keeping the shown texture unconditionally. On boxes where texture memory is the tight constraint (integrated GPUs with a small UMA carve, 16 GB handhelds) that trades the flashes for more live textures, and there is currently no way back to the previous behaviour. This is an escape hatch, not a behaviour change: default = #503.

Implementation is one helper (keep_shown()) consulted at the four places that already ask kin.kept(KEEP_SHOWN), plus a docs/SETTINGS.md row.

Testing

  • cargo check -p victory-gpu --target x86_64-pc-windows-msvc clean on the pinned toolchain (1.98.1); only the pre-existing room_lately is never used warning.
  • Used in a local tree (Z1 Extreme handheld, series-s, 1280x720) with the variable unset — identical behaviour to main, since the default path is untouched.
  • Not yet measured with =0 against #503's behaviour on a memory-tight box; happy to gather numbers if wanted.
**@⁠Danneman92** on GitHub · 2026-12-05 18:32 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/613) `Danneman92:keep-shown` → `main` · +18 −4 · 2 files · 1 commits · open ## What `VICTORY_KEEP_SHOWN=0` restores the pre-#503 keep: a waiting slot keeps the texture it shows only while the pool has room. With the variable unset nothing changes - #503's keep-whatever-the-room stays the default. ## Credit This change only makes **#503** optional ("descriptor: a waiting slot keeps the texture it shows, whatever the room", by **YaBulochka**). The behaviour the switch restores as an opt-in is the code #503 replaced, and the reasoning for #503 — neutral flashes at 86-93% of the card's texture budget — is theirs. Credit is also in the commit message. ## Why #503 fixed the neutral flashes where the room ran out by keeping the shown texture unconditionally. On boxes where texture memory is the tight constraint (integrated GPUs with a small UMA carve, 16 GB handhelds) that trades the flashes for more live textures, and there is currently no way back to the previous behaviour. This is an escape hatch, not a behaviour change: default = #503. Implementation is one helper (`keep_shown()`) consulted at the four places that already ask `kin.kept(KEEP_SHOWN)`, plus a `docs/SETTINGS.md` row. ## Testing - `cargo check -p victory-gpu --target x86_64-pc-windows-msvc` clean on the pinned toolchain (1.98.1); only the pre-existing `room_lately is never used` warning. - Used in a local tree (Z1 Extreme handheld, series-s, 1280x720) with the variable unset — identical behaviour to `main`, since the default path is untouched. - Not yet measured with `=0` against #503's behaviour on a memory-tight box; happy to gather numbers if wanted.
#503 made a waiting slot keep the texture it shows whatever the room. The
room-gated keep before it - keep only while the pool has room - is still wanted
where texture memory is the constraint: fewer textures alive, at the cost of
neutral flashes where the room runs out.

VICTORY_KEEP_SHOWN=0 brings that behaviour back as an opt-in. The default is
unchanged (#503's keep whatever the room), so nothing moves unless asked.
Documented in docs/SETTINGS.md.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 18:34:57 +00:00
github-bot force-pushed github-bot/gh-613 from d3aef275f6 to aefe5d904e 2026-12-05 18:40:54 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'main'
git merge --squash 'github-bot/gh-613'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'main'
git merge 'github-bot/gh-613'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.