Skip to content

Expose the running architecture, and fix the render wait - #8

Open
rhigma wants to merge 2 commits into
OpenEmu:masterfrom
rhigma:openemu-arm64
Open

rhigma wants to merge 2 commits into
OpenEmu:masterfrom
rhigma:openemu-arm64

Conversation

@rhigma

@rhigma rhigma commented Oct 29, 2026 •

Copy link
Copy Markdown

Adds the two hooks an app needs to only run cores it can actually load, and
fixes a render wait found while building for arm64.

Commits

  • Expose the architecture the app runs as, and a compatibility check —
    OECorePlugin.currentArchitecture and
    isCompatibleWithCurrentArchitecture. Cores are loaded into the helper
    process, which is spawned from the app bundle and runs the same slice; a core
    without that slice cannot be loaded at all, even though its Info.plist reads
    fine and it looks installed. Callers can now filter candidates before they
    try to open one.
  • Do not wait for a render thread in didExecuteFrame —
    executeThreadCanProceed is signalled by didRenderFrameOnAlternateThread(),
    the callback of cores that render on a thread of their own. A core that
    renders inline never sends it, so once FPS limiting is resumed the emulation
    thread waits for a signal that never comes.

Notes

The audio path needed no change here: master already uses GameAudio2 only
(bc098f4), so the commit that did the same is gone after rebasing.

The architecture filter is used by the app's core(forSystem:); the
corresponding change is in OpenEmu/OpenEmu#5157.

🤖 Generated with Claude Code

rhigma and others added 2 commits October 29, 2026 11:19
Cores are loaded into the helper process, which is spawned from this app
bundle and therefore runs the same slice. A core whose binary has no slice
for that architecture cannot be loaded at all, even though its Info.plist
reads fine and it looks installed.

OECorePlugin can already report the architectures a core contains. Add the
running slice and a comparison against it, so callers can filter candidates
before they try to open one.

Co-Authored-By: Claude Code <noreply@anthropic.com>
executeThreadCanProceed is signalled by
didRenderFrameOnAlternateThread(), the callback of cores that render on a
thread of their own. A core that renders inline never sends it, so once
FPS limiting is resumed the emulation thread waits for a signal that never
comes.

The pair of semaphores belongs to the alternate-thread path and stays
there.

Co-Authored-By: Claude Code <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