Skip to content

Add configurable gameplay rates - #5

Open
samburgess wants to merge 1 commit into
OpenEmu:masterfrom
samburgess:feature/adjustable-game-speed
Open

Add configurable gameplay rates#5
samburgess wants to merge 1 commit 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
  • keep audio consumption synchronized with the core using pitch-preserving time scaling
  • convert core PCM through a mixer before the time-pitch unit so integer core formats are accepted
  • 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 without an audio-graph failure

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 3 times, most recently from e36aa8a to 1e26625 Compare August 4, 2026 21:24
@samburgess
samburgess force-pushed the feature/adjustable-game-speed branch from 1e26625 to 49c5fce Compare August 5, 2026 01:25
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