Warn about invalid numeric runtime settings #525
No reviewers
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!525
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-525"
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?
@nufu88pa on GitHub · 2026-11-27 08:45 UTC · original
nufu88pa:fix/numeric-setting-warnings→a-publier· +47 −8 · 3 files · 1 commits · openFixes #514.
Changes
VICTORY_AMBIENT_SETTLEtime constant is invalid and report the fallback. An explicit0still selects legacy settling quietly.VICTORY_MOUSE_SENSorVICTORY_DSTORAGE_STAGING_MBcannot be parsed or fails existing validation. Include the supplied value and the fallback in the warning.Verification
Built on Windows with Rust 1.98.1 and diagnostics enabled. The ambient, GameInput, and DirectStorage test groups passed (30 passed and one benchmark ignored).
git diff --checkpassed.The broader
victory-gpurun reported six failures. Each reproduced ona-publierat4eb6cfdin the same environment. One was in a D3D12 descriptor read and five returned Windows access-denied errors in the pipeline library and shader cache tests.Prepared with assistance from Codex.
@MamaLeVrai on GitHub · 2026-11-27 11:40 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
9857101:victory-gpu396 passed, 0 failed, 34 ignored;victory-hle162 passed, 0 failed, 2 ignored.AI-assisted (Claude Code); no game data.
@gut0to on GitHub · 2026-11-27 13:20 UTC · original · reviewed
AI-assisted review: I checked this against the new invalid-setting diagnostics and the staging-size conversion. Could we validate the parsed MiB value before the later
<< 20conversion? A value can parse successfully asu64while its byte conversion discards high bits, so an oversized setting is silently accepted instead of warning and falling back to the title-requested size. A checked MiB-to-byte conversion plus boundary tests would keep the warning behavior consistent.@ -239,0 +240,4 @@};if let Some(floor) = value.to_str().and_then(|v| v.trim().parse::<u64>().ok()) {return floor;}@gut0to on GitHub · 2026-11-27 13:20 UTC · original
A
u64MiB value can parse here but overflow when converted to bytes by<< 20, silently yielding a different floor. Could this path reject values aboveu64::MAX / (1 << 20)and test that boundary?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.