menu: the DLSS note comes from the menu's own state, not from this PC's environment #1
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/RedLightDOWN--VIvidia!1
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1"
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?
@erdemcisse on GitHub · 2026-12-01 20:52 UTC · original
fix/menu-note-not-from-the-environment→main· +12 −8 · 1 files · 1 commits · closed without mergingWhat and why
Menu::linesreadVICTORY_STREAMLINE_DIRagain for every painted line, so what the F1 menu said about DLSS depended on the environment of whoever ran it, not on the menu's own state. On a machine that sets that variable — a developer's own Streamline SDK, asGet-NVIDIA-DLSS.cmdsets up —victory-gpu'shost::menu::tests::the_link_is_always_right_under_the_notefails onmain:CI passes only because its runner has no such variable, so the test proves nothing on a machine set up to run DLSS.
The note is a property of the menu, decided when it opens, not a fact to re-read each frame:
Menu::new()resolves it once intono_dlss_files, and the line reads that field. The tests then say which state they test (no_dlss_files: truein the one that checks the note,falseelsewhere) instead of inheriting one. No environment lookup is left on the paint path; the only remaining readers of the variable are the loader incrates/victory-gpu/src/streamline.rs.Tested
One test, four trees, the toolchain and target of the workflow:
VICTORY_STREAMLINE_DIRthe_link_is_always_right_under_the_notemain(b67c405)left: ["", "", ""]main(b67c405)059f140, rebased onb67c405)And on this branch, with the variable set,
cargo test -p victory-gpu --lib host::menu::is 7 passed / 0 failed.Toolchain: rustup 1.98.1 with both hosts installed.
rust-toolchain.tomlpinschannel = "1.98.1"andtargets = ["x86_64-pc-windows-msvc"], but a bare channel name resolves to rustup's default host, which on this PC isx86_64-pc-windows-gnu— an unqualifiedcargohere links with mingw-w64's gcc. The rows above are fromRUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc;windows-latestremains the authority.A flake seen on the way (not touched here)
In one full-suite run on the clippy branch,
descriptor::tests::records_copied_as_bytes_are_made_at_the_next_syncfailed once and passed alone. The cause is not this change:sync_heapswalks every registered heap, so another test's round can take this heap's changed page and make no slot — the order dependence readmet3xt-lab/foxhound#481 fixes upstream with a retry (this fork carries neither that test nor that fix). Nothing here changes it.GPUs tested: n/a — a menu unit test; no device workload, no game files.
AI-assisted: yes — DeepSeek Harness (lead agent). The workflow run for this branch reports
action_required(a fork PR waits for a maintainer's approval before its checks run), so the numbers above are local.@erdemcisse on GitHub · 2026-12-02 18:38 UTC · original
Rebased on
mainb67c405and the body re-measured on that tree.b67c405(set/unset) against this branch (set/unset) side by side, with the panic quoted frommainrather than from memory, andhost::menu::on this branch (7 passed, variable set).rust-toolchain.toml's barechannel = "1.98.1"resolves to rustup's default host, which here isx86_64-pc-windows-gnu, so an unqualifiedcargolinks with mingw. Every number quoted is fromRUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc.descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync, whose order dependence readmet3xt-lab/foxhound#481 fixes upstream (this fork has neither the sibling test nor the retry).Force-pushed:
059f140.2277952930to059f1408eaPull request closed