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

Closed
leonida/mandy
Bloh09 wants to merge 0 commits from fix/heap-recheck-menu-off into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Bloh09 commented 2026-11-29 21:03:34 +00:00

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)
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

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.

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

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).

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

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.

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

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.

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

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

Closing since nobody with the game could do the 300 s run. Glad to reopen if someone can test it.
Sign in to join this conversation.
No description provided.