macOS (Apple Silicon) support: native build running under Rosetta 2 with MoltenVK #102
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!102
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/102/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@m1abdullahh on GitHub · 2026-07-23 01:31 UTC · original
m1abdullahh:macos-support→main· +577 −39 · 16 files · 8 commits · merged 2026-07-28 17:03 UTCOverview
This adds a native macOS build target for Apple Silicon. The emulator compiles and runs as an x86_64 binary under Rosetta 2 (guest PS5 code executes natively as x86_64; the emulator itself is translated), with graphics going through Vulkan to MoltenVK to Metal. It builds on the current tree, boots a commercial title into gameplay, and responds to controller input.
What was tested
Raiden III x MIKADO MANIAX boots through the loader, Vulkan init, swapchain, and window creation into guest execution, renders frames continuously, and takes controller input; the audio pipeline is wired up. It is a functional port with a couple of known rendering artifacts and performance still to improve (see Known issues), not a finished product, but well past proof of concept.
Verified locally on an M3 Pro MacBook Pro: clean configure, build, link, JIT codesign, and launch under Rosetta 2.
Building on macOS
Prerequisites: Apple Silicon Mac, Rosetta 2, Xcode Command Line Tools, CMake, Ninja, and a Vulkan runtime that provides MoltenVK (for example the LunarG Vulkan SDK for macOS).
The build produces an x86_64 binary and codesigns it with the JIT entitlements automatically. Run a game with
--game <dir|elf>(see--helpfor options). If the window fails to appear because of a Rosetta issue in the macOS window chrome, setKYTY_BORDERLESS=1for a borderless window.Known issues
@ADEMOLA200 on GitHub · 2026-07-26 14:53 UTC · original
@Nmzik What's the progress on this, is it going to get merge after conflicts are resolved?
@Nmzik on GitHub · 2026-07-26 15:51 UTC · original
@m1abdullahh @ADEMOLA200 I’m currently rewriting the entire renderer implementation, rewrite TextureCache, moving D16 processing to a compute shader, removing colorWriteEnable from the Vulkan requirements, and adding Linux support. So, of course, I’ll merge it.
@ADEMOLA200 on GitHub · 2026-07-26 17:41 UTC · original
That's awesome man keep up the good work
@m1abdullahh on GitHub · 2026-07-26 19:54 UTC · original
@Nmzik Nice, that all sounds great for this port to mac too. MoltenVK doesn't expose colorWriteEnable so dropping that requirement kills one of my workarounds.
Since the renderer files are moving right now, I'll wait for the rewrite to settle before fixing the conflicts here. Just ping me when it's a good time and I'll have it green and re-tested on Apple Silicon within a day or so if needed. Also happy to test any WIP branches on real Apple hardware if that helps.
@Nmzik on GitHub · 2026-07-28 00:29 UTC · original
@m1abdullahh Hi! I don’t want to bother you, but could you please rebase your changes onto the latest version? I’ve cherry-picked many of your fixes already, of course keeping you credited as the contributor. you can disable colorWriteEnable for now on APPLE platform. Some of changes are no longer needed (one Vulkan queue etc)
@m1abdullahh on GitHub · 2026-07-28 01:54 UTC · original
@Nmzik Rebased onto latest main, conflicts resolved and all checks green. It got a lot smaller since you already picked up several of the fixes, thanks for that.
Notes from the rebase:
@Nmzik on GitHub · 2026-07-28 17:03 UTC · original
@m1abdullahh Thanks! This looks very clean. I guarded
RunEntryjust in case. Merged.One note for a future PR: I suspect
TryEmulatemay not work correctly on Apple platforms under Rosetta 2. Some games like Legacy of Kain (PPSA18152) executes AMD-specific x86-64 instructions, whereas Rosetta 2 appears to emulate Intel behavior. This does not need immediate attention; I just wanted to mention it for future investigationgithub.com/KytyPS5/KytyPS5@8520cdb30b/src/common/hostException.cpp (L153-L177)