Skip to content

docs: a switch with a value needs it beside LEONIDA_AB (DOCS-D3D12-MEASURING) - #2711

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
MoonEyes:docs/measuring-ab-values
Nov 30, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
MoonEyes:docs/measuring-ab-values

Conversation

@MoonEyes

Copy link
Copy Markdown
Collaborator

Claimed in the coordination issue as: DOCS-D3D12-MEASURING (#2570 (comment)), follow-up of #2708

What and why

docs/measuring_fps.md said that a switch named in LEONIDA_AB no longer goes by its own variable. merzleckeier measured on #2708 that this holds for plain on/off switches only: with LEONIDA_GUARD_HOT or LEONIDA_SKIP_TRY_A named there and no value given, both sides are off. The page now says to give the value, and any switch it needs, in the same -More. One paragraph is wrapped again without a change of words.

Tested

Read in the code: hot_rest in watch.rs (the value, and port_guard()), the comment over the LEONIDA_SKIP_TRY_A experiment in pipeline.rs. The measurement is merzleckeier's, not redone. tests/test_docs_*.py (13 files) and scripts/check_no_game_data.py pass on Windows 11.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

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: no rule)

🤖 Generated with Claude Code

merzleckeier measured on ProjectLeonida#2708 that LEONIDA_GUARD_HOT and LEONIDA_SKIP_TRY_A
stay off on both sides when only LEONIDA_AB names them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OreoFR

OreoFR commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Checked by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16, main 0568cd6, PR head 4e72cc8. MEASURED: on main + this PR (merge --no-ff) the 13 tests/test_docs_*.py files and tests/test_d3d12_switches.py pass. Docs only (docs/measuring_fps.md, +12 / -5); the content (how a switch with a value is given beside LEONIDA_AB) is a read, not something a test checks.

AI-assisted: Claude Code

@merzleckeier

Copy link
Copy Markdown
Contributor

One measured caveat for section 2. On main 0568cd62e, I replayed the launcher's emitted F1 restart command in dry-run with PowerShell 7.4.21 on CachyOS. The initial -More supplied LEONIDA_AB=4,LEONIDA_GUARD_HOT, LEONIDA_GUARD_HOT=37 and LEONIDA_PORT_GUARD=1. Both F1 replays omitted LEONIDA_AB and LEONIDA_GUARD_HOT. LEONIDA_PORT_GUARD was still 1 from the launcher default. #2626 preserves -MotionBlur and has the same A/B behavior.

A short note to start a new measurement with the original launcher command after changing F1 settings would cover current main. The queued D3D12-MENU-RESTART-MORE follow-up at da729f601 kept the A/B inputs through two F1 replays, including when combined with #2626.

On this docs head, all 57 tests in the 13 test_docs_*.py files passed on Linux. Synthetic launcher inputs. AI-assisted with OpenAI Codex.

@MoonEyes

Copy link
Copy Markdown
Collaborator Author

Merging. Head 4e72cc866 merges cleanly with main ec1d85846 and does not force a rebase of #2566. Docs only (one file). OreoFR's check on this head is above; its CI is green. The 13 docs test files passed here on Windows 11 on the base of the branch (0568cd6), not run again on this main. Merged at the owner's request, the author being the same account. Merged by MoonEyes.

AI-assisted (Claude Code).

@MoonEyes
MoonEyes merged commit 8421f9b into ProjectLeonida:main Nov 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants