launcher: reconcile play-foxhound.ps1 defaults with play.rs + derived parity guard (#2323, #1922) #2722

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

@⁠HailLucifer666 on GitHub · 2026-11-29 16:34 UTC · original
HailLucifer666:fix/launcher-parity → main · +383 −161 · 3 files · 2 commits · draft

Addresses #2323 (launcher desync) and #1922. Draft — stacked on #2718 (fix/launcher-texture-room-default); ready to rebase onto main once #2718 merges.

What it changes

Reconciles the 10 drifted base defaults in scripts/play-foxhound.ps1 against apps/victory/src/play.rs (const SETTINGS) on 829188e9, and adds a derived two-routes-one-answer Pester parity guard (scripts/tests/launcher-parity.Tests.ps1) that parses const SETTINGS directly from play.rs (refusing unparseable lines) and diffs against Resolve-FoxhoundSettings:

  • Unsets VICTORY_AMBIENT_SPECULAR (broken green/purple stand-in reflections).
  • Aligns VICTORY_AMBIENT_AIR=1, VICTORY_BVH_MISS=1, VICTORY_NAN_SCRUB=1, VICTORY_TEXTURE_STAGE_MS=24, VICTORY_TEXTURE_CATCHUP=1, VICTORY_LEVELS_ON_DEMAND=0, VICTORY_POOL_SMALL=0, VICTORY_SAMPLED_MARKS=1, VICTORY_SAMPLED_EVICT=0.
  • Leaves VICTORY_TEXTURE_POOL, VICTORY_WINDOW_KB, VICTORY_WINDOW_TAILS, and explicitly waived VICTORY_RELAY untouched (coordinated with #2334).

Performance note ([Reported] in #2323 T2): On RTX 2060 SUPER 8 GB, matching play.rs's safer visual defaults measured -1.57 fps (11.54 vs 13.11) vs stock play-foxhound.ps1. User overrides ($Menu / -More) retain full precedence if a user opts back into faster/flickering texture switches.

How it was tested

  • Not verified here: Live gameplay A/B run.
  • Red-first [Confirmed]: launcher-parity.Tests.ps1 failed on all 10 drifted keys before the fix.
  • Invoke-Pester -Script .\scripts\tests\play-foxhound.Tests.ps1, .\scripts\tests\launcher-parity.Tests.ps1 → 12 passed, 0 failed.
  • Mutation probes (2026-11-29): (a) drifting VICTORY_TEXTURE_STAGE_MS → 32 (FailedCount=1), (b) re-enabling VICTORY_AMBIENT_SPECULAR='1' (FailedCount=1), both verified red before restore.
  • cargo test passed for the crates it touches: N/A (PowerShell + Pester only).

Checked for overlap

  • Searched open PRs at 829188e9. Stacked on #2718; coordinated with #2334 (does not touch VICTORY_TEXTURE_POOL or VICTORY_WINDOW_KB) and #2443 (--set precedence in play.rs).
**@⁠HailLucifer666** on GitHub · 2026-11-29 16:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2722) `HailLucifer666:fix/launcher-parity` → `main` · +383 −161 · 3 files · 2 commits · draft Addresses #2323 (launcher desync) and #1922. **Draft — stacked on #2718 (`fix/launcher-texture-room-default`); ready to rebase onto `main` once #2718 merges.** ## What it changes Reconciles the 10 drifted base defaults in `scripts/play-foxhound.ps1` against `apps/victory/src/play.rs` (`const SETTINGS`) on `829188e9`, and adds a derived two-routes-one-answer Pester parity guard (`scripts/tests/launcher-parity.Tests.ps1`) that parses `const SETTINGS` directly from `play.rs` (refusing unparseable lines) and diffs against `Resolve-FoxhoundSettings`: - Unsets `VICTORY_AMBIENT_SPECULAR` (broken green/purple stand-in reflections). - Aligns `VICTORY_AMBIENT_AIR=1`, `VICTORY_BVH_MISS=1`, `VICTORY_NAN_SCRUB=1`, `VICTORY_TEXTURE_STAGE_MS=24`, `VICTORY_TEXTURE_CATCHUP=1`, `VICTORY_LEVELS_ON_DEMAND=0`, `VICTORY_POOL_SMALL=0`, `VICTORY_SAMPLED_MARKS=1`, `VICTORY_SAMPLED_EVICT=0`. - Leaves `VICTORY_TEXTURE_POOL`, `VICTORY_WINDOW_KB`, `VICTORY_WINDOW_TAILS`, and explicitly waived `VICTORY_RELAY` untouched (coordinated with #2334). > **Performance note (`[Reported]` in #2323 T2):** On RTX 2060 SUPER 8 GB, matching `play.rs`'s safer visual defaults measured `-1.57 fps` (11.54 vs 13.11) vs stock `play-foxhound.ps1`. User overrides (`$Menu` / `-More`) retain full precedence if a user opts back into faster/flickering texture switches. ## How it was tested - **Not verified here:** Live gameplay A/B run. - **Red-first `[Confirmed]`:** `launcher-parity.Tests.ps1` failed on all 10 drifted keys before the fix. - `Invoke-Pester -Script .\scripts\tests\play-foxhound.Tests.ps1, .\scripts\tests\launcher-parity.Tests.ps1` → **12 passed, 0 failed**. - **Mutation probes (2026-11-29):** (a) drifting `VICTORY_TEXTURE_STAGE_MS` → `32` (`FailedCount=1`), (b) re-enabling `VICTORY_AMBIENT_SPECULAR='1'` (`FailedCount=1`), both verified red before restore. - `cargo test` passed for the crates it touches: N/A (PowerShell + Pester only). ## Checked for overlap - [x] Searched open PRs at `829188e9`. Stacked on #2718; coordinated with #2334 (does not touch `VICTORY_TEXTURE_POOL` or `VICTORY_WINDOW_KB`) and #2443 (`--set` precedence in `play.rs`).
play-foxhound.ps1 previously set VICTORY_TEXTURE_ROOM_PERCENT only inside
the DLSS and FSR Frame Generation blocks (74% for >2x DLSS FG, 80% for 2x
DLSS/FSR FG, 86% for FG-ready-off), leaving non-FG launches unset so the
runtime defaulted to 92.8% of the OS-reported DXGI budget.

Extract Resolve-FoxhoundSettings for side-effect-free unit testing and set
a post-FG fallback of 86% before applying saved victory-settings.txt ()
and -More overrides, so active FG caps (74%/80%) and user overrides retain
their exact precedence.

Verified:
- Invoke-Pester .\scripts\tests\play-foxhound.Tests.ps1 -> 9 passed, 0 failed
- Mutation probes (a) removing fallback and (b) moving fallback before FSR
  both confirmed red before restoring.
Reconcile the 10 drifted base defaults in scripts/play-foxhound.ps1 against
apps/victory/src/play.rs (const SETTINGS) on 829188e9:
- Unset VICTORY_AMBIENT_SPECULAR (broken green/purple stand-in reflections)
- Align VICTORY_AMBIENT_AIR=1, VICTORY_BVH_MISS=1, VICTORY_NAN_SCRUB=1,
  VICTORY_TEXTURE_STAGE_MS=24, VICTORY_TEXTURE_CATCHUP=1,
  VICTORY_LEVELS_ON_DEMAND=0, VICTORY_POOL_SMALL=0,
  VICTORY_SAMPLED_MARKS=1, VICTORY_SAMPLED_EVICT=0.
- Leave VICTORY_TEXTURE_POOL, VICTORY_WINDOW_KB, VICTORY_WINDOW_TAILS, and
  explicitly waived VICTORY_RELAY untouched (coordinated with PR #2334).

Add scripts/tests/launcher-parity.Tests.ps1, a two-routes-one-answer guard
that parses const SETTINGS directly from apps/victory/src/play.rs (refusing
unparseable lines) and diffs against Resolve-FoxhoundSettings.

Verified:
- Red-first: launcher-parity.Tests.ps1 failed on all 10 drifted keys before fix.
- Invoke-Pester play-foxhound.Tests.ps1 + launcher-parity.Tests.ps1 -> 12 passed, 0 failed.
- Mutation probes (a) drifting VICTORY_TEXTURE_STAGE_MS and (b) re-enabling
  VICTORY_AMBIENT_SPECULAR both failed (FailedCount >= 1) before restore.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:37:59 +00:00
This pull request has changes conflicting with the target branch.
  • scripts/play-foxhound.ps1
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/2722/head:github-bot/gh-2722'
git switch 'github-bot/gh-2722'

Merge

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