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

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u origin "github-pr/3365:github-pr/3365"
git switch "github-pr/3365"
Open
leonida/mandy
MoonEyes wants to merge 1 commit from github-pr/3365 into main

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'github-pr/3365:github-pr/3365'
git switch 'github-pr/3365'
MoonEyes commented 2026-12-03 16:30:37 +00:00

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

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

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.

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

Matches the code: LEONIDA_FG_LIMIT_FPS unset or auto follows the rendered rate, 0 turns the limit off. The doc comment and the switch table now say the same thing. No objection.

Matches the code: `LEONIDA_FG_LIMIT_FPS` unset or `auto` follows the rendered rate, `0` turns the limit off. The doc comment and the switch table now say the same thing. No objection.
Sign in to join this conversation.
No description provided.