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

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

@⁠Bloh09 on GitHub · 2026-11-29 21:03 UTC · original
Bloh09:fix/heap-recheck-menu-off → main · +12 −1 · 1 files · 1 commits · closed without merging

Claimed in the coordination issue as: MENU-HEAP-RECHECK-OFF (#2570)

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)
**@⁠Bloh09** on GitHub · 2026-11-29 21:03 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644) `Bloh09:fix/heap-recheck-menu-off` → `main` · +12 −1 · 1 files · 1 commits · closed without merging Claimed in the coordination issue as: MENU-HEAP-RECHECK-OFF (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570) ### 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 21:08:37 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-11-29 21:12 UTC · original

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.

**@⁠merzleckeier** on GitHub · 2026-11-29 21:12 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7262688323) 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.
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-29 21:54 UTC · original

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

**@⁠MoonEyes** on GitHub · 2026-11-29 21:54 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263246606) 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).
Author
Owner

@⁠Bloh09 on GitHub · 2026-11-29 22:06 UTC · original

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** on GitHub · 2026-11-29 22:06 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263401590) 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.
Author
Owner

@⁠Bloh09 on GitHub · 2026-11-29 22:06 UTC · original

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** on GitHub · 2026-11-29 22:06 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7263409271) 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.
github-bot closed this pull request 2026-11-29 23:07:52 +00:00
Author
Owner

@⁠Bloh09 on GitHub · 2026-11-29 23:05 UTC · original

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

**@⁠Bloh09** on GitHub · 2026-11-29 23:05 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2644#issuecomment-7264183282) Closing since nobody with the game could do the 300 s run. Glad to reopen if someone can test it.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2644
No description provided.