MENU-HEAP-RECHECK-OFF: the texture recheck menu row's OFF sets 0 instead of unsetting #2644

Closed
Bloh09 wants to merge 1 commit from upstream-pr/2644 into main
Bloh09 commented 2026-11-29 21:03:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T21:03:34Z.


Claimed in the coordination issue as: MENU-HEAP-RECHECK-OFF (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7262556064)

What and why

The F1 menu's TEXTURE RECHECK OFF wrote "", which unsets the var, so recheck_every() fell back to 300 and OFF did nothing. OFF is now "0", and unset shows as EVERY 300 FRAMES. Reported by @z3r0rc on #2570.

Tested

Added texture_recheck_off_is_zero to the menu tests. host only builds on Windows, so I couldn't run it on this Linux box. CI's windows job runs it. check_no_game_data.py passes.

GPUs tested: none (CPU/Linux only)

AI-assisted: yes. AI-assisted (Grok Bot), reviewed by me.

Skipped/risky: a saved settings file that already holds LEONIDA_HEAP_RECHECK_EVERY= still means 300, the same as before.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5555095068 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644). Originally posted by [Bloh09](https://github.com/Bloh09) on 2026-11-29T21:03:34Z. --- Claimed in the coordination issue as: MENU-HEAP-RECHECK-OFF (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7262556064) ### What and why The F1 menu's TEXTURE RECHECK OFF wrote `""`, which unsets the var, so `recheck_every()` fell back to 300 and OFF did nothing. OFF is now `"0"`, and unset shows as EVERY 300 FRAMES. Reported by @z3r0rc on #2570. ### Tested Added `texture_recheck_off_is_zero` to the menu tests. `host` only builds on Windows, so I couldn't run it on this Linux box. CI's windows job runs it. `check_no_game_data.py` passes. GPUs tested: none (CPU/Linux only) AI-assisted: yes. AI-assisted (Grok Bot), reviewed by me. Skipped/risky: a saved settings file that already holds `LEONIDA_HEAP_RECHECK_EVERY=` still means 300, the same as before. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a)
merzleckeier commented 2026-11-29 21:12:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T21:12:19Z.


Independent Win64 leonida-gpu test of 2a2bb108 on 7bbc1d22. Under Wine 11.22, the unmodified PR binary passed all three host::menu::tests, including texture_recheck_off_is_zero.

MEASURED, round trip. I added the same local probe to base and PR. It selects OFF through the real menu and uses Menu::save. I then fed the file to the unmodified play-nvidia.ps1 -DryRun (PowerShell 7.4.21, synthetic executable path and OS queries) and passed the output into a new process running the actual draw::recheck_every().

Starting value Base: saved → next start PR: saved → next start
Legacy empty value Empty → 300 0 → 0
60 Empty → 300 0 → 0

On the PR, the unset option displays EVERY 300 FRAMES. A fresh menu with the saved 0 displays OFF, and saving it again leaves the file identical. The pre-existing LEONIDA_FPS_CAP=120 survived both round trips. No game or GPU needed. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262688323 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7262688323). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T21:12:19Z. --- Independent Win64 `leonida-gpu` test of `2a2bb108` on `7bbc1d22`. Under Wine 11.22, the unmodified PR binary passed all three `host::menu::tests`, including `texture_recheck_off_is_zero`. **MEASURED, round trip.** I added the same local probe to base and PR. It selects OFF through the real menu and uses `Menu::save`. I then fed the file to the unmodified `play-nvidia.ps1 -DryRun` (PowerShell 7.4.21, synthetic executable path and OS queries) and passed the output into a new process running the actual `draw::recheck_every()`. | Starting value | Base: saved → next start | PR: saved → next start | | --- | --- | --- | | Legacy empty value | Empty → 300 | `0` → 0 | | `60` | Empty → 300 | `0` → 0 | On the PR, the unset option displays `EVERY 300 FRAMES`. A fresh menu with the saved `0` displays `OFF`, and saving it again leaves the file identical. The pre-existing `LEONIDA_FPS_CAP=120` survived both round trips. No game or GPU needed. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-11-29 21:54:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:54:23Z.


Tested 2a2bb1083 merged (no commit) with main 060c47160: Windows 11, Rust toolchain from d3d12/rust-toolchain.toml, CPU only, no game run.

  • cargo test -p leonida-gpu --locked: main 548 passed, 1 failed, 47 ignored; with this PR 550 passed, 47 ignored, 0 failed.
  • cargo clippy -p leonida-gpu --locked -- -D warnings: 10 findings on main and the same 10 with the PR (all in leonida-lua and leonida-shader); this PR adds none.
  • The one failure on main did not repeat: four other runs of the same crate on the same main had 0 failures, so it looks flaky. I did not rerun it or identify the test.
  • Merges cleanly with main and does not force a rebase of #2566.
  • Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263246606 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263246606). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T21:54:23Z. --- Tested `2a2bb1083` merged (no commit) with `main` `060c47160`: Windows 11, Rust toolchain from `d3d12/rust-toolchain.toml`, CPU only, no game run. - `cargo test -p leonida-gpu --locked`: `main` 548 passed, 1 failed, 47 ignored; with this PR 550 passed, 47 ignored, 0 failed. - `cargo clippy -p leonida-gpu --locked -- -D warnings`: 10 findings on `main` and the same 10 with the PR (all in `leonida-lua` and `leonida-shader`); this PR adds none. - The one failure on `main` did not repeat: four other runs of the same crate on the same `main` had 0 failures, so it looks flaky. I did not rerun it or identify the test. - Merges cleanly with `main` and does not force a rebase of #2566. - Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes. AI-assisted (Claude Code).
Bloh09 commented 2026-11-29 22:06:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T22:06:02Z.


Only the F1 row's value changes. With the var unset (the default) the render path runs exactly as on main, and OFF now does what draw.rs already does for 0.
I don't have the game on this box, so the 300 s in-game run needs someone who has it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263401590 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263401590). Originally posted by [Bloh09](https://github.com/Bloh09) on 2026-11-29T22:06:02Z. --- Only the F1 row's value changes. With the var unset (the default) the render path runs exactly as on main, and OFF now does what draw.rs already does for 0. I don't have the game on this box, so the 300 s in-game run needs someone who has it.
Bloh09 commented 2026-11-29 22:06:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T22:06:35Z.


No game on my side. @MoonEyes or anyone with the game, could you do the 300 s run on this? Default path is unchanged, only the menu's OFF value.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263409271 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263409271). Originally posted by [Bloh09](https://github.com/Bloh09) on 2026-11-29T22:06:35Z. --- No game on my side. @MoonEyes or anyone with the game, could you do the 300 s run on this? Default path is unchanged, only the menu's OFF value.
Bloh09 commented 2026-11-29 23:05:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T23:05:11Z.


Closing since nobody with the game could do the 300 s run. Glad to reopen if someone can test it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7264183282 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7264183282). Originally posted by [Bloh09](https://github.com/Bloh09) on 2026-11-29T23:05:11Z. --- Closing since nobody with the game could do the 300 s run. Glad to reopen if someone can test it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2644
No description provided.