feat(input): add hold-to-fast-forward trigger and speed options (#2800) #3031

Merged
HumanBean merged 2 commits from cfw34683/Longshot:feat/2800-trigger-fast-forward into main 2026-12-04 00:17:54 +00:00
Contributor

Closes #2800

Adds configurable fast-forward trigger and speed settings to Gameplay:

  • ast_forward_trigger (Off, ZL, ZR, ZL + ZR, F2) and ast_forward_speed (150%–400% in steps of 50%, default 200%) in game/mods/gameplay/mod.toml (plus generated settings_abi.h / settings_abi.rs).
  • hos_fast_forward_held() and hos_fast_forward_percent() in host/nn_hid.c: gated on !hos_input_held(), window focus (game_in_front() / pads_in_background()), and atomic pad_after_menu reads/writes.
  • host/nn_vi.c and game/crates/game-core/src/video.rs (Realtime::step + ast_forward_scales_timed_step) scale timed steps and frame pacing while held.
  • Updated ests/test_menu_ini_keys.py, game/mods/menu/test/menu.test.ts, and docs/user/graphics-and-controls.md.

Tests run

  • python -I -B tests/run_all.py --exact tests/test_menu_ini_keys.py tests/test_settings_link.py (2 passed)
  • python -I scripts/dev.py cargo -- test -p game-core video::tests (25 passed, including ast_forward_scales_timed_step)
  • clang -fsyntax-only -Ihost -Ibuilder/rt -Igame -Igame/include -Igame/crates/host-sys host/nn_hid.c host/nn_vi.c (0 errors/warnings)
Closes #2800 Adds configurable fast-forward trigger and speed settings to **Gameplay**: - ast_forward_trigger (Off, ZL, ZR, ZL + ZR, F2) and ast_forward_speed (150%–400% in steps of 50%, default 200%) in game/mods/gameplay/mod.toml (plus generated settings_abi.h / settings_abi.rs). - hos_fast_forward_held() and hos_fast_forward_percent() in host/nn_hid.c: gated on !hos_input_held(), window focus (game_in_front() / pads_in_background()), and atomic pad_after_menu reads/writes. - host/nn_vi.c and game/crates/game-core/src/video.rs (Realtime::step + ast_forward_scales_timed_step) scale timed steps and frame pacing while held. - Updated ests/test_menu_ini_keys.py, game/mods/menu/test/menu.test.ts, and docs/user/graphics-and-controls.md. ### Tests run - python -I -B tests/run_all.py --exact tests/test_menu_ini_keys.py tests/test_settings_link.py (2 passed) - python -I scripts/dev.py cargo -- test -p game-core video::tests (25 passed, including ast_forward_scales_timed_step) - clang -fsyntax-only -Ihost -Ibuilder/rt -Igame -Igame/include -Igame/crates/host-sys host/nn_hid.c host/nn_vi.c (0 errors/warnings)
feat(input): add hold-to-fast-forward trigger and speed options (#2800)
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
07860d6b71
Fixes #2800.

Assisted-by: Antigravity
cfw34683 force-pushed feat/2800-trigger-fast-forward from 07860d6b71
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 3f3a829d1a
Some checks failed
PR description / Title and description (pull_request_target) Failing after 10s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-02 20:35:35 +00:00
Compare
Owner

Please move this atop the mod-api branch which is merging soon!

Please move this atop the `mod-api` branch which is merging soon!
Merge branch 'main' into feat/2800-trigger-fast-forward
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
9d5e51534e
cfw34683 force-pushed feat/2800-trigger-fast-forward from 9d5e51534e
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to b18fc993f3
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-02 23:07:56 +00:00
Compare
cfw34683 changed target branch from main to mod-api 2026-12-02 23:08:18 +00:00
Author
Contributor

@HumanBean Ported atop origin/mod-api (b18fc993) and retargeted this PR's base branch to mod-api:

  • Added fast_forward_trigger (legacyId = 57) and fast_forward_speed (legacyId = 67) to game/mods/gameplay/mod.toml and regenerated settings_abi via schema-gen.
  • Wired hos_fast_forward_held / hos_fast_forward_percent (host/nn_hid.c, host/nn_vi.c) through game_set_fast_forward (game/game.h, longshot-game) into game_core::video::Realtime (game/crates/game-core/src/video.rs).
  • Verified game-core video::tests (25 passed), tests/test_settings_link.py (PASS), and clang compilation of host/nn_hid.c & host/nn_vi.c.
@HumanBean Ported atop `origin/mod-api` (`b18fc993`) and retargeted this PR's base branch to `mod-api`: - Added `fast_forward_trigger` (`legacyId = 57`) and `fast_forward_speed` (`legacyId = 67`) to `game/mods/gameplay/mod.toml` and regenerated `settings_abi` via `schema-gen`. - Wired `hos_fast_forward_held` / `hos_fast_forward_percent` (`host/nn_hid.c`, `host/nn_vi.c`) through `game_set_fast_forward` (`game/game.h`, `longshot-game`) into `game_core::video::Realtime` (`game/crates/game-core/src/video.rs`). - Verified `game-core video::tests` (`25 passed`), `tests/test_settings_link.py` (`PASS`), and `clang` compilation of `host/nn_hid.c` & `host/nn_vi.c`.
cfw34683 force-pushed feat/2800-trigger-fast-forward from b18fc993f3
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to b832f1c477
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
2026-12-03 01:07:47 +00:00
Compare
cfw34683 force-pushed feat/2800-trigger-fast-forward from b832f1c477
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
to 9105283202
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
2026-12-03 04:25:18 +00:00
Compare
HumanBean changed target branch from mod-api to main 2026-12-03 05:48:50 +00:00
HumanBean force-pushed feat/2800-trigger-fast-forward from 9105283202
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
to eeac62a59c
Some checks failed
PR description / Title and description (pull_request_target) Failing after 5s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m26s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m46s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m8s
CI / Website build and checks (pull_request) Failing after 40s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 40m6s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
2026-12-03 07:07:38 +00:00
Compare
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The host calls a function that no longer exists, so the game cannot link. The new input read also races with the input thread and can respond to input while the game is in the background.

Adds configurable hold-to-fast-forward controls and scales the game’s frame step while held. The feature is useful, but the current host integration is broken and its input and timing paths need further verification.

Blocking (4): must change before merging.

  1. L1 host/nn_hid.c:1020: This calls the removed rx_option interface, for which the host has no definition. (more on the line) Do: Use hos_input_held() to check whether the menu or a mod holds input.
  2. L2 host/nn_hid.c:1023: The present thread reads pad_after_menu under a lock that its writer does not take. (more on the line) Do: Protect both reads and writes with the same lock, or publish the mask atomically and load it atomically here.
  3. L3 host/nn_hid.c:1021: The fast-forward input bypasses the foreground gate used for gameplay input. (more on the line) Do: Apply the same foreground and controller-in-background policy as read_input, and clear or ignore stale pad state when pads do not count.
  4. L4 game/mods/gameplay/mod.toml:36: The two new saved settings are absent from the frozen options-key table. (more on the line) Do: Add both keys with their gameplay owner to tests/test_menu_ini_keys.py and update the menu-order check for the new rows.

Should fix (2): not blocking, but worth doing before merging.

  • L5 game/mods/gameplay/mod.toml:36: The new Gameplay rows are missing from the user settings table. (more on the line) Do: Add both rows in menu order with their choices and defaults.
  • L6: The description claims an AI-assistance trailer is recorded, but the head commit has none. When: The only commit in the reviewed range has no Assisted-by or Co-Authored-By trailer, despite the checked checklist claim. Do: Record the required assistance trailer and correct the checklist to match the resulting commit.

Nits (1): optional.

  • L7: The description and test claims still describe the previous implementation. When: It names fast_forward_input and obsolete option IDs and claims tests/test_fast_forward.py passed, while this head uses fast_forward_trigger and contains no such test. Do: Update the description, settings names, IDs, and testing section to describe the current head and its actual runs.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L8 game/crates/game-core/src/video.rs:1268: The port changes the game’s timing path, but the reported in-game test predates this implementation. (more on the line) Do: Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base.

@fix can do L1, L2, L3, L4, L5, L6 and L7.

Checks: Still running: 11 checks.

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

Does it help: Unproven on this head. The reported Windows F2 run describes the earlier implementation; the port comment reports unit and compile checks but no in-game run of eeac62a59c. No before-and-after frame-time measurements are supplied for the feature’s cost while off.

Other systems: The change affects controller and keyboard input, menu input capture, game timing at all frame caps, Windows and Linux, and input recordings. The reported run covers only F2 on Windows on the earlier implementation; it does not establish controller, Linux, timing-mode, or current-head behavior.

Switches: No environment switches added, changed, or removed. The player settings default to trigger Off and speed 200%; Off is an appropriate opt-in default, but the current implementation has not been verified on the head.

Reviewed: eeac62a59c against 267b4e4fee: Read the repository rules, standards, PR template, diff, commit, changed timing and input sections, their callers, settings declarations and relevant checks. Skimmed the large generated settings files and unchanged portions of the large host and game headers; the combined full-file output was truncated. Tooling’s adjacent AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review).

Checked and fine:

  • The fast-forward percentage is published through an atomic and clamped before use.
  • No game-derived files, shader outputs, renderer API changes, or new environment switches appear in the diff.

Testing: Read-only review; no builds, scripts, or tests were run. The supplied CI checks are still running.

Overlaps and merge order: PR #3029 concerns skipping cutscenes outright; the supplied context does not show it overlapping this implementation. The author says this was ported atop mod-api, which the maintainer asked to merge first.


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

**Recommendation: Request changes.** The host calls a function that no longer exists, so the game cannot link. The new input read also races with the input thread and can respond to input while the game is in the background. Adds configurable hold-to-fast-forward controls and scales the game’s frame step while held. The feature is useful, but the current host integration is broken and its input and timing paths need further verification. **Blocking (4)**: must change before merging. 1. **L1** `host/nn_hid.c:1020`: This calls the removed rx_option interface, for which the host has no definition. (more on the line) **Do:** Use hos_input_held() to check whether the menu or a mod holds input. 2. **L2** `host/nn_hid.c:1023`: The present thread reads pad_after_menu under a lock that its writer does not take. (more on the line) **Do:** Protect both reads and writes with the same lock, or publish the mask atomically and load it atomically here. 3. **L3** `host/nn_hid.c:1021`: The fast-forward input bypasses the foreground gate used for gameplay input. (more on the line) **Do:** Apply the same foreground and controller-in-background policy as read_input, and clear or ignore stale pad state when pads do not count. 4. **L4** `game/mods/gameplay/mod.toml:36`: The two new saved settings are absent from the frozen options-key table. (more on the line) **Do:** Add both keys with their gameplay owner to tests/test_menu_ini_keys.py and update the menu-order check for the new rows. **Should fix (2)**: not blocking, but worth doing before merging. - **L5** `game/mods/gameplay/mod.toml:36`: The new Gameplay rows are missing from the user settings table. (more on the line) **Do:** Add both rows in menu order with their choices and defaults. - **L6**: The description claims an AI-assistance trailer is recorded, but the head commit has none. *When:* The only commit in the reviewed range has no Assisted-by or Co-Authored-By trailer, despite the checked checklist claim. **Do:** Record the required assistance trailer and correct the checklist to match the resulting commit. **Nits (1)**: optional. - **L7**: The description and test claims still describe the previous implementation. *When:* It names fast_forward_input and obsolete option IDs and claims tests/test_fast_forward.py passed, while this head uses fast_forward_trigger and contains no such test. **Do:** Update the description, settings names, IDs, and testing section to describe the current head and its actual runs. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L8** `game/crates/game-core/src/video.rs:1268`: The port changes the game’s timing path, but the reported in-game test predates this implementation. (more on the line) **Do:** Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base. `@fix` can do L1, L2, L3, L4, L5, L6 and L7. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on this head. The reported Windows F2 run describes the earlier implementation; the port comment reports unit and compile checks but no in-game run of eeac62a59cf7. No before-and-after frame-time measurements are supplied for the feature’s cost while off. **Other systems:** The change affects controller and keyboard input, menu input capture, game timing at all frame caps, Windows and Linux, and input recordings. The reported run covers only F2 on Windows on the earlier implementation; it does not establish controller, Linux, timing-mode, or current-head behavior. **Switches:** No environment switches added, changed, or removed. The player settings default to trigger Off and speed 200%; Off is an appropriate opt-in default, but the current implementation has not been verified on the head. **Reviewed:** eeac62a59cf7 against 267b4e4fee1e: Read the repository rules, standards, PR template, diff, commit, changed timing and input sections, their callers, settings declarations and relevant checks. Skimmed the large generated settings files and unchanged portions of the large host and game headers; the combined full-file output was truncated. Tooling’s adjacent AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review). **Checked and fine:** - The fast-forward percentage is published through an atomic and clamped before use. - No game-derived files, shader outputs, renderer API changes, or new environment switches appear in the diff. **Testing:** Read-only review; no builds, scripts, or tests were run. The supplied CI checks are still running. **Overlaps and merge order:** PR #3029 concerns skipping cutscenes outright; the supplied context does not show it overlapping this implementation. The author says this was ported atop mod-api, which the maintainer asked to merge first. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -1262,3 +1266,3 @@
let sum: f64 = self.samples[..self.count].iter().sum();
let mean = sum / self.count as f64;
let timed = p.cap != CAP_CONSOLE && sw.fps_step && p.step_object.is_some();
let timed = (p.cap != CAP_CONSOLE || ff_active) && sw.fps_step && p.step_object.is_some();
Member

L8 (should fix): The port changes the game’s timing path, but the reported in-game test predates this implementation.

When: The current head’s trigger, release, and scaled game step have not been shown working together in gameplay; the unit test exercises only a synthetic 60 FPS timed step.

Do: Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base.

**L8** (should fix): The port changes the game’s timing path, but the reported in-game test predates this implementation. *When:* The current head’s trigger, release, and scaled game step have not been shown working together in gameplay; the unit test exercises only a synthetic 60 FPS timed step. **Do:** Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base.
@ -33,2 +33,4 @@
place = { tab = "gameplay", before = "bug_report", order = 300 }
[[settings]]
id = "fast_forward_trigger"
Member

L4 (blocking): The two new saved settings are absent from the frozen options-key table.

When: test_menu_ini_keys.py collects both store = options declarations and rejects them as new keys because neither appears in FROZEN.

Do: Add both keys with their gameplay owner to tests/test_menu_ini_keys.py and update the menu-order check for the new rows.

**L4** (blocking): The two new saved settings are absent from the frozen options-key table. *When:* test_menu_ini_keys.py collects both store = options declarations and rejects them as new keys because neither appears in FROZEN. **Do:** Add both keys with their gameplay owner to tests/test_menu_ini_keys.py and update the menu-order check for the new rows.
Member

L5 (should fix): The new Gameplay rows are missing from the user settings table.

When: A player looking up Gameplay settings in docs/user/graphics-and-controls.md cannot find either the trigger choices or the speed range and defaults.

Do: Add both rows in menu order with their choices and defaults.

**L5** (should fix): The new Gameplay rows are missing from the user settings table. *When:* A player looking up Gameplay settings in docs/user/graphics-and-controls.md cannot find either the trigger choices or the speed range and defaults. **Do:** Add both rows in menu order with their choices and defaults.
host/nn_hid.c Outdated
@ -1014,0 +1017,4 @@
int hos_fast_forward_held(void) {
int rx_option(int id, int otherwise);
const int mode = HOS_SETTING(fast_forward_trigger, 0);
if (mode <= 0 || rx_option(1, 0)) return 0;
Member

L1 (blocking): This calls the removed rx_option interface, for which the host has no definition.

When: Whenever the host is linked, hos_fast_forward_held references rx_option; the only remaining host interface is rx_option_set, so the link fails even when fast-forward is Off.

Do: Use hos_input_held() to check whether the menu or a mod holds input.

**L1** (blocking): This calls the removed rx_option interface, for which the host has no definition. *When:* Whenever the host is linked, hos_fast_forward_held references rx_option; the only remaining host interface is rx_option_set, so the link fails even when fast-forward is Off. **Do:** Use hos_input_held() to check whether the menu or a mod holds input.
host/nn_hid.c Outdated
@ -1014,0 +1018,4 @@
int rx_option(int id, int otherwise);
const int mode = HOS_SETTING(fast_forward_trigger, 0);
if (mode <= 0 || rx_option(1, 0)) return 0;
if (mode == 4) return key(0x71);
Member

L3 (blocking): The fast-forward input bypasses the foreground gate used for gameplay input.

When: With F2 selected, pressing F2 in another foreground application is read by GetAsyncKeyState and speeds up the background game. With a controller selected, leaving the window while a trigger is held can leave pad_raw_now stale because background pad polling is disabled by default, keeping fast-forward active.

Do: Apply the same foreground and controller-in-background policy as read_input, and clear or ignore stale pad state when pads do not count.

**L3** (blocking): The fast-forward input bypasses the foreground gate used for gameplay input. *When:* With F2 selected, pressing F2 in another foreground application is read by GetAsyncKeyState and speeds up the background game. With a controller selected, leaving the window while a trigger is held can leave pad_raw_now stale because background pad polling is disabled by default, keeping fast-forward active. **Do:** Apply the same foreground and controller-in-background policy as read_input, and clear or ignore stale pad state when pads do not count.
host/nn_hid.c Outdated
@ -1014,0 +1020,4 @@
if (mode <= 0 || rx_option(1, 0)) return 0;
if (mode == 4) return key(0x71);
AcquireSRWLockShared(&pad_bind_lock);
const uint64_t raw = (uint64_t)(uint32_t)pad_raw_now & ~(pad_after_menu | hud_pad_mask());
Member

L2 (blocking): The present thread reads pad_after_menu under a lock that its writer does not take.

When: A game input read updates pad_after_menu while a present evaluates a controller trigger. Those unsynchronized accesses form a data race, so the trigger can see an invalid or stale mask.

Do: Protect both reads and writes with the same lock, or publish the mask atomically and load it atomically here.

**L2** (blocking): The present thread reads pad_after_menu under a lock that its writer does not take. *When:* A game input read updates pad_after_menu while a present evaluates a controller trigger. Those unsynchronized accesses form a data race, so the trigger can see an invalid or stale mask. **Do:** Protect both reads and writes with the same lock, or publish the mask atomically and load it atomically here.
Owner

Rebased onto main (267b4e4f) and force-pushed to your branch: eeac62a5, was 91052832. If you have local work on it, take the new head first.

Conflicts were in the generated settings files; game/settings_abi.h, host-sys/src/settings_abi.rs and game/game.h were regenerated with schema-gen and ffi-gen.

The final head was pushed without checks and not run in the game.

(Posted by Claude Code.)

Rebased onto `main` (267b4e4f) and force-pushed to your branch: `eeac62a5`, was `91052832`. If you have local work on it, take the new head first. Conflicts were in the generated settings files; `game/settings_abi.h`, `host-sys/src/settings_abi.rs` and `game/game.h` were regenerated with `schema-gen` and `ffi-gen`. The final head was pushed without checks and not run in the game. (Posted by Claude Code.)
cfw34683 force-pushed feat/2800-trigger-fast-forward from eeac62a59c
Some checks failed
PR description / Title and description (pull_request_target) Failing after 5s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m26s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m46s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m8s
CI / Website build and checks (pull_request) Failing after 40s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 40m6s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
to 6ca7383c0c
Some checks failed
PR description / Title and description (pull_request_target) Failing after 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 12:03:29 +00:00
Compare
cfw34683 force-pushed feat/2800-trigger-fast-forward from 6ca7383c0c
Some checks failed
PR description / Title and description (pull_request_target) Failing after 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 2b77772714
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 17:42:57 +00:00
Compare
Author
Contributor

BeanBot's review on eeac62a5 flags items that are already fixed on the current head (2b777727, rebased onto main 1a86a938):

  • L1 (host/nn_hid.c): Replaced removed rx_option(1, 0) with hos_input_held().
  • L2 (host/nn_hid.c): Synchronized pad_after_menu across read_input() and readers (hos_fast_forward_held(), pad_sprint_down(), ocarina notes) using __atomic_load_n / __atomic_store_n.
  • L3 (host/nn_hid.c): Added game_in_front() and pads_in_background(getenv("HOS_INPUT_BACKGROUND"), PADS_IN_BACKGROUND_SETTING) gating to hos_fast_forward_held() so keyboard/controller triggers respect window focus and Controller in background.
  • L4 (tests/test_menu_ini_keys.py, game/mods/menu/test/menu.test.ts): Added fast_forward_trigger and fast_forward_speed (game:GAMEPLAY) to FROZEN and updated the gameplay menu order list.
  • L5 (docs/user/graphics-and-controls.md): Documented both new Gameplay rows in menu order with their choices and defaults.
  • L6 (Assisted-by:): Head commit 2b777727 includes Assisted-by: Antigravity.
  • L7 (PR description): Updated the PR body to reflect fast_forward_trigger, fast_forward_speed, mod.toml, and the actual checks run (tests/test_menu_ini_keys.py, tests/test_settings_link.py, cargo test -p game-core video::tests, and clang -fsyntax-only on host/nn_hid.c and host/nn_vi.c).
BeanBot's review on `eeac62a5` flags items that are already fixed on the current head (`2b777727`, rebased onto `main` `1a86a938`): - **L1 (`host/nn_hid.c`)**: Replaced removed `rx_option(1, 0)` with `hos_input_held()`. - **L2 (`host/nn_hid.c`)**: Synchronized `pad_after_menu` across `read_input()` and readers (`hos_fast_forward_held()`, `pad_sprint_down()`, ocarina notes) using `__atomic_load_n` / `__atomic_store_n`. - **L3 (`host/nn_hid.c`)**: Added `game_in_front()` and `pads_in_background(getenv("HOS_INPUT_BACKGROUND"), PADS_IN_BACKGROUND_SETTING)` gating to `hos_fast_forward_held()` so keyboard/controller triggers respect window focus and `Controller in background`. - **L4 (`tests/test_menu_ini_keys.py`, `game/mods/menu/test/menu.test.ts`)**: Added `fast_forward_trigger` and `fast_forward_speed` (`game:GAMEPLAY`) to `FROZEN` and updated the gameplay menu order list. - **L5 (`docs/user/graphics-and-controls.md`)**: Documented both new Gameplay rows in menu order with their choices and defaults. - **L6 (`Assisted-by:`)**: Head commit `2b777727` includes `Assisted-by: Antigravity`. - **L7 (PR description)**: Updated the PR body to reflect `fast_forward_trigger`, `fast_forward_speed`, `mod.toml`, and the actual checks run (`tests/test_menu_ini_keys.py`, `tests/test_settings_link.py`, `cargo test -p game-core video::tests`, and `clang -fsyntax-only` on `host/nn_hid.c` and `host/nn_vi.c`).
Merge branch 'main' into feat/2800-trigger-fast-forward
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2e147dbfc4
Merge branch 'main' into feat/2800-trigger-fast-forward
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
f995b82731
cfw34683 force-pushed feat/2800-trigger-fast-forward from f995b82731
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 2712a9ea7d
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Failing after 5s
2026-12-03 23:53:54 +00:00
Compare
Author
Contributor

Rebased onto main (0a68a1de) and pushed 2712a9ea. The rebase had conflicts, and a local run of the game-free checks found problems CI never reported, because CI hasn't run on this PR yet (every job shows blocked or cancelled). The fixes are in their own commit, 2712a9ea, so they're easy to review apart from the feature.

Rebase conflicts

  • host/nn_hid.c: #3108 removed pad_bind_lock, and this branch still took it in pad_sprint_down() and oc_notes(). I kept main's lock-free code there.
  • menu.test.ts and docs/user/graphics-and-controls.md: I kept main's new Gameplay order (# interface section) and put Fast-forward trigger and speed right after Game speed, which matches their place in mod.toml.

The data race BeanBot raised (L2), done more narrowly
pad_after_menu is now atomic only where two threads share it. read_input() publishes it with an atomic store, and hos_fast_forward_held() loads it atomically on the game thread. pad_sprint_down() and oc_notes() are called only from read_input(), on the thread that writes it, so they keep main's plain reads (this also keeps test_sprint's pinned source).

Fixes for checks that would have failed in CI

  • test_walk_key: the fast-forward functions sat behind a forward declaration of pads_in_background(), and the test's source extraction took that declaration for the definition. They now sit below the definition, and the forward declaration is gone.
  • test_parity_gates: the Per frame 60 cap gate and the timed-step condition in video.rs keep main's exact lines. Fast-forward is an extra branch: while held, it takes the timed step scaled by the multiplier. Not held (100%), every path is the same as before, so parity runs, which never hold it, still get Per frame's exact 60th.
  • test_option_ids: I removed the two legacyIds (57, 67). The LEGACY table says a new setting takes none.
  • test_settings_area_keys: FROZEN now gives the new keys as an area mod's setting (&opts.fast_forward_*) rather than a system mod's (game:GAMEPLAY).
  • test_i18n_complete: the four new texts are translated into all 13 languages, and "ZL + ZR" is on NAMES, as ZL and ZR are. Native speakers, please correct any wording.
  • test_pacing_policy: stubs for hos_fast_forward_percent() and game_set_fast_forward().
  • A missing-docs warning: game_set_fast_forward() had been inserted between game_presented's doc comment and game_presented, so game_presented lost its docs. game_set_fast_forward() now has its own doc comment, and the comment in nn_vi.c is fixed the same way.

Checked locally (Windows, tools.lock's llvm-mingw)

  • tests/run_all.py --changed origin/main: 74 passed and 5 failed. The 5 (test_alt_enter, test_hle_guest_ranges, test_fps_stats, test_input_background, test_gfx_world) fail the same way on clean main on this PC, so they're unrelated to this PR.
  • cargo test -p game-core video: 25 passed, including fast_forward_scales_timed_step.
  • cargo clippy -p game-core -p longshot-game --all-targets: no warnings in the files this PR touches.
  • schema-gen --check: the generated files match.

Still needed: an in-game retest of hold-to-fast-forward (ZL, ZR, ZL + ZR, F2) at 60 and above 60 FPS, in both Per frame and Real time. I'll post the results here.

Rebased onto `main` (`0a68a1de`) and pushed `2712a9ea`. The rebase had conflicts, and a local run of the game-free checks found problems CI never reported, because CI hasn't run on this PR yet (every job shows *blocked* or *cancelled*). The fixes are in their own commit, `2712a9ea`, so they're easy to review apart from the feature. **Rebase conflicts** - `host/nn_hid.c`: #3108 removed `pad_bind_lock`, and this branch still took it in `pad_sprint_down()` and `oc_notes()`. I kept main's lock-free code there. - `menu.test.ts` and `docs/user/graphics-and-controls.md`: I kept main's new Gameplay order (`# interface` section) and put Fast-forward trigger and speed right after Game speed, which matches their `place` in `mod.toml`. **The data race BeanBot raised (L2), done more narrowly** `pad_after_menu` is now atomic only where two threads share it. `read_input()` publishes it with an atomic store, and `hos_fast_forward_held()` loads it atomically on the game thread. `pad_sprint_down()` and `oc_notes()` are called only from `read_input()`, on the thread that writes it, so they keep main's plain reads (this also keeps `test_sprint`'s pinned source). **Fixes for checks that would have failed in CI** - `test_walk_key`: the fast-forward functions sat behind a forward declaration of `pads_in_background()`, and the test's source extraction took that declaration for the definition. They now sit below the definition, and the forward declaration is gone. - `test_parity_gates`: the Per frame 60 cap gate and the timed-step condition in `video.rs` keep main's exact lines. Fast-forward is an extra branch: while held, it takes the timed step scaled by the multiplier. Not held (100%), every path is the same as before, so parity runs, which never hold it, still get Per frame's exact 60th. - `test_option_ids`: I removed the two `legacyId`s (57, 67). The LEGACY table says a new setting takes none. - `test_settings_area_keys`: FROZEN now gives the new keys as an area mod's setting (`&opts.fast_forward_*`) rather than a system mod's (`game:GAMEPLAY`). - `test_i18n_complete`: the four new texts are translated into all 13 languages, and "ZL + ZR" is on NAMES, as ZL and ZR are. Native speakers, please correct any wording. - `test_pacing_policy`: stubs for `hos_fast_forward_percent()` and `game_set_fast_forward()`. - A `missing-docs` warning: `game_set_fast_forward()` had been inserted between `game_presented`'s doc comment and `game_presented`, so `game_presented` lost its docs. `game_set_fast_forward()` now has its own doc comment, and the comment in `nn_vi.c` is fixed the same way. **Checked locally (Windows, tools.lock's llvm-mingw)** - `tests/run_all.py --changed origin/main`: 74 passed and 5 failed. The 5 (`test_alt_enter`, `test_hle_guest_ranges`, `test_fps_stats`, `test_input_background`, `test_gfx_world`) fail the same way on clean `main` on this PC, so they're unrelated to this PR. - `cargo test -p game-core video`: 25 passed, including `fast_forward_scales_timed_step`. - `cargo clippy -p game-core -p longshot-game --all-targets`: no warnings in the files this PR touches. - `schema-gen --check`: the generated files match. Still needed: an in-game retest of hold-to-fast-forward (ZL, ZR, ZL + ZR, F2) at 60 and above 60 FPS, in both Per frame and Real time. I'll post the results here.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The current head commit still lacks the AI-assistance trailer requested in L6. The integrated fast-forward behavior also awaits an in-game retest. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

Adds a configurable hold-to-fast-forward trigger and speed. It extends the existing input and timing paths, with the trigger off by default; the integrated behavior has not yet been demonstrated on this implementation.

Should fix (1): not blocking, but worth doing before merging.

  • L6: The description claims an AI-assistance trailer is recorded, but the head commit has none. When: The only commit in the reviewed range has no Assisted-by or Co-Authored-By trailer, despite the checked checklist claim. Do: Record the required assistance trailer and correct the checklist to match the resulting commit.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L8 game/crates/game-core/src/video.rs:1268: The port changes the game’s timing path, but the reported in-game test predates this implementation. When: The current head’s trigger, release, and scaled game step have not been shown working together in gameplay; the unit test exercises only a synthetic 60 FPS timed step. Do: Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base.

@fix can do L6.

Since the last review (on eeac62a59c)
Resolved: L1 (This calls the removed rx_option interface, for which the host has no definition.); L2 (The present thread reads pad_after_menu under a lock that its writer does not take.); L3 (The fast-forward input bypasses the foreground gate used for gameplay input.); L4 (The two new saved settings are absent from the frozen options-key table.); L5 (The new Gameplay rows are missing from the user settings table.); L7 (The description and test claims still describe the previous implementation.)
Still open: L6 (The description claims an AI-assistance trailer is recorded, but the head commit has none.); L8 (The port changes the game’s timing path, but the reported in-game test predates this imple…)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • The author reports that the current implementation still needs in-game testing at 60 and above 60 FPS in both timing modes.
More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported 25 game-core video tests include a scaled-step test, but no in-game run of the current implementation is reported.

Other systems: The change affects keyboard and controller input, focus and background input, and game timing at 60 FPS and other caps. The reported game-free checks cover part of the wiring; in-game behavior on Windows and Linux remains unreported.

Switches: Adds Gameplay settings Fast-forward trigger, default Off, and Fast-forward speed, default 200%. Off avoids changing existing play until enabled; the speed choices need the pending in-game check.

Reviewed: 2712a9ea7d against 0a68a1dea8: Read AGENTS.md and CONTRIBUTING.md, the commit messages, and the relevant timing, input, setting and frozen-key diff and surrounding code. Skimmed the recorded checks and review context; did not read every changed code file in full. Tooling's neighboring AGENTS.md and docs/review-checklist.md were not present.; nothing run (a code review).

Checked and fine:

  • The frozen keys match the new area-mod settings.
  • The feature commit records AI assistance.
  • The focus gate distinguishes keyboard input from permitted background controller input.

Testing: No commands that execute project code or tests were run. The author reports 25 game-core video tests passed and game-free checks with five failures also present on clean main; CI is still running.

Overlaps and merge order: None identified from the supplied context.


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

**Recommendation: Approve.** The current head commit still lacks the AI-assistance trailer requested in L6. The integrated fast-forward behavior also awaits an in-game retest. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. Adds a configurable hold-to-fast-forward trigger and speed. It extends the existing input and timing paths, with the trigger off by default; the integrated behavior has not yet been demonstrated on this implementation. **Should fix (1)**: not blocking, but worth doing before merging. - **L6**: The description claims an AI-assistance trailer is recorded, but the head commit has none. *When:* The only commit in the reviewed range has no Assisted-by or Co-Authored-By trailer, despite the checked checklist claim. **Do:** Record the required assistance trailer and correct the checklist to match the resulting commit. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L8** `game/crates/game-core/src/video.rs:1268`: The port changes the game’s timing path, but the reported in-game test predates this implementation. *When:* The current head’s trigger, release, and scaled game step have not been shown working together in gameplay; the unit test exercises only a synthetic 60 FPS timed step. **Do:** Run the current head in game with keyboard and controller triggers, release and menu capture, and representative frame caps on Windows and Linux, including Tier 1 hardware. Compare frame times with the feature Off against the base. `@fix` can do L6. **Since the last review** (on eeac62a59cf7) Resolved: L1 (This calls the removed rx_option interface, for which the host has no definition.); L2 (The present thread reads pad_after_menu under a lock that its writer does not take.); L3 (The fast-forward input bypasses the foreground gate used for gameplay input.); L4 (The two new saved settings are absent from the frozen options-key table.); L5 (The new Gameplay rows are missing from the user settings table.); L7 (The description and test claims still describe the previous implementation.) Still open: L6 (The description claims an AI-assistance trailer is recorded, but the head commit has none.); L8 (The port changes the game’s timing path, but the reported in-game test predates this imple…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The author reports that the current implementation still needs in-game testing at 60 and above 60 FPS in both timing modes. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported 25 game-core video tests include a scaled-step test, but no in-game run of the current implementation is reported. **Other systems:** The change affects keyboard and controller input, focus and background input, and game timing at 60 FPS and other caps. The reported game-free checks cover part of the wiring; in-game behavior on Windows and Linux remains unreported. **Switches:** Adds Gameplay settings Fast-forward trigger, default Off, and Fast-forward speed, default 200%. Off avoids changing existing play until enabled; the speed choices need the pending in-game check. **Reviewed:** 2712a9ea7d23 against 0a68a1dea88d: Read AGENTS.md and CONTRIBUTING.md, the commit messages, and the relevant timing, input, setting and frozen-key diff and surrounding code. Skimmed the recorded checks and review context; did not read every changed code file in full. Tooling's neighboring AGENTS.md and docs/review-checklist.md were not present.; nothing run (a code review). **Checked and fine:** - The frozen keys match the new area-mod settings. - The feature commit records AI assistance. - The focus gate distinguishes keyboard input from permitted background controller input. **Testing:** No commands that execute project code or tests were run. The author reports 25 game-core video tests passed and game-free checks with five failures also present on clean main; CI is still running. **Overlaps and merge order:** None identified from the supplied context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/2800-trigger-fast-forward 2026-12-04 00:17:56 +00:00
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Failing after 5s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3031
No description provided.