fix(scripts): preserve -More tuning overrides across F1 menu restarts #84

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

@⁠wike1701 on GitHub · 2026-11-27 17:28 UTC · original
wike1701:fix/preserve-more-on-f1-restart → main · +11 −2 · 1 files · 1 commits · open

Summary

When launching via PLAY_FRAMEGEN.cmd (scripts/play-gta6-framegen.ps1), CPU worker-pool tuning (VICTORY_THIN_THREADS, VICTORY_UNDER_THREADS, VICTORY_LAND_THREADS) and VICTORY_PLACED_ORDER=1 are passed to scripts/play-foxhound.ps1 via -More.

Previously, VICTORY_MENU_ARGS did not include -More, so clicking SAVE AND RESTART NOW in the F1 settings menu silently dropped all -More overrides on restart (e.g., landing threads fell back from 6 to 4 and VICTORY_PLACED_ORDER turned off in heavy open-world scenes).

This serializes -More as a single-quoted PowerShell hashtable literal into VICTORY_MENU_ARGS (escaping embedded single quotes) so F1 menu restarts preserve the exact same -More overrides.

Verification

  • PowerShell AST parse check on scripts/play-foxhound.ps1: OK
  • End-to-end powershell.exe -NoProfile -ExecutionPolicy Bypass -Command round-trip test matching menu.rs: OK (VICTORY_LAND_THREADS=6,VICTORY_PLACED_ORDER=1,VICTORY_THIN_THREADS=12,VICTORY_UNDER_THREADS=8)
  • cargo xtask policy: asset policy: 281 files ok
**@⁠wike1701** on GitHub · 2026-11-27 17:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/84) `wike1701:fix/preserve-more-on-f1-restart` → `main` · +11 −2 · 1 files · 1 commits · open ## Summary When launching via `PLAY_FRAMEGEN.cmd` (`scripts/play-gta6-framegen.ps1`), CPU worker-pool tuning (`VICTORY_THIN_THREADS`, `VICTORY_UNDER_THREADS`, `VICTORY_LAND_THREADS`) and `VICTORY_PLACED_ORDER=1` are passed to `scripts/play-foxhound.ps1` via `-More`. Previously, `VICTORY_MENU_ARGS` did not include `-More`, so clicking **SAVE AND RESTART NOW** in the F1 settings menu silently dropped all `-More` overrides on restart (e.g., landing threads fell back from 6 to 4 and `VICTORY_PLACED_ORDER` turned off in heavy open-world scenes). This serializes `-More` as a single-quoted PowerShell hashtable literal into `VICTORY_MENU_ARGS` (escaping embedded single quotes) so F1 menu restarts preserve the exact same `-More` overrides. ## Verification - PowerShell AST parse check on `scripts/play-foxhound.ps1`: **OK** - End-to-end `powershell.exe -NoProfile -ExecutionPolicy Bypass -Command` round-trip test matching `menu.rs`: **OK** (`VICTORY_LAND_THREADS=6,VICTORY_PLACED_ORDER=1,VICTORY_THIN_THREADS=12,VICTORY_UNDER_THREADS=8`) - `cargo xtask policy`: **asset policy: 281 files ok**
play-gta6-framegen.ps1 passes CPU worker-pool tuning and VICTORY_PLACED_ORDER=1 via -More when launching play-foxhound.ps1. Previously, VICTORY_MENU_ARGS omitted -More, so using 'SAVE AND RESTART NOW' in the F1 settings menu silently dropped VICTORY_THIN_THREADS, VICTORY_UNDER_THREADS, VICTORY_LAND_THREADS, and VICTORY_PLACED_ORDER on restart.

Serialize -More as a single-quoted PowerShell hashtable literal into VICTORY_MENU_ARGS (escaping embedded single quotes) so restarts from the F1 menu keep the same worker-pool and placed-order tuning.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:31:26 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Tested PR commit: fac68cd27b7f464675e6ca7ab119e7f9dc736a6a.

The actual PR launcher constructed restart arguments that round-tripped three -More values exactly: integer text, an apostrophe/semicolon-containing string, and an empty string. The argument string was parsed and bound to an authored receiver in Windows PowerShell 5.1. This verifies serialization, not an in-game F1 restart.

Verified independently with OpenAI Codex assistance. No gameplay or performance claims.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/84#issuecomment-7229808781) Tested PR commit: `fac68cd27b7f464675e6ca7ab119e7f9dc736a6a`. The actual PR launcher constructed restart arguments that round-tripped three `-More` values exactly: integer text, an apostrophe/semicolon-containing string, and an empty string. The argument string was parsed and bound to an authored receiver in Windows PowerShell 5.1. This verifies serialization, not an in-game F1 restart. Verified independently with OpenAI Codex assistance. No gameplay or performance claims. <!-- victory-native-validation-20261128 -->
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/84/head:github-bot/gh-84'
git switch 'github-bot/gh-84'

Merge

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