menu: the DLSS note comes from the menu's own state, not from this PC's environment #1

Closed
github-bot wants to merge 1 commit from github-bot/gh-1 into main AGit
Owner

@⁠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 merging

What and why

Menu::lines read VICTORY_STREAMLINE_DIR again 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, as Get-NVIDIA-DLSS.cmd sets up — victory-gpu's host::menu::tests::the_link_is_always_right_under_the_note fails on main:

thread '…the_link_is_always_right_under_the_note' panicked at crates\victory-gpu\src\host\menu.rs:1123:9:
assertion `left == right` failed
  left: ["", "", ""]
 right: ["THE NVIDIA DLSS FILES ARE NOT ON THIS PC YET: THEY ARE", "DOWNLOADED FROM NVIDIA ON GITHUB AT THE NEXT START", "(ABOUT 70 MB, ONCE). SAVE AND RESTART NOW DOES IT."]

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 into no_dlss_files, and the line reads that field. The tests then say which state they test (no_dlss_files: true in the one that checks the note, false elsewhere) instead of inheriting one. No environment lookup is left on the paint path; the only remaining readers of the variable are the loader in crates/victory-gpu/src/streamline.rs.

Tested

One test, four trees, the toolchain and target of the workflow:

tree VICTORY_STREAMLINE_DIR the_link_is_always_right_under_the_note
main (b67c405) set FAILED — left: ["", "", ""]
main (b67c405) unset ok
this branch (059f140, rebased on b67c405) set ok
this branch unset ok

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.toml pins channel = "1.98.1" and targets = ["x86_64-pc-windows-msvc"], but a bare channel name resolves to rustup's default host, which on this PC is x86_64-pc-windows-gnu — an unqualified cargo here links with mingw-w64's gcc. The rows above are from RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc; windows-latest remains 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_sync failed once and passed alone. The cause is not this change: sync_heaps walks 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-01 20:52 UTC · [original](https://github.com/RedLightDOWN/VIvidia/pull/1) `fix/menu-note-not-from-the-environment` → `main` · +12 −8 · 1 files · 1 commits · closed without merging ### What and why `Menu::lines` read `VICTORY_STREAMLINE_DIR` again 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, as `Get-NVIDIA-DLSS.cmd` sets up — `victory-gpu`'s `host::menu::tests::the_link_is_always_right_under_the_note` fails on `main`: ``` thread '…the_link_is_always_right_under_the_note' panicked at crates\victory-gpu\src\host\menu.rs:1123:9: assertion `left == right` failed left: ["", "", ""] right: ["THE NVIDIA DLSS FILES ARE NOT ON THIS PC YET: THEY ARE", "DOWNLOADED FROM NVIDIA ON GITHUB AT THE NEXT START", "(ABOUT 70 MB, ONCE). SAVE AND RESTART NOW DOES IT."] ``` 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 into `no_dlss_files`, and the line reads that field. The tests then say which state they test (`no_dlss_files: true` in the one that checks the note, `false` elsewhere) instead of inheriting one. No environment lookup is left on the paint path; the only remaining readers of the variable are the loader in `crates/victory-gpu/src/streamline.rs`. ### Tested One test, four trees, the toolchain and target of the workflow: | tree | `VICTORY_STREAMLINE_DIR` | `the_link_is_always_right_under_the_note` | | --- | --- | --- | | `main` (`b67c405`) | set | **FAILED** — `left: ["", "", ""]` | | `main` (`b67c405`) | unset | ok | | this branch (`059f140`, rebased on `b67c405`) | set | ok | | this branch | unset | ok | 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.toml` pins `channel = "1.98.1"` and `targets = ["x86_64-pc-windows-msvc"]`, but a bare channel name resolves to rustup's **default host**, which on this PC is `x86_64-pc-windows-gnu` — an unqualified `cargo` here links with mingw-w64's gcc. The rows above are from `RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc`; `windows-latest` remains 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_sync` failed once and passed alone. The cause is not this change: `sync_heaps` walks 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.
`Menu::lines` asked `VICTORY_STREAMLINE_DIR` again for every painted line, so
what the menu said depended on the environment of whoever ran it: on a machine
that sets that variable (a developer's own Streamline SDK), the doc test
`the_link_is_always_right_under_the_note` failed with three empty lines where
the note belongs, and CI only passed because its runner has no such variable.

Resolve it once, when the menu opens, into `no_dlss_files`, and let the line
read that. The tests say which state they test instead of inheriting one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:54:27 +00:00
Author
Owner

@⁠erdemcisse on GitHub · 2026-12-02 18:38 UTC · original

Rebased on main b67c405 and the body re-measured on that tree.

  • The table now has the four runs on b67c405 (set/unset) against this branch (set/unset) side by side, with the panic quoted from main rather than from memory, and host::menu:: on this branch (7 passed, variable set).
  • The toolchain paragraph was wrong and is corrected: this PC does have the MSVC host of 1.98.1. What happens is that rust-toolchain.toml's bare channel = "1.98.1" resolves to rustup's default host, which here is x86_64-pc-windows-gnu, so an unqualified cargo links with mingw. Every number quoted is from RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc.
  • One flake seen while testing is named, not chased: 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.

**@⁠erdemcisse** on GitHub · 2026-12-02 18:38 UTC · [original](https://github.com/RedLightDOWN/VIvidia/pull/1#issuecomment-7354916835) Rebased on `main` `b67c405` and the body re-measured on that tree. - The table now has the four runs on `b67c405` (set/unset) against this branch (set/unset) side by side, with the panic quoted from `main` rather than from memory, and `host::menu::` on this branch (7 passed, variable set). - The toolchain paragraph was wrong and is corrected: this PC **does** have the MSVC host of 1.98.1. What happens is that `rust-toolchain.toml`'s bare `channel = "1.98.1"` resolves to rustup's *default host*, which here is `x86_64-pc-windows-gnu`, so an unqualified `cargo` links with mingw. Every number quoted is from `RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc`. - One flake seen while testing is named, not chased: `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`.
github-bot force-pushed github-bot/gh-1 from 2277952930 to 059f1408ea 2026-12-02 19:06:13 +00:00 Compare
github-bot closed this pull request 2026-12-03 18:14:34 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.