Skip to content

Add configurable gameplay rates - #5

Open
samburgess wants to merge 2 commits into
OpenEmu:masterfrom
samburgess:feature/adjustable-game-speed
Open

samburgess wants to merge 2 commits into
OpenEmu:masterfrom
samburgess:feature/adjustable-game-speed

Conversation

@samburgess

@samburgess samburgess commented Aug 4, 2026 •

Copy link
Copy Markdown

Summary

  • add a helper API for configuring normal and fast-forward gameplay rates
  • restore the configured active rate after pausing and when fast-forward changes
  • retain the existing audio implementations and graph unchanged
  • disable display synchronization whenever the selected rate is faster than real time

The API preserves the current behavior by default: normal gameplay remains 1× and fast-forward remains 5× until the host configures different values.

Testing

  • built the OpenEmu workspace with the OpenEmu scheme in Debug configuration
  • verified both XPC and thread-mode implementations compile through the shared OEGameCoreHelper interface
  • launched and played Pokémon FireRed with the mGBA core at a 4× base rate while the helper remained stable

The OpenEmuKit test target currently fails to resolve OpenEmuKitPrivate under Xcode 26 before running tests; this is unrelated to these changes.

@samburgess
samburgess force-pushed the feature/adjustable-game-speed branch 4 times, most recently from 1e26625 to 49c5fce Compare August 5, 2026 01:25
weavermonkey pushed a commit to weavermonkey/OpenEmuKit that referenced this pull request Oct 25, 2026
- 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>
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