scripts/play.ps1: add -Console, -LowMemory, and -Nvidia presets (no change to default) #421

Open
github-bot wants to merge 2 commits from github-bot/gh-421 into main AGit
Owner

@⁠Matt1x-T1x on GitHub · 2026-11-27 02:18 UTC · original
Matt1x-T1x:patch-1 → main · +12 −1 · 1 files · 2 commits · open

Problem

scripts/play.ps1 is currently hardwired for the target 7900 XTX / 64 GB RAM / Series X setup:

  1. It hardcodes & $victory run $Exe --execute with no -Console parameter, so users on 8 GB GPUs or 16–32 GB RAM cannot launch --console series-s through play.ps1 without editing the script.
  2. Users on smaller PCs have to manually pass -More @{...} for settings already validated in #76 and merged in #77 (VICTORY_TEXTURE_POOL=0, VICTORY_TEXTURE_STAGE_MB=64, VICTORY_WINDOW_BUDGET_MB).
  3. Users on NVIDIA GPUs have to manually override VICTORY_RELAY=1 and VICTORY_CARD_STEPS=0 (from #3 / #13 / #76) to avoid skinned-mesh corruption.

Suggested improvement

Add three opt-in switches to scripts/play.ps1 while keeping the default behavior 100% unchanged:

  • -Console <series-x|series-s>: passes --console $Console to victory.exe when specified.
  • -LowMemory: sets VICTORY_TEXTURE_POOL='0', VICTORY_TEXTURE_STAGE_MB='64', and VICTORY_WINDOW_BUDGET_MB='2048' (#77) for 8 GB VRAM / 16–32 GB RAM setups.
  • -Nvidia: sets VICTORY_RELAY='1' and VICTORY_CARD_STEPS='0' (unless -More overrides them).

Proposed diff for scripts/play.ps1:

# -Console      console profile (series-x or series-s)
# -LowMemory    for 8 GB VRAM / 16-32 GB RAM PCs (disables texture pool, caps stage & window budget)
# -Nvidia       safer relay/card-steps settings for NVIDIA GPUs (avoids skinned-mesh corruption)
param(
    [Parameter(Mandatory)][string]$Exe,
    [ValidateSet('series-x', 'series-s')][string]$Console,
    [switch]$Safe,
    [switch]$LowMemory,
    [switch]$Nvidia,
    [switch]$RayTracing,
    [ValidateSet('quality', 'balanced', 'performance')][string]$Fsr4K,
    [ValidateSet('diag', 'release')][string]$Build = 'diag',
    [hashtable]$More = @{}
)

And right before foreach ($k in $More.Keys):

if ($LowMemory) {
    $settings.VICTORY_TEXTURE_POOL = '0'
    $settings.VICTORY_TEXTURE_STAGE_MB = '64'
    $settings.VICTORY_WINDOW_BUDGET_MB = '2048'
}
if ($Nvidia) {
    $settings.VICTORY_RELAY = '1'
    $settings.VICTORY_CARD_STEPS = '0'
}

And at the end:

$runArgs = @('run', $Exe)
if ($Console) { $runArgs += @('--console', $Console.ToLowerInvariant()) }
$runArgs += '--execute'
try { & $victory @runArgs } finally { Pop-Location }

This keeps scripts\play.ps1 -Exe ... identical to today on the RX 7900 XTX, while letting smaller PCs and NVIDIA testers run with a single command (e.g. scripts\play.ps1 -Exe ... -Console series-s -Safe -LowMemory).

**@⁠Matt1x-T1x** on GitHub · 2026-11-27 02:18 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/421) `Matt1x-T1x:patch-1` → `main` · +12 −1 · 1 files · 2 commits · open ### Problem `scripts/play.ps1` is currently hardwired for the target 7900 XTX / 64 GB RAM / Series X setup: 1. It hardcodes `& $victory run $Exe --execute` with no `-Console` parameter, so users on 8 GB GPUs or 16–32 GB RAM cannot launch `--console series-s` through `play.ps1` without editing the script. 2. Users on smaller PCs have to manually pass `-More @{...}` for settings already validated in #76 and merged in #77 (`VICTORY_TEXTURE_POOL=0`, `VICTORY_TEXTURE_STAGE_MB=64`, `VICTORY_WINDOW_BUDGET_MB`). 3. Users on NVIDIA GPUs have to manually override `VICTORY_RELAY=1` and `VICTORY_CARD_STEPS=0` (from #3 / #13 / #76) to avoid skinned-mesh corruption. ### Suggested improvement Add three opt-in switches to `scripts/play.ps1` while keeping the default behavior 100% unchanged: - `-Console <series-x|series-s>`: passes `--console $Console` to `victory.exe` when specified. - `-LowMemory`: sets `VICTORY_TEXTURE_POOL='0'`, `VICTORY_TEXTURE_STAGE_MB='64'`, and `VICTORY_WINDOW_BUDGET_MB='2048'` (#77) for 8 GB VRAM / 16–32 GB RAM setups. - `-Nvidia`: sets `VICTORY_RELAY='1'` and `VICTORY_CARD_STEPS='0'` (unless `-More` overrides them). Proposed diff for `scripts/play.ps1`: ```powershell # -Console console profile (series-x or series-s) # -LowMemory for 8 GB VRAM / 16-32 GB RAM PCs (disables texture pool, caps stage & window budget) # -Nvidia safer relay/card-steps settings for NVIDIA GPUs (avoids skinned-mesh corruption) param( [Parameter(Mandatory)][string]$Exe, [ValidateSet('series-x', 'series-s')][string]$Console, [switch]$Safe, [switch]$LowMemory, [switch]$Nvidia, [switch]$RayTracing, [ValidateSet('quality', 'balanced', 'performance')][string]$Fsr4K, [ValidateSet('diag', 'release')][string]$Build = 'diag', [hashtable]$More = @{} ) ``` And right before `foreach ($k in $More.Keys)`: ```powershell if ($LowMemory) { $settings.VICTORY_TEXTURE_POOL = '0' $settings.VICTORY_TEXTURE_STAGE_MB = '64' $settings.VICTORY_WINDOW_BUDGET_MB = '2048' } if ($Nvidia) { $settings.VICTORY_RELAY = '1' $settings.VICTORY_CARD_STEPS = '0' } ``` And at the end: ```powershell $runArgs = @('run', $Exe) if ($Console) { $runArgs += @('--console', $Console.ToLowerInvariant()) } $runArgs += '--execute' try { & $victory @runArgs } finally { Pop-Location } ``` This keeps `scripts\play.ps1 -Exe ...` identical to today on the RX 7900 XTX, while letting smaller PCs and NVIDIA testers run with a single command (e.g. `scripts\play.ps1 -Exe ... -Console series-s -Safe -LowMemory`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:29:41 +00:00
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-27 02:53 UTC · original

Thanks, a way to pick the console from play.ps1 is missing upstream. I checked the diff against main (014d52d). With none of the new switches, the script runs as before.

-Console: looks right. victory run takes --console series-x|series-s (apps/victory/src/main.rs, Series X by default), so leaving it out changes nothing. A small point: ValidateSet already limits the value, so .ToLowerInvariant() only matters for spellings like Series-S. That's harmless.

-LowMemory: backed for the texture pool, not yet for the window budget.

  • VICTORY_TEXTURE_POOL=0 with VICTORY_TEXTURE_STAGE_MB=64 was measured in #76 on an RTX 3070 8 GB. Peak video memory went from 6478-6675 MB to 5576 MB, with the frame rate unchanged. That's worth having on 8 GB cards: on an RTX 2070 SUPER here, the card sits at about 6.5 of 6.9 GB in gameplay (Series S + DLSS).
  • VICTORY_WINDOW_BUDGET_MB=2048 (#77) has no measurement in the PR. Could you add one, or a line on where 2048 comes from?

-Nvidia: the reason given doesn't hold, as far as I can see.

  • The comment says VICTORY_RELAY=1 + VICTORY_CARD_STEPS=0 avoid skinned-mesh corruption on NVIDIA, citing #3, #13 and #76. But #13 is about Proton/vkd3d-proton on RADV (AMD under Linux). #3 is NVIDIA test and replay results with nothing on skinned meshes. #76 is a crash inside the title's code that happens on any settings.
  • These two settings turn off the relay and the card steps that play.ps1 turns on for speed. A preset named -Nvidia would steer every NVIDIA user to slower settings without NVIDIA evidence behind it. On an RTX 2070 SUPER we play with the defaults (RELAY=2, CARD_STEPS=2).
  • #176 already proposes the same two settings under -Safe.

Suggestion: keep -Console and -LowMemory. Then either drop -Nvidia, or rename it after what #13 shows (e.g. -Proton) and link #13 / #176. Or add an NVIDIA run on Windows that shows the corruption with the defaults and its absence with the preset.

Also: #402 and #379 change the same lines of play.ps1, so whichever lands later will need a rebase.

This review was written with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-27 02:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/421#issuecomment-7208528931) Thanks, a way to pick the console from `play.ps1` is missing upstream. I checked the diff against `main` (014d52d). With none of the new switches, the script runs as before. **`-Console`: looks right.** `victory run` takes `--console series-x|series-s` (`apps/victory/src/main.rs`, Series X by default), so leaving it out changes nothing. A small point: `ValidateSet` already limits the value, so `.ToLowerInvariant()` only matters for spellings like `Series-S`. That's harmless. **`-LowMemory`: backed for the texture pool, not yet for the window budget.** - `VICTORY_TEXTURE_POOL=0` with `VICTORY_TEXTURE_STAGE_MB=64` was measured in #76 on an RTX 3070 8 GB. Peak video memory went from 6478-6675 MB to 5576 MB, with the frame rate unchanged. That's worth having on 8 GB cards: on an RTX 2070 SUPER here, the card sits at about 6.5 of 6.9 GB in gameplay (Series S + DLSS). - `VICTORY_WINDOW_BUDGET_MB=2048` (#77) has no measurement in the PR. Could you add one, or a line on where 2048 comes from? **`-Nvidia`: the reason given doesn't hold, as far as I can see.** - The comment says `VICTORY_RELAY=1` + `VICTORY_CARD_STEPS=0` avoid skinned-mesh corruption on NVIDIA, citing #3, #13 and #76. But #13 is about Proton/vkd3d-proton on RADV (AMD under Linux). #3 is NVIDIA test and replay results with nothing on skinned meshes. #76 is a crash inside the title's code that happens on any settings. - These two settings turn off the relay and the card steps that `play.ps1` turns on for speed. A preset named `-Nvidia` would steer every NVIDIA user to slower settings without NVIDIA evidence behind it. On an RTX 2070 SUPER we play with the defaults (`RELAY=2`, `CARD_STEPS=2`). - #176 already proposes the same two settings under `-Safe`. Suggestion: keep `-Console` and `-LowMemory`. Then either drop `-Nvidia`, or rename it after what #13 shows (e.g. `-Proton`) and link #13 / #176. Or add an NVIDIA run on Windows that shows the corruption with the defaults and its absence with the preset. Also: #402 and #379 change the same lines of `play.ps1`, so whichever lands later will need a rebase. This review was written with AI assistance (Claude Code).
Author
Owner

@⁠Matt1x-T1x on GitHub · 2026-11-27 04:45 UTC · original

Thanks for the thorough review, @⁠Jesper-Andersson! That makes complete sense.

Updated the PR accordingly:

  • Kept -Console and -LowMemory (VICTORY_TEXTURE_POOL=0 + VICTORY_TEXTURE_STAGE_MB=64, both measured on 8 GB cards in #76).
  • Removed VICTORY_WINDOW_BUDGET_MB=2048 from -LowMemory since it has not been measured in-game yet.
  • Dropped -Nvidia so we don't steer NVIDIA users to slower settings without clear evidence (and #176 already covers those under -Safe).
**@⁠Matt1x-T1x** on GitHub · 2026-11-27 04:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/421#issuecomment-7210070282) Thanks for the thorough review, @⁠Jesper-Andersson! That makes complete sense. Updated the PR accordingly: - **Kept `-Console`** and **`-LowMemory`** (`VICTORY_TEXTURE_POOL=0` + `VICTORY_TEXTURE_STAGE_MB=64`, both measured on 8 GB cards in #76). - **Removed `VICTORY_WINDOW_BUDGET_MB=2048`** from `-LowMemory` since it has not been measured in-game yet. - **Dropped `-Nvidia`** so we don't steer NVIDIA users to slower settings without clear evidence (and #176 already covers those under `-Safe`).
This pull request can be merged automatically.
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/421/head:github-bot/gh-421'
git switch 'github-bot/gh-421'

Merge

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