Honor the Windows texture budget override regardless of case #4872

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:14 UTC · original
andrewpozdnakov7-jpg:codex2/fix/texture-budget-key-case → main · +8 −3 · 1 files · 1 commits · open

What it changes

The Windows environment treats victory_texture_room_percent and VICTORY_TEXTURE_ROOM_PERCENT as the same name. Native victory play currently distinguishes them while building its settings map, so a lowercase --set leaves the automatic frame-generation reserve in place. Without an available frame-generation backend, the resulting texture cap can stay at 80% even though the explicit setting reads as 92%.

Use one key for this option on Windows. Its explicit value takes precedence over the automatic reserve, and the last assignment wins when the option is supplied more than once.

How it was tested

  • Ran the exact options loop and GPU budget calculation on Windows with Rust 1.98.1. With a normalized budget of 10,000 and frame generation unavailable, main 5fabb46e and release v2026.11.30.03 applied a cap of 8,000 for lowercase --set victory_texture_room_percent=92; 1862d51a46597adcfd151af6727ada435e898820 applied 9,200.
  • A repeated lowercase 92 followed by uppercase 93 used the last value with the fix. Automatic and uppercase-only controls returned the same results before and after.
  • cargo xtask policy --staged accepted the one changed file. This fixture covers the options and budget calculation.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Compared the settings loops in #2868 and #4798. Their patches address explicit unsets and automatic profile choices respectively. This change addresses the spelling and precedence of this specific VRAM option.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 12:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4871) `andrewpozdnakov7-jpg:codex2/fix/texture-budget-key-case` → `main` · +8 −3 · 1 files · 1 commits · open ## What it changes The Windows environment treats `victory_texture_room_percent` and `VICTORY_TEXTURE_ROOM_PERCENT` as the same name. Native `victory play` currently distinguishes them while building its settings map, so a lowercase `--set` leaves the automatic frame-generation reserve in place. Without an available frame-generation backend, the resulting texture cap can stay at 80% even though the explicit setting reads as 92%. Use one key for this option on Windows. Its explicit value takes precedence over the automatic reserve, and the last assignment wins when the option is supplied more than once. ## How it was tested - Ran the exact options loop and GPU budget calculation on Windows with Rust 1.98.1. With a normalized budget of 10,000 and frame generation unavailable, main `5fabb46e` and release `v2026.11.30.03` applied a cap of 8,000 for lowercase `--set victory_texture_room_percent=92`; `1862d51a46597adcfd151af6727ada435e898820` applied 9,200. - A repeated lowercase `92` followed by uppercase `93` used the last value with the fix. Automatic and uppercase-only controls returned the same results before and after. - `cargo xtask policy --staged` accepted the one changed file. This fixture covers the options and budget calculation. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Compared the settings loops in #2868 and #4798. Their patches address explicit unsets and automatic profile choices respectively. This change addresses the spelling and precedence of this specific VRAM option. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:16:12 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/play.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/4872/head:github-bot/gh-4871'
git switch 'github-bot/gh-4871'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4871'
git switch 'github-bot/gh-4871'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4871'
git switch 'github-bot/gh-4871'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4871'
git switch 'main'
git merge --squash 'github-bot/gh-4871'
git switch 'main'
git merge --ff-only 'github-bot/gh-4871'
git switch 'main'
git merge 'github-bot/gh-4871'
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!4872
No description provided.