Docs: say what LEONIDA_FG_LIMIT_FPS unset, auto and 0 do #3365

Merged
MoonEyes merged 1 commit from upstream-pr/3365 into main 2026-12-03 18:05:49 +00:00
MoonEyes commented 2026-12-03 16:30:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:30:37Z.


Claimed in the coordination issue as: LEONIDA_FG_LIMIT_FPS doc fix (claim comment in #3312)

Refs: #3328 (the auto limiter regression; this only fixes what the doc says, not the limiter)

What and why

The doc-comment of LEONIDA_FG_LIMIT_FPS in fg.rs, and so the generated d3d12/docs/switches.md, still said "unset or 0: no limit, as before". Since #3062 an unset or auto value follows the rendered rate and only 0 removes the limit; d3d12/README.md, play-nvidia.ps1, the launcher and docs/launcher.md already say so. The comment now reads "unset or auto: it follows the rendered rate; 0: no limit", and switches.md is regenerated with python -I tools/d3d12_switches.py --out d3d12/docs/switches.md (one line changes). Comment-only change in Rust, no behaviour change.

Tested

  • python -I tests/test_d3d12_switches.py (21 tests, including the check that the tracked page matches the sources), python -I scripts/check_no_game_data.py.
  • Read-only review against limit_us() and limit_follows(); regenerated page compared to the branch (identical); git merge-tree against #3216, #3278 and #3295 (the other PRs touching fg.rs) is clean.

GPUs tested: n/a

AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • Not a translator rule.

Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5630608321 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3365). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T16:30:37Z. --- Claimed in the coordination issue as: `LEONIDA_FG_LIMIT_FPS` doc fix (claim comment in #3312) Refs: #3328 (the `auto` limiter regression; this only fixes what the doc says, not the limiter) ### What and why The doc-comment of `LEONIDA_FG_LIMIT_FPS` in `fg.rs`, and so the generated `d3d12/docs/switches.md`, still said "unset or 0: no limit, as before". Since #3062 an unset or `auto` value follows the rendered rate and only `0` removes the limit; `d3d12/README.md`, `play-nvidia.ps1`, the launcher and `docs/launcher.md` already say so. The comment now reads "unset or `auto`: it follows the rendered rate; 0: no limit", and `switches.md` is regenerated with `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md` (one line changes). Comment-only change in Rust, no behaviour change. ### Tested - `python -I tests/test_d3d12_switches.py` (21 tests, including the check that the tracked page matches the sources), `python -I scripts/check_no_game_data.py`. - Read-only review against `limit_us()` and `limit_follows()`; regenerated page compared to the branch (identical); `git merge-tree` against #3216, #3278 and #3295 (the other PRs touching `fg.rs`) is clean. GPUs tested: n/a AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] Not a translator rule. --- _Generated by [Claude Code](https://claude.ai/code)_
merzleckeier commented 2026-12-03 17:01:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T17:01:35Z.


Reviewed 0e472cd3 on fba6f09c together with the default-limit tests in #3295 (af01c295) and the full catalog check in #3308 (2d006714). The combined merge is clean. All 22 switch-catalog tests passed, including a byte-for-byte regeneration of switches.md.

I also compiled the frame-limit helpers and their three unit tests in an isolated Rust harness. Fresh processes confirmed that unset, empty and auto select adaptive mode, 0 disables the limit, and 28 selects a fixed interval. This verifies the setting semantics; no GPU tests were run. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7385839194 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3365#issuecomment-7385839194). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T17:01:35Z. --- Reviewed `0e472cd3` on `fba6f09c` together with the default-limit tests in #3295 (`af01c295`) and the full catalog check in #3308 (`2d006714`). The combined merge is clean. All 22 switch-catalog tests passed, including a byte-for-byte regeneration of `switches.md`. I also compiled the frame-limit helpers and their three unit tests in an isolated Rust harness. Fresh processes confirmed that unset, empty and `auto` select adaptive mode, `0` disables the limit, and `28` selects a fixed interval. This verifies the setting semantics; no GPU tests were run. AI-assisted with OpenAI Codex.
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!3365
No description provided.