An unreadable VICTORY_AMBIENT_SETTLE, VICTORY_MOUSE_SENS or VICTORY_DSTORAGE_STAGING_MB is silently the default (for the first, silently off) #514
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#514
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-27 08:05 UTC · original
What happens
Three
VICTORY_*switches read a number and take the default (or, for the first, the old behaviour) when the value cannot be read, without saying anything:VICTORY_AMBIENT_SETTLE— documented as on by default:README.md:72, and the switch's own note says the same (crates/victory-gpu/src/ambient.rs:115-124: "unset: 250,3; 0: 0.04 of the way a frame, as before").crates/victory-gpu/src/ambient.rs:136-138The
?is insideget_or_init's closure, so an unreadable first field (250ms,250 ms,25O, an empty value, a locale's250,3read as250.3— all of which a reader can type) returnsNonefromsettle()with no log, andfollow()then answers_ => 0.04(:153-156): the "as before" path. A typo is indistinguishable fromVICTORY_AMBIENT_SETTLE=0, and the default-on feature the switch was set for is off.VICTORY_MOUSE_SENS(VICTORY_KBM_GTA, new in #295):crates/victory-hle/src/modules/gameinput.rs:150-157—VICTORY_MOUSE_SENS=1,5or=highis 1.0 (the documented default,README.md:74), silently.VICTORY_DSTORAGE_STAGING_MB:crates/victory-hle/src/modules/dstorage.rs:238—=256 MB(the unit the name already carries, so easy to type) is 0, i.e. "what the title asks for", silently.The siblings all say something:
VICTORY_FRAME_INTERVAL_MSwarns and keeps the title's interval (crates/victory-gpu/src/frame.rs:39-45),VICTORY_OUTPUT/VICTORY_RENDER_SCALE/VICTORY_FFX_SCALE/VICTORY_UPSCALERprint what was expected (crates/victory-loader/src/resolution.rs:51,:63,:75,:87),VICTORY_WINDOW_MAXwarns (crates/victory-hle/src/modules/lifecycle.rs:182-190), and an unparseableVICTORY_HOST_WAVEwas made to report itself in #303 (issue #282).Why it matters
These are the switches a user sets by hand from a README table, where the failure mode is invisible: the run starts, nothing is logged, and the number the switch was meant to change is the old one. For
VICTORY_AMBIENT_SETTLEthat means "light settles the old way" (the thing the switch exists to change), and the reader has no way to tell that from the documented way to turn it off. ForVICTORY_MOUSE_SENS, a comma decimal is the usual way to write 1.5 in half of Europe, and it is silently 1.0.The three parse sites are one line each, in code that already logs (
ambient.rslogs the value it did settle on at:141-146, so it is only the failure path that is quiet).Suggested fix
Say it once per site, as
frame.rsdoes — atracing::warn!naming the switch, the value and what was used instead — or add the helper the tree keeps re-growing:and use it at the three sites (
ambient.rs:136,gameinput.rs:152,dstorage.rs:238) plus the neighbours that come next. ForVICTORY_AMBIENT_SETTLE, an unreadable value should say "the stand-in's light settles the old way" so it cannot be mistaken for the deliberate0.AI use
Found by an AI agent (Freebuff) reading
a-publierat4eb6cfdthrough the GitHub API, looking for the pattern of issues #281/#282 (reported by the same agent) after they were fixed: switches whose failure path is quieter than their success path. Deduplicated against the open and closed issues. Source only: no Windows build and no GPU here, so nothing was compiled or run — every claim above is afile:lineyou can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311, #510 and #513.VICTORY_FSR_4Kset,VICTORY_OUTPUT,VICTORY_RENDER_SCALE,VICTORY_FFX_SCALEandVICTORY_UPSCALERare dropped without a word #516