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

Closed
wike1701 wants to merge 1 commit from upstream-pr/84 into main
wike1701 commented 2026-11-27 17:28:53 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wike1701 on 2026-11-27T17:28:53Z.


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
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5530671871 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/84). Originally posted by [wike1701](https://github.com/wike1701) on 2026-11-27T17:28:53Z. --- ## 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**
1tsethan commented 2026-11-27 23:01:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:01:26Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7229808781 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/84#issuecomment-7229808781). Originally posted by [1tsethan](https://github.com/1tsethan) on 2026-11-27T23:01:26Z. --- 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 -->
trustno1-coder commented 2026-11-28 18:27:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T18:27:27Z.


Thanks for this. I'm closing it without merging because it conflicts with the current main in the files it changes, and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request. Thanks for the work.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243804179 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/84#issuecomment-7243804179). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T18:27:27Z. --- Thanks for this. I'm closing it without merging because it conflicts with the current main in the files it changes, and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request. Thanks for the work.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!84
No description provided.