Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 SETHOTKEYSffspeed=. 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
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.test/hotkeys.py: SELECT+Y goes to 2x and back, from SELECT+R2's 1.5x to 1x,ffspeed=maxto Max and SELECT+L2 back to 3x, SETHOTKEYSffspeed=1.5, SELECT+R2 steps 1.5x, 2x, 3x, Max and stays.test/fastforward.py: a 1 ms core at Max never sleeps and runs past 3x (12.6x here).test/chord_test.c:ffwd:yparsed.Also run:
make native, Diatom's wholemake 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.