fix: main's checks pass again after the FPS cap, dynamic resolution and Skip cinematics changes #3057

Merged
HumanBean merged 4 commits from llun/Longshot:fix/main-checks-fps-cap into main 2026-12-03 07:49:19 +00:00
Member

Summary

Several of main's own checks fail since pull requests that merged right after the mod API (#2822). This makes them pass again.

What fails on main Since Here
test_framegen_auto_dlss #2719, whose cap_rate call takes the custom cap too The check looks for the call as it is now. It still holds the cap, and the custom cap now, to the game's snapshot
cargo fmt --all --check #2719, #2875 and #3029 rustfmt on four files
cargo clippy -D warnings, in game-core #3029 Two ifs collapsed into one, and a loop over the buffer instead of its index. The same reads in the same order
test_menu_ini_keys, test_settings_area_keys, test_option_ids, and the menu's own tests (modtool) #3029 Skip cinematics gets its line in FROZEN, its place in the menu's layout and its entry among the Debug tab's English labels. Its legacyId = 53 is removed: those numbers are the input recordings', and a new setting takes none

Read first: session.rs on_event_skip, and game/mods/developer/mod.toml.

Testing

Tested: Windows 11 (build 26300), RTX 5080, driver 621.47, no MSVC (Rust's gnullvm host, the repository's llvm-mingw), the sandbox on. On 3d32546eb:

  • In the game: dev.py smoke passes (Kokiri Forest, 900 frames, the menu opened). With Skip cinematics turned on over the control bridge, a teleport to Hyrule Field arrives and plays on at 60 fps. No cutscene was skipped in that run.
  • In the game on cfc6a83ff (before two rebases; the last two commits were not in it): Game frame rate cap at Custom ran at 40 fps at 40 and 90 fps at 90, and the value was saved.
  • cargo fmt --all --check, modtool's 229 tests, the generated files' checks, mise run lint, and the five Python checks this touches pass.

mise run test, whole, on 37e895545 (the same but for #3055, #3056 and the last commit): 826 pass and 4 fail: test_menu_ini_keys, test_option_ids, test_settings_area_keys and test_lifter (modtool's menu tests). Those are the last row of the table and pass here. The whole suite was not run again after that. Clippy of api and game-core, and their 906 tests, passed on that version.

Still to test:

  • Linux: CI's checks on the head, expecting them to pass (by hand).

Measurements

Nothing to measure: checks, formatting, a lint and a removed number.

Risks

  • on_event_skip (Debug > Skip cinematics, off by default) is rewritten, not changed: the same conditions, the same 79 bytes at most.
  • An input recording made with #3029 in, in the hours since, that holds option 53 no longer sets Skip cinematics. The saved setting keeps its key.
  • After updating a player notices nothing. A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Several of `main`'s own checks fail since pull requests that merged right after the mod API (#2822). This makes them pass again. | What fails on `main` | Since | Here | |---|---|---| | `test_framegen_auto_dlss` | #2719, whose `cap_rate` call takes the custom cap too | The check looks for the call as it is now. It still holds the cap, and the custom cap now, to the game's snapshot | | `cargo fmt --all --check` | #2719, #2875 and #3029 | rustfmt on four files | | `cargo clippy -D warnings`, in `game-core` | #3029 | Two ifs collapsed into one, and a loop over the buffer instead of its index. The same reads in the same order | | `test_menu_ini_keys`, `test_settings_area_keys`, `test_option_ids`, and the menu's own tests (modtool) | #3029 | Skip cinematics gets its line in `FROZEN`, its place in the menu's layout and its entry among the Debug tab's English labels. Its `legacyId = 53` is removed: those numbers are the input recordings', and a new setting takes none | Read first: `session.rs` `on_event_skip`, and `game/mods/developer/mod.toml`. ## Testing **Tested:** Windows 11 (build 26300), RTX 5080, driver 621.47, no MSVC (Rust's gnullvm host, the repository's llvm-mingw), the sandbox on. On 3d32546eb: - In the game: `dev.py smoke` passes (Kokiri Forest, 900 frames, the menu opened). With Skip cinematics turned on over the control bridge, a teleport to Hyrule Field arrives and plays on at 60 fps. No cutscene was skipped in that run. - In the game on cfc6a83ff (before two rebases; the last two commits were not in it): Game frame rate cap at Custom ran at 40 fps at 40 and 90 fps at 90, and the value was saved. - `cargo fmt --all --check`, modtool's 229 tests, the generated files' checks, `mise run lint`, and the five Python checks this touches pass. `mise run test`, whole, on 37e895545 (the same but for #3055, #3056 and the last commit): 826 pass and 4 fail: `test_menu_ini_keys`, `test_option_ids`, `test_settings_area_keys` and `test_lifter` (modtool's menu tests). Those are the last row of the table and pass here. The whole suite was not run again after that. Clippy of `api` and `game-core`, and their 906 tests, passed on that version. **Still to test:** - Linux: CI's checks on the head, expecting them to pass (by hand). ## Measurements Nothing to measure: checks, formatting, a lint and a removed number. ## Risks - `on_event_skip` (Debug > Skip cinematics, off by default) is rewritten, not changed: the same conditions, the same 79 bytes at most. - An input recording made with #3029 in, in the hours since, that holds option 53 no longer sets Skip cinematics. The saved setting keeps its key. - After updating a player notices nothing. A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#2719 gave fps_stats::cap_rate the custom cap (frame_rate_cap_custom); the check looked for the call without it and failed. It still holds fps_cap_now to the game's snapshot, the custom cap now too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cargo fmt --all --check fails on main since #2719, #2875 and the two after the mod API's merge. Formatting alone, no code changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cargo clippy -D warnings failed on main since #3029: two ifs that collapse and a loop variable that only indexes. The same reads in the same order, the same 79 bytes at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(menu): Skip cinematics is on the menu's lists and takes no legacyId
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m22s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 16m2s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m34s
CI / Website build and checks (pull_request) Failing after 39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m47s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 49m4s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
3d32546ebf
#3029 added the saved row without its line in FROZEN, its place in the menu's layout and its Debug tab label's entry, and gave it legacyId 53: the numbers are the input recordings' and a new setting takes none. test_menu_ini_keys, test_settings_area_keys, test_option_ids and the menu's own tests failed on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11 (build 26300), RTX 5080, driver 621.47, the sandbox on, 3d32546eb: dev.py smoke passes (Kokiri Forest, 900 frames, the menu opened). With Skip cinematics on, a teleport to Hyrule Field arrives and plays on at 60 fps; no cutscene was skipped in that run.

Tested in game: Windows 11 (build 26300), RTX 5080, driver 621.47, the sandbox on, 3d32546eb: dev.py smoke passes (Kokiri Forest, 900 frames, the menu opened). With Skip cinematics on, a teleport to Hyrule Field arrives and plays on at 60 fps; no cutscene was skipped in that run.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The changes appear to restore the checks without changing the hook’s read order. Nothing blocking is left. Recommend approval; not approved on the forge.

The PR updates stale checks and menu expectations, removes a newly assigned legacy recording ID, and reformats or rewrites code for Rust checks. The runtime rewrite adds no apparent behavioral cost; recordings that used option 53 lose that setting on replay, as disclosed.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the author reports the affected checks pass on the head, but the full suite and Linux checks have not yet completed on that revision. The game smoke run did not exercise a skipped cutscene.

Other systems: The session hook runs on both Windows and Linux; its conditions, byte limit, and read order appear unchanged. Removing legacy ID 53 affects recordings made with that ID, while the saved settings key remains unchanged. No renderer interface, GPU path, save format, or platform file handling is changed.

Switches: None added, changed, or removed.

Reviewed: 3d32546ebf against 27ac13b75d: Read the diff, commit messages, repository rules, standards, PR template, session hook, developer manifest, option-ID check, and legacy recording lookup. Skimmed the larger changed test and API files and their surrounding references; not all of those files were read in full. The requested review checklist and adjacent Tooling AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The changed loop reads at most the same 79 bytes in the same order as the base.
  • The updated frame-generation check still requires both cap values to come from the settings snapshot.
  • Commit messages record AI assistance; no generated output, game-derived files, API version, or switch table changes appear in the diff.

Testing: No code or tests were run during this review. The author reports Windows checks and a smoke run; head CI is still running.

Overlaps and merge order: Not checked; network access is unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The changes appear to restore the checks without changing the hook’s read order. Nothing blocking is left. Recommend approval; not approved on the forge. The PR updates stale checks and menu expectations, removes a newly assigned legacy recording ID, and reformats or rewrites code for Rust checks. The runtime rewrite adds no apparent behavioral cost; recordings that used option 53 lose that setting on replay, as disclosed. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the author reports the affected checks pass on the head, but the full suite and Linux checks have not yet completed on that revision. The game smoke run did not exercise a skipped cutscene. **Other systems:** The session hook runs on both Windows and Linux; its conditions, byte limit, and read order appear unchanged. Removing legacy ID 53 affects recordings made with that ID, while the saved settings key remains unchanged. No renderer interface, GPU path, save format, or platform file handling is changed. **Switches:** None added, changed, or removed. **Reviewed:** 3d32546ebf14 against 27ac13b75d5c: Read the diff, commit messages, repository rules, standards, PR template, session hook, developer manifest, option-ID check, and legacy recording lookup. Skimmed the larger changed test and API files and their surrounding references; not all of those files were read in full. The requested review checklist and adjacent Tooling AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The changed loop reads at most the same 79 bytes in the same order as the base. - The updated frame-generation check still requires both cap values to come from the settings snapshot. - Commit messages record AI assistance; no generated output, game-derived files, API version, or switch table changes appear in the diff. **Testing:** No code or tests were run during this review. The author reports Windows checks and a smoke run; head CI is still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/main-checks-fps-cap 2026-12-03 07:49:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot!3057
No description provided.