scripts\play.ps1: -Safe keeps VICTORY_RELAY=2 and VICTORY_CARD_STEPS=2, deletes diagnostic switches, and warns about VICTORY_SKIP_PIPELINES=none on every run #25

Open
opened 2026-11-26 03:31:26 +00:00 by github-bot · 3 comments
Owner

@⁠itsonewi on GitHub · 2026-11-25 23:48 UTC · original

scripts\play.ps1 is what every report here runs through, and it has four defects that change what those reports mean. Three are one-line fixes.

1. -Safe keeps the two switches the reports blame

The shared table sets them for both modes (scripts/play.ps1:15-20):

VICTORY_RELAY = '2'; ... VICTORY_CARD_STEPS = '2'

and the -Safe branch (:21-25) only adds two '0' values and omits three others:

if ($Safe) { $settings.VICTORY_UNDER_WIDE='0'; $settings.VICTORY_LAND_ECHO='0' }
else { $settings.VICTORY_THIN='1'; $settings.VICTORY_JOIN_PARTS='8'; $settings.VICTORY_UPLOAD_AHEAD='1' }

So -Safe runs with VICTORY_RELAY=2 and VICTORY_CARD_STEPS=2 — exactly the two stages #13 measured as wrong on vkd3d-proton (stage 2 hands back garbage skinned meshes; CARD_STEPS=2 removes the device) and that #11's numbers also point at. The script calls -Safe "the first thing to try when something is wrong" (:3), the README repeats it, and the result is visible in the tracker: #11 runs 3, 4, 5, 6 and 9 are all -Safe and all end in removal; #12 says the crash is identical with and without -Safe. Those reports do not test a safe configuration, they test a configuration that still has both fast paths on.

Fix: in the -Safe branch set VICTORY_RELAY='1' and VICTORY_CARD_STEPS='0' (they are the two with measured breakage), and keep -Safe meaning "only the paths that are known-correct".

2. It deletes every diagnostic switch set in the shell

scripts/play.ps1:33-34:

$paths = 'VICTORY_CONFIG','VICTORY_GAME_DIR','VICTORY_CACHE_DIR','VICTORY_DATA_DIR'
Get-ChildItem Env:VICTORY_* | Where-Object { $_.Name -notin $paths } | ForEach-Object { Remove-Item "Env:$($_.Name)" }

Everything else a user exports is removed before the run: VICTORY_D3D12_ADAPTER (#7), VICTORY_PIPELINE_WORKERS (#8), VICTORY_SKIP_PIPELINES (#8, #11), VICTORY_GPU_TIMING, VICTORY_DESC_WHY, VICTORY_WAVE_WHY, VICTORY_SAFE_COPY. Only -More @{...} survives, and the comment above it does not say that a variable set in the window will be discarded. Two of the reports in this tracker are experiments with exactly such variables, so some of their "no effect" results may be this line rather than the switch.

Fix: do not remove unknown VICTORY_* variables (they are the diagnostic surface), or print the ones being removed once, so a report can show them.

3. VICTORY_SKIP_PIPELINES='none' as a default warns on every run

:19 sets VICTORY_SKIP_PIPELINES = 'none'. parse_skip_hashes (crates/victory-gpu/src/pipeline.rs:483-496) warns for any value that is not a 16-digit hex hash, so every run of the launcher logs

WARN victory_gpu::pipeline: hash="none" VICTORY_SKIP_PIPELINES expects 16-digit shader hashes

That is a warning about a value the user never set, printed in the log people paste into issues, and #8 was told to check for exactly this line. It also means the launcher always sets the switch, so -Safe cannot leave it unset. Fix: remove the entry.

4. -Build release silently disables DRED

:19 sets VICTORY_D3D12_DRED='light', and dred_light(), dred_on() and dred_faults() are all gated on cfg!(feature = "diagnostics") (crates/victory-gpu/src/host.rs:1651, :1661, :1676). With -Build release the binary has no diagnostics feature, so the setting does nothing and the user still believes device-removal data is on. Fix: warn once when VICTORY_D3D12_DRED is set in a build without the feature, or refuse -Build release with a DRED value.

5. Both early exits report success

:30-31 print and return, which exits the script with code 0. Anything that runs the launcher in a loop records "no target build" and "no exe" as successful runs. exit 1 is the one-line fix.

Not checked

I read the script and the switches it sets against the source at 0a43566; I did not run PowerShell with the launcher or build the binary here.

AI use

AI-assisted review (source reading). No build, no hardware run, no game files.

**@⁠itsonewi** on GitHub · 2026-11-25 23:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/25) `scripts\play.ps1` is what every report here runs through, and it has four defects that change what those reports mean. Three are one-line fixes. ## 1. `-Safe` keeps the two switches the reports blame The shared table sets them for **both** modes (`scripts/play.ps1:15-20`): ```powershell VICTORY_RELAY = '2'; ... VICTORY_CARD_STEPS = '2' ``` and the `-Safe` branch (`:21-25`) only adds two `'0'` values and omits three others: ```powershell if ($Safe) { $settings.VICTORY_UNDER_WIDE='0'; $settings.VICTORY_LAND_ECHO='0' } else { $settings.VICTORY_THIN='1'; $settings.VICTORY_JOIN_PARTS='8'; $settings.VICTORY_UPLOAD_AHEAD='1' } ``` So `-Safe` runs with `VICTORY_RELAY=2` and `VICTORY_CARD_STEPS=2` — exactly the two stages #13 measured as wrong on vkd3d-proton (stage 2 hands back garbage skinned meshes; `CARD_STEPS=2` removes the device) and that #11's numbers also point at. The script calls `-Safe` "the first thing to try when something is wrong" (`:3`), the README repeats it, and the result is visible in the tracker: #11 runs 3, 4, 5, 6 and 9 are all `-Safe` and all end in removal; #12 says the crash is identical with and without `-Safe`. Those reports do not test a safe configuration, they test a configuration that still has both fast paths on. Fix: in the `-Safe` branch set `VICTORY_RELAY='1'` and `VICTORY_CARD_STEPS='0'` (they are the two with measured breakage), and keep `-Safe` meaning "only the paths that are known-correct". ## 2. It deletes every diagnostic switch set in the shell `scripts/play.ps1:33-34`: ```powershell $paths = 'VICTORY_CONFIG','VICTORY_GAME_DIR','VICTORY_CACHE_DIR','VICTORY_DATA_DIR' Get-ChildItem Env:VICTORY_* | Where-Object { $_.Name -notin $paths } | ForEach-Object { Remove-Item "Env:$($_.Name)" } ``` Everything else a user exports is removed before the run: `VICTORY_D3D12_ADAPTER` (#7), `VICTORY_PIPELINE_WORKERS` (#8), `VICTORY_SKIP_PIPELINES` (#8, #11), `VICTORY_GPU_TIMING`, `VICTORY_DESC_WHY`, `VICTORY_WAVE_WHY`, `VICTORY_SAFE_COPY`. Only `-More @{...}` survives, and the comment above it does not say that a variable set in the window will be discarded. Two of the reports in this tracker are experiments with exactly such variables, so some of their "no effect" results may be this line rather than the switch. Fix: do not remove unknown `VICTORY_*` variables (they are the diagnostic surface), or print the ones being removed once, so a report can show them. ## 3. `VICTORY_SKIP_PIPELINES='none'` as a default warns on every run `:19` sets `VICTORY_SKIP_PIPELINES = 'none'`. `parse_skip_hashes` (`crates/victory-gpu/src/pipeline.rs:483-496`) warns for any value that is not a 16-digit hex hash, so every run of the launcher logs ``` WARN victory_gpu::pipeline: hash="none" VICTORY_SKIP_PIPELINES expects 16-digit shader hashes ``` That is a warning about a value the user never set, printed in the log people paste into issues, and #8 was told to check for exactly this line. It also means the launcher always sets the switch, so `-Safe` cannot leave it unset. Fix: remove the entry. ## 4. `-Build release` silently disables DRED `:19` sets `VICTORY_D3D12_DRED='light'`, and `dred_light()`, `dred_on()` and `dred_faults()` are all gated on `cfg!(feature = "diagnostics")` (`crates/victory-gpu/src/host.rs:1651`, `:1661`, `:1676`). With `-Build release` the binary has no diagnostics feature, so the setting does nothing and the user still believes device-removal data is on. Fix: warn once when `VICTORY_D3D12_DRED` is set in a build without the feature, or refuse `-Build release` with a DRED value. ## 5. Both early exits report success `:30-31` print and `return`, which exits the script with code 0. Anything that runs the launcher in a loop records "no target build" and "no exe" as successful runs. `exit 1` is the one-line fix. ## Not checked I read the script and the switches it sets against the source at `0a43566`; I did not run PowerShell with the launcher or build the binary here. ## AI use AI-assisted review (source reading). No build, no hardware run, no game files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:26 +00:00
Author
Owner

@⁠Adika713 on GitHub · 2026-11-25 23:57 UTC · original

Confirmed point 3 in a real run of this fork's diag build at 0a43566: using the same settings as scripts\play.ps1, including VICTORY_SKIP_PIPELINES='none', produced WARN victory_gpu::pipeline: VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="none" at startup. The value is set by the launcher, not by the user, and it adds noise to the logs people paste into issues. Removing that entry from play.ps1 is the right fix; I made no repository change. The same 120 s 1920×1080 Series S run reported a steady 30.0 fps / 33.3 ms per frame on this RX 6950 XT host, and no game files were posted.

AI-assisted: OpenCode, model Big Pickle. No game data.

**@⁠Adika713** on GitHub · 2026-11-25 23:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/25#issuecomment-7178245028) Confirmed point 3 in a real run of this fork's `diag` build at `0a43566`: using the same settings as `scripts\play.ps1`, including `VICTORY_SKIP_PIPELINES='none'`, produced `WARN victory_gpu::pipeline: VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="none"` at startup. The value is set by the launcher, not by the user, and it adds noise to the logs people paste into issues. Removing that entry from `play.ps1` is the right fix; I made no repository change. The same 120 s 1920×1080 Series S run reported a steady 30.0 fps / 33.3 ms per frame on this RX 6950 XT host, and no game files were posted. AI-assisted: OpenCode, model Big Pickle. No game data.
Author
Owner

@⁠itsonewi on GitHub · 2026-11-26 00:06 UTC · original

Thanks for confirming it in a real run — and for leaving the repository alone, since the fix belongs in scripts/play.ps1 and not in anyone's checkout.

Three notes on top of your observation:

  • The warning is not an argument error: parse_skip_hashes (crates/victory-gpu/src/pipeline.rs:475-505) only reports a token that is not 16 hex digits, and none passes through the same path a real hash would. So the launcher is handing the switch a value that the switch cannot act on, once per run, and the line lands in the log that people paste.
  • -Safe does not remove it. That branch (:33-34) clears every VICTORY_* it does not keep and then re-adds the four settings it wants, but VICTORY_SKIP_PIPELINES='none' is set at :19 on every path, so the noise is present in both modes. Point 2 and point 3 of the report are the same line of the launcher seen from two ends.
  • 30.0 fps / 33.3 ms steady at Series S 1920×1080 is a useful second data point for the pacing thread: it is exactly the vsync interval, so it says the frame is being paced rather than that the machine ran out of headroom. If you ever see the same run report 30.0 fps with a most above 33.3 ms in the same line, that would say the opposite and is worth posting.

(Answer written with AI assistance, from pipeline.rs and scripts/play.ps1 at 0a43566.)

**@⁠itsonewi** on GitHub · 2026-11-26 00:06 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/25#issuecomment-7178396678) Thanks for confirming it in a real run — and for leaving the repository alone, since the fix belongs in `scripts/play.ps1` and not in anyone's checkout. Three notes on top of your observation: - The warning is not an argument error: `parse_skip_hashes` (`crates/victory-gpu/src/pipeline.rs:475-505`) only reports a token that is not 16 hex digits, and `none` passes through the same path a real hash would. So the launcher is handing the switch a value that the switch cannot act on, once per run, and the line lands in the log that people paste. - `-Safe` does not remove it. That branch (`:33-34`) clears every `VICTORY_*` it does not keep and then re-adds the four settings it wants, but `VICTORY_SKIP_PIPELINES='none'` is set at `:19` on every path, so the noise is present in both modes. Point 2 and point 3 of the report are the same line of the launcher seen from two ends. - 30.0 fps / 33.3 ms steady at Series S 1920×1080 is a useful second data point for the pacing thread: it is exactly the vsync interval, so it says the frame is being paced rather than that the machine ran out of headroom. If you ever see the same run report 30.0 fps with a `most` above 33.3 ms in the same line, that would say the opposite and is worth posting. (Answer written with AI assistance, from `pipeline.rs` and `scripts/play.ps1` at `0a43566`.)
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 08:19 UTC · original

Partly fixed by #78, now in main (0ce46d5a); the rest is still open.

**@⁠avatarmanz** on GitHub · 2026-11-26 08:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/25#issuecomment-7186456571) Partly fixed by #78, now in main (0ce46d5a); the rest is still open.
This discussion has been locked. Commenting is limited to contributors.
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/avatarmanz--VIctory-7900XTX#25
No description provided.