Repository navigation
Configurable fast-forward rate, toggle, and frame skip - #7
Open
weavermonkey wants to merge 3 commits into
Open
weavermonkey wants to merge 3 commits into
weavermonkey wants to merge 3 commits into
Conversation
- Add setGameplayRate(_:fastForwardRate:) to OEGameCoreHelper, matching the API proposed in OpenEmu#5. Defaults stay 1x and 5x. - Add setFastForwardEnabled(_:) so the host can turn fast-forward on or off from a menu. - Handle the SDK's new toggleFastForwardGameplay: global event. - Track fast-forward state in the helper, apply the configured rate once emulation has started, and restore it after unpausing. - Keep display sync disabled whenever the rate is faster than 1x (OpenEmu/OpenEmu#4780). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Presenting every emulated frame waits on the layer for a drawable, which holds emulation near the display's frame rate, so 10x and Unlimited ran no faster than 5x. While the rate is above 1x, present at most 120 frames per second (similar to VBA-M's speed-up frame skip). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setFastForwardButtonToggles(_:) makes the existing hold-to-fast-forward button toggle fast-forward on press and ignore release. Off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 25, 2026
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.
Companion PRs: OpenEmu/OpenEmu-SDK#40, OpenEmu/OpenEmu#5155. Part of OpenEmu/OpenEmu#4886.
Changes
OEGameCoreHelper.setGameplayRate(_:fastForwardRate:): same signature as the one proposed in Add configurable gameplay rates #5, so the two can be reconciled easily. Defaults stay 1× / 5×.setFastForwardEnabled(_:): lets the host turn fast-forward on/off (used by a menu item).setFastForwardButtonToggles(_:): when true, the existing hold-to-fast-forward button toggles on press and ignores release. Off by default.toggleFastForwardGameplay:event.Testing
Built in GitHub Actions (macos-15, Xcode 16.4, x86_64 Release) and run on macOS 15.3 (Apple Silicon, Rosetta) with mGBA and Pokémon Emerald. Measured emulation speed with temporary logging (not included):
Toggle via menu, via the new Toggle Fast Forward binding, and via Space with "key toggles" on; hold behaviour with it off.
🤖 Generated with Claude Code