Skip to content

Fast Forward hotkey and a Max speed - #474

Draft
tarikbc wants to merge 2 commits into
mainfrom
ff-speed
Draft

tarikbc wants to merge 2 commits into
mainfrom
ff-speed

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Asked for on Discord, twice: a Fast Forward hotkey that flips between normal speed and a fast one in one press, like RetroArch's toggle (DoctorIssa, for Pokemon: fast in battles, 1x in between), and a speed past 3x that goes as fast as the handheld can (moroboshi69: his son's Game Boy Pokemon game fast-forwarded faster under RetroArch on an RK3326 than on the Brick).

What changes

Max, a fifth speed after 3x. SELECT+R2 reaches it after 3x and stays there, SELECT+L2 steps back to 3x. A fast turn already ran frames until the next one would not fit its two refreshes; at Max there is no step to hold it to and the loop never sleeps, so the game runs flat out and the panel still gets a new picture 30 times a second. 32x is only a turn's ceiling for a core that costs nothing (the stub, a desktop). It is muted like every fast step. Diatom says SPEED x=max, the pop-up says Max, and On-Screen Stats says what it really reached (it stopped at 9.9x before; now 99.9x, which is no wider than the 0.97x it was sized for).

Fast Forward, a tenth hotkey in MENU > System > Hotkeys and a game's Controls tab > Hotkeys, None until set, per game, system or every game like the others. From 1x it goes to its speed; from any fast step (one SELECT+R2 reached too) it goes back to 1x. The Speed pop-up says each press. Its speed is a row right under it, Fast Forward Speed, round on Left and Right: 1.5x, 2x, 3x, Max, 2x from the start. Stored with the keys (1;ffwd:y,ffspeed:max), sent as RUN and SETHOTKEYS ffspeed=. It is listed after Slower but added last to the enums, so the other actions and the shot numbers keep theirs.

Nothing else depends on the speed: achievements are evaluated every frame at any speed and ZyperOS is softcore only, there is no rewind, MP4 over a game plays on in its own player, and a core that asks GET_FASTFORWARDING is told it is fast (Max too). px2-perf says "at Max" where the now file's step is 0.

Choices

  • Fast Forward Speed is a fixed setting, 2x from the start, not "the last fast speed used". The same press gives the same speed in every game; the last used would change with each SELECT+R2 and start over with every game, because the speed resets at every game. 2x is the middle step. Alternatives: last used (no new row), or always Max.
  • One press each way, not held. RetroArch has both; held would need a second action and fights SELECT's chord rule.
  • From any fast step the toggle goes to 1x, so it is also a quick way back from SELECT+R2's 3x. Alternative: only undo its own speed.
  • Max keeps the two-refresh turn, so the picture stays at 30 a second like the other fast steps. Longer turns (15 a second) would buy a little more speed by presenting less.
  • The speed row is live with Fast Forward on None, so it can be set first. Alternative: dim it until a key is set.
  • The same Speed pop-up for the toggle as for the steps, rather than a "Fast Forward On/Off" one.

Checks

Each fails on main and passes here:

  • make check-hotkeys: Fast Forward None from the start and after Slower, its speed 2x, stored and read back, refused when unknown, kept per scope.
  • make check-hud: 12.6x said as it is, 99.9x the clamp.
  • Diatom test/hotkeys.py: SELECT+Y goes to 2x and back, from SELECT+R2's 1.5x to 1x, ffspeed=max to Max and SELECT+L2 back to 3x, SETHOTKEYS ffspeed=1.5, SELECT+R2 steps 1.5x, 2x, 3x, Max and stays.
  • Diatom test/fastforward.py: a 1 ms core at Max never sleeps and runs past 3x (12.6x here).
  • Diatom test/chord_test.c: ffwd:y parsed.

Also run: make native, Diatom's whole make check, check-controls, check-strings, check-design, check-resident, check-px2-perf, check-pkkeys, check-portkeys, check-zyhome, check-shotfeel, check-tour, check-menu-rows. The new rows and the Max pop-up fit in all 8 languages on both handhelds.

New strings, in all 8 languages: hotkeys.ffwd, hotkeys.ff_speed, popup.speed_max.

This keeps clear of #464 (menu-keys), which edits the same list: a trial merge of the two conflicts only in src/device/brick.c, which is #464 against main and not this branch, and the merged tree builds and passes check-hotkeys.

Two asks from the Discord. A Fast Forward hotkey that flips between 1x and a
chosen speed in one press, like RetroArch's toggle, instead of stepping
SELECT+R2 up and SELECT+L2 down. And a speed past 3x that runs as fast as the
handheld can, because a Game Boy Pokemon game went faster under RetroArch on
an RK3326.

Max is a fifth step after 3x. A fast turn already runs frames until the next
would not fit its two refreshes; at Max there is no step to hold it to and the
loop never sleeps, so the game runs flat out and the panel still gets a new
picture 30 times a second. 32x is a turn's ceiling that no handheld game comes
near. It is muted, as every fast step is. SPEED says x=max and the pop-up says
Max. The stub's 1 ms frames reach 12.6x, so On-Screen Stats now holds 99.9x
instead of stopping at 9.9x.

Fast Forward is a tenth hotkey, None until set. From 1x it goes to its speed,
from any fast step (one SELECT+R2 reached too) back to 1x. Its speed is a row
under it in the Hotkeys list, round on Left and Right: 1.5x, 2x, 3x, Max, 2x
from the start, kept with the keys in each scope (ffspeed:max) and sent as RUN
and SETHOTKEYS ffspeed=. It is listed after Slower but added last to the
enums, so the other actions keep their numbers.

This branch has not been deployed

No deployments
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.

1 participant