translate: an unparsable VICTORY_HOST_WAVE is dropped without a word #282
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#282
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsonewi on GitHub · 2026-11-26 18:51 UTC · original
What happens
apps/victory/src/translate/host_wave.rs:7:The CLI help (
apps/victory/src/main.rs:78-83) says "VICTORY_HOST_WAVE overrides the host wave width, including with --warm … Zero means unknown width", and the module does warn when the two spellings disagree (:9-21). But a value that does not parse —VICTORY_HOST_WAVE=64with the trailing space of a copied line,=64 lanes,=wave64— becomesNonesilently. If the alias is not set, translation and--warmthen run with the width the code would have detected, and no message is printed at all.Why it matters
The shader cache and the warm-up are keyed on the host width. A value that was meant to be set but is dropped translates (and caches) shaders for a different host than the user asked for, with the switch looking applied.
Suggested fix
trim()before parsing, and report through the existingwarncallback when a value was given but is not a number, so a typo cannot pass as "unset".AI use
Found by reading
apps/victory/src/translate/host_wave.rs,apps/victory/src/main.rsand the call site inmain.rs. No code was built or run.github-bot referenced this issue2026-11-26 19:49:11 +00:00
VICTORY_AMBIENT_SETTLE,VICTORY_MOUSE_SENSorVICTORY_DSTORAGE_STAGING_MBis silently the default (for the first, silently off) #514