fix(play): preserve CLI flags and --set across restarts and update ambient/BVH defaults #262

Merged
Androtim merged 1 commit from upstream-pr/262 into main 2026-11-30 22:52:54 +00:00
Androtim commented 2026-11-30 21:48:50 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-30T21:48:50Z.


Summary

  • Fix VICTORY_MENU_ARGS generation via restart_args() in apps/victory/src/play.rs so warm-up restarts and F1 menu restarts preserve --series-s, --res, --dlss, --framegen, --framegen-ready, --fg-type, --fps, and all PowerShell-quoted --set NAME=VALUE overrides instead of silently reverting to native 1440p Series X with frame generation off.
  • Lower default VICTORY_AMBIENT_AIR from 1.5 to 1 to reduce indoor volumetric haze.
  • Default VICTORY_BVH_MISS=1 in SETTINGS so ray-tracing node tests skip unbuilt structures cleanly.
  • Add unit tests in play::tests::restart_args_defaults_and_preserves_cli_flags covering default and overridden CLI flag serialization and quoting.

Verification

  • xtask policy: passed (315 files ok)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory play::: passed (16 passed, 0 failed)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings: passed (0 warnings)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --features diagnostics --all-targets -- -D warnings: passed (0 warnings)
<!-- greyfinch-sync:Androtim/MiniVI:issue:5574373815 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/262). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-30T21:48:50Z. --- ### Summary - Fix `VICTORY_MENU_ARGS` generation via `restart_args()` in `apps/victory/src/play.rs` so warm-up restarts and F1 menu restarts preserve `--series-s`, `--res`, `--dlss`, `--framegen`, `--framegen-ready`, `--fg-type`, `--fps`, and all PowerShell-quoted `--set NAME=VALUE` overrides instead of silently reverting to native 1440p Series X with frame generation off. - Lower default `VICTORY_AMBIENT_AIR` from `1.5` to `1` to reduce indoor volumetric haze. - Default `VICTORY_BVH_MISS=1` in `SETTINGS` so ray-tracing node tests skip unbuilt structures cleanly. - Add unit tests in `play::tests::restart_args_defaults_and_preserves_cli_flags` covering default and overridden CLI flag serialization and quoting. ### Verification - `xtask policy`: passed (`315 files ok`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory play::`: passed (16 passed, 0 failed) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings`: passed (0 warnings) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --features diagnostics --all-targets -- -D warnings`: passed (0 warnings)
Androtim commented 2026-11-30 22:02:59 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-30T22:02:59Z.


Automated triage for the maintainers (not an approval).

Verdict: needs-gpu-test · CI (check): passing

Review Summary

  • apps/victory/src/play.rs (restart_args, prepare): Replaces the hardcoded VICTORY_MENU_ARGS string with restart_args(&exe, o), preserving --series-s, --res, --dlss, --framegen, --framegen-ready, --fg-type, --fps, and PowerShell single-quoted --set entries across warm-up and F1 menu restarts (while intentionally omitting --preload).
    • Precedence note: In settings_with_vram, saved F1 menu values override CLI flags (--series-s, --res, --dlss, --framegen, --fg-type, --fps), whereas --set overrides both. Preserving --set fixes warm-up restarts dropping CLI overrides, with the expected behavior that a CLI --set KEY=VAL continues to take precedence over F1 menu edits to KEY.
    • Quoting matches the existing PowerShell single-quote escaping (' -> '') used for exe.
  • apps/victory/src/play.rs (SETTINGS): Lowers default VICTORY_AMBIENT_AIR from "1.5" to "1" and adds ("VICTORY_BVH_MISS", "1").
  • Tests & CI: Unit test play::tests::restart_args_defaults_and_preserves_cli_flags covers default and overridden flags with spaces/apostrophes; CI is passing.

Verdict: needs-gpu-test

Logic and quoting look solid and CI is passing. Because this PR changes launcher rendering defaults (VICTORY_AMBIENT_AIR, VICTORY_BVH_MISS) and live restart arguments (VICTORY_MENU_ARGS), a quick local GPU smoke test is recommended before merging.


Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7293273579 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/262#issuecomment-7293273579). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-30T22:02:59Z. --- <!-- minivi-triage v1 head=f3263f8ac4687cc80704367032196818eb9d0097 verdict=needs-gpu-test ci=passing at=2026-11-30T22:03:32Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Review Summary - **`apps/victory/src/play.rs` (`restart_args`, `prepare`)**: Replaces the hardcoded `VICTORY_MENU_ARGS` string with `restart_args(&exe, o)`, preserving `--series-s`, `--res`, `--dlss`, `--framegen`, `--framegen-ready`, `--fg-type`, `--fps`, and PowerShell single-quoted `--set` entries across warm-up and F1 menu restarts (while intentionally omitting `--preload`). - Precedence note: In `settings_with_vram`, saved F1 menu values override CLI flags (`--series-s`, `--res`, `--dlss`, `--framegen`, `--fg-type`, `--fps`), whereas `--set` overrides both. Preserving `--set` fixes warm-up restarts dropping CLI overrides, with the expected behavior that a CLI `--set KEY=VAL` continues to take precedence over F1 menu edits to `KEY`. - Quoting matches the existing PowerShell single-quote escaping (`'` -> `''`) used for `exe`. - **`apps/victory/src/play.rs` (`SETTINGS`)**: Lowers default `VICTORY_AMBIENT_AIR` from `"1.5"` to `"1"` and adds `("VICTORY_BVH_MISS", "1")`. - **Tests & CI**: Unit test `play::tests::restart_args_defaults_and_preserves_cli_flags` covers default and overridden flags with spaces/apostrophes; CI is passing. ### Verdict: `needs-gpu-test` Logic and quoting look solid and CI is passing. Because this PR changes launcher rendering defaults (`VICTORY_AMBIENT_AIR`, `VICTORY_BVH_MISS`) and live restart arguments (`VICTORY_MENU_ARGS`), a quick local GPU smoke test is recommended before merging. --- _Generated with Antigravity CLI (`agy`)._
Androtim commented 2026-11-30 22:52:51 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-30T22:52:51Z.


Dual Verification Suite hardware check on RTX 4060 Ti (Wave 11 stacked #262 + #263 + #267 on origin/main 85d4f80, 45s in-world per profile):

  • Unit tests: cargo test -p victory (38 passed; 0 failed), mbient:: (14 passed; 0 failed; 1 ignored), list:: (16 passed; 0 failed)
  • goal-1440-dlssq (1440p, DLSS Quality, FG off): 3.9 fps median (min 3.5, max_draws=5420), VRAM 7440/6699 MB, dropped=158.5, akes=16 ( ailed=0),
<!-- greyfinch-sync:Androtim/MiniVI:comment:7294425401 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/262#issuecomment-7294425401). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-30T22:52:51Z. --- Dual Verification Suite hardware check on RTX 4060 Ti (Wave 11 stacked #262 + #263 + #267 on origin/main 85d4f80, 45s in-world per profile): - Unit tests: cargo test -p victory (38 passed; 0 failed), mbient:: (14 passed; 0 failed; 1 ignored), list:: (16 passed; 0 failed) - goal-1440-dlssq (1440p, DLSS Quality, FG off): 3.9 fps median (min 3.5, max_draws=5420), VRAM 7440/6699 MB, dropped=158.5, akes=16 ( ailed=0),
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
Androtim/MiniVI!262
No description provided.