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

Closed
opened 2026-11-26 18:51:22 +00:00 by itsonewi · 0 comments
itsonewi commented 2026-11-26 18:51:22 +00:00 (Migrated from github.com)
Contributor

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by itsonewi on 2026-11-26T18:51:22Z.


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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:6633188061 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/issues/283). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-26T18:51:22Z. --- ## 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.
Sign in to join this conversation.
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
Belobug/VIctory-Belobug-AMD#283
No description provided.