Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds
LEONIDA_TEXTURE_KEEP=1(off by default, opt-in profiletexture-keep). With it, the sweep of host copies of textures the title fills lets go only what the card needs: under 85 % of the budget only copies idle for ten minutes go; from 85 % those idle for 5 s, longest idle first, until 80 %; from 93 % those idle for 3 s until 84 % (host::vram_keep). Without it every copy idle for 1 s goes from 85 % on, and a 12 GB card sits there the whole time in the first rooms. Taken from Belobug/VIctory-Belobug-AMD 8d79927. No TODO row; new work.How it was tested
scripts\measure-run.ps1before and after, two pairs (fill in Playtest below).Checks run on this branch (after rebasing onto
mainwith #51):cargo test --workspace --locked: no failure (new unit testvram_keep_lets_go_only_what_the_card_needs)cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policyPlaytest
main)mainmainWhat could go wrong: passes that made no host copy for lack of room grew in both pairs (96 to 319, 12 to 390), which is how black textures show up. That is why it stays opt-in. Runs were on
e8aa6152, before the rebase onto #51 and the native graphics profiles; the switch needs no change for those (anyLEONIDA_*name is accepted). Measured on one card only.AI
🤖 Generated with Claude Code