play.ps1: -Build release silently drops the DRED data the script asks for #283

Closed
opened 2026-11-26 18:52:44 +00:00 by github-bot · 0 comments
Owner

@⁠itsonewi on GitHub · 2026-11-26 18:51 UTC · original

What happens

scripts/play.ps1:21 sets, for every run:

VICTORY_SHOW_AFTER = '1'; VICTORY_AMBIENT = '0.8'; VICTORY_D3D12_DRED = 'light'

and -Build (:14) offers release beside the default diag, mapped to target\release\victory.exe (:32). DRED, however, is compiled in only with the diagnostics feature: crates/victory-gpu/src/host.rs:1842 and :1857 read VICTORY_D3D12_DRED behind cfg!(feature = "diagnostics"), and the documented build (README, "How to run it") is --profile diag -p victory --features diagnostics → target\diag.

So under -Build release the script sets a switch the binary cannot honour, and neither the script nor the log says it was ignored.

Why it matters

Someone measuring with -Build release and then reporting a device loss has no breadcrumbs, no markers and no fault address — the data #214 and #95 asked for — while believing DRED light was on because the launcher set it.

Suggested fix

Either leave the diagnostics-only switches out when $Build -eq 'release', or print one line saying which of the script's settings exist only in diag builds.

AI use

Found by reading scripts/play.ps1, crates/victory-gpu/src/host.rs and the README's build command. No script was executed.

**@⁠itsonewi** on GitHub · 2026-11-26 18:51 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/283) ## What happens `scripts/play.ps1:21` sets, for every run: ```powershell VICTORY_SHOW_AFTER = '1'; VICTORY_AMBIENT = '0.8'; VICTORY_D3D12_DRED = 'light' ``` and `-Build` (`:14`) offers `release` beside the default `diag`, mapped to `target\release\victory.exe` (`:32`). DRED, however, is compiled in only with the `diagnostics` feature: `crates/victory-gpu/src/host.rs:1842` and `:1857` read `VICTORY_D3D12_DRED` behind `cfg!(feature = "diagnostics")`, and the documented build (README, "How to run it") is `--profile diag -p victory --features diagnostics` → `target\diag`. So under `-Build release` the script sets a switch the binary cannot honour, and neither the script nor the log says it was ignored. ## Why it matters Someone measuring with `-Build release` and then reporting a device loss has no breadcrumbs, no markers and no fault address — the data #214 and #95 asked for — while believing DRED light was on because the launcher set it. ## Suggested fix Either leave the diagnostics-only switches out when `$Build -eq 'release'`, or print one line saying which of the script's settings exist only in `diag` builds. ## AI use Found by reading `scripts/play.ps1`, `crates/victory-gpu/src/host.rs` and the README's build command. No script was executed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:52:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.