Driveclub-Port-AppleSilicon

Driveclub-Port-AppleSilicon is a native macOS port of Driveclub for Apple Silicon Macs, offering playable races with GPU fixes and performance work.

README

Driveclub Native

Apple Silicon fork. This repository is a fork of BlackLineInteractive/Driveclub-Port that runs the macOS backend on Apple Silicon Macs under Rosetta 2 (playable races, ~30 fps on an M1 Max), with many GPU fixes and performance work. Prebuilt download: Releases. What was done, how to build it and what is left: docs/APPLE_SILICON.md · in italiano: docs/APPLE_SILICON.it.md. The rest of this README is upstream's.

Not affiliated with or endorsed by Sony Interactive Entertainment. "Driveclub" and "PlayStation" are trademarks of their owners. No game files are included: you need your own legitimate copy of the game.

Driveclub v0.2.15 racing in heavy rain on an M1 Max under Rosetta 2 (click to play the video)

v0.2.15 in heavy rain on a MacBook Pro M1 Max under Rosetta 2, at 30 fps: chase, bonnet and cockpit views, raindrops on the windscreen and the camera lens. Click the image to play the video (MP4, 0:28).

What's new since the first video

The first gameplay video (October 18, v0.1, ~26 fps) showed dry races only. Since then:

  • Rain and water effects. Rain no longer turns the screen white (v0.2.9). Rain particles and spray from the cars are drawn (v0.2.10). Raindrops now run down the windscreen and land on the camera lens in chase view: the game makes them with geometry shaders, which Metal does not have, so they are emulated with compute shaders (v0.2.14). Tyre marks now stay on the road, using the same emulation (v0.2.17).
  • Lighting and colors. Direct sunlight is back on cars and track (v0.2.11). Car liveries show their real colors instead of black (v0.2.5).
  • Image quality. The game still renders at 1080p, but MetalFX now upscales the finished frame to your window, so edges and text stay sharp on Retina and 4K screens. Press M to compare on and off (v0.2.18). On HDR screens such as the MacBook Pro XDR display, sun, sky and reflections in a race now go brighter than normal white; the HUD stays as it is. Press H to compare (v0.2.19).
  • Audio. Correct stereo downmix of the game's surround mix (v0.2.10), with no more crackles or gaps (v0.2.13) and the right volume on stereo outputs (v0.2.16).
  • Performance. From ~26 to a steady 30 fps in a race on an M1 Max: shorter GPU work per frame (v0.2.5, v0.2.12), less waiting between frames (v0.2.6), a memory leak fixed (v0.2.8).
  • Loading and stutters. Shorter shader freezes the first time you play (v0.2.7). Faster texture loading, a smoother countdown and background shader prewarm after an update (v0.2.15).
  • App. Driveclub.app with a game-folder picker, one log per session on your Desktop with your Mac model (v0.2.4).

Full list: Releases.

How to play on Apple Silicon

Italiano: docs/APPLE_SILICON.it.md — Come giocare

You need a Mac with Apple Silicon running macOS 15 or later and your own copy of Driveclub v1.28 (CUSA00003), decrypted and extracted to a folder (the one with eboot.bin). No game files are included.

  1. Download Driveclub-Native-0.2.20.dmg from Releases, open it and drag Driveclub onto Applications.
  2. First launch only (the app is not notarized): double-click it, click Done, then System Settings → Privacy & Security → Open Anyway. Accept if macOS offers to install Rosetta.
  3. Choose your game folder (the one with eboot.bin) when asked. The app remembers it and tells you if the game version is not supported.
  4. Wait ~40 s, press Cross (Enter) at Start Event, then again at Controls: the race starts.
  5. Quit with Cmd+Q. Step-by-step guide, logs and Terminal use: docs/APPLE_SILICON.md.
PS4 buttonKeyboardIn the game
R2 / L2W / SAccelerate / brake, reverse
Left stickA / DSteer
Cross ✕ / Circle ○Enter (or Space, K) / LConfirm / back
Square □ / Triangle △J / IGame actions (in-game Controls screen)
L1 / R1Q / EGame actions (in-game Controls screen)
D-padArrow keysMenus
OptionsEsc or TabPause

A PS4 controller (DualShock 4 / DualSense) works as on the console. V toggles vsync. Full guide, building from source and known issues: docs/APPLE_SILICON.md.

YouTube

LOGO Driveclub In-Game

A native port of Driveclub (PS4, CUSA00003) to macOS and Windows.

PlatformGame versionRendererWhereMaintainer
macOS (Intel)v1.05Metal 3this repository's src/BlackLineInteractive
Windows 10/11v1.28Vulkan (shadPS4's renderer), FSR 3.1 / FSR 4 / FSR 4.1.1, frame generationwindows/ — ready-to-play builds on the Windows releasesqnfn

Windows highlight: DCport 0.3.0 can build AMD's FSR 4.1.1 for Vulkan from your own DirectX 12 DLL, on your PC, in one click (about two minutes), and run it with FSR 3 frame generation. See windows/README.md.

The sections below describe the macOS backend; the Windows backend (DCport) runs on a native PS4 runtime based on Supermedo/bloodborne_pc and is documented in windows/README.md.

Windows (DCport):

DCport launcher on Windows DRIVECLUB BIKES on Windows, FSR 4 Event preview on Windows, FSR 4

This is not a general-purpose emulator. PS4 code is x86-64, so on Intel Macs it executes directly without CPU recompilation. We only replace what is console-specific: Sony system libraries (HLE) and the AMD Liverpool GPU (GCN) - with a custom Metal renderer tailored specifically for this single game.

Repository layout

PathBackendPlatformWhat it is
src/Metal (src/gpu/metal)macOSOur native runtime: ELF loader, HLE libraries, PM4 command processor, GCN → MSL
windows/Vulkan (DCport)WindowsSeparate native runtime (bloodborne_pc + runtime/driveclub-runtime.patch), launcher, community patches

src/ and windows/ are independent: each has its own runtime and build, and changes to one do not affect the other. Fixes found on one side are worth checking on the other (both translate the same GCN/PM4 stream).

Architecture

eboot.bin (x86-64, natively executed)
   │  imports of 922 functions from 57 libraries
   ▼
Sony HLE libraries ── libkernel, libc, Pad, AudioOut, VideoOut, Network/PSN -> stubs
   │  sceGnmSubmitCommandBuffers / sceGnmDingDong
   ▼
GPU frontend ── PM4 packet parsing, register state, GCN shaders -> IR
   │  src/gpu/renderer.h
   └──► Metal 3 (macOS) - src/gpu/metal, IR -> MSL directly

Gnm/Gnmx are embedded directly into eboot: the game writes PM4 packets into the command buffer itself and passes only the finished buffer to the driver (sceGnmDraw* are not imported). Therefore, the GPU layer operates at the PM4 + GCN shader level.

Performance Principles
  • Shader IR -> MSL directly, without SPIR-V/SPIRV-Cross; disk cache for compiled pipelines.
  • Argument buffers Tier 2 (bindless) - minimal resource binding overhead per draw.
  • Up to 3 frames in flight; CPU waits for GPU only when running 3 frames ahead.
  • On discrete AMD GPUs, memory is not unified: dirty page tracking and uploading modified ranges only.
  • Explicit discrete GPU selection on dual-GPU MacBooks (DC_GPU=<partial_name> override).

Requirements

macOS

  • Intel Mac (x86_64), Metal 3-capable GPU (tested: AMD Radeon Pro 5500M)
  • Xcode, CMake >= 3.24, Ninja, SDL3 (brew install cmake ninja sdl3)
  • Your own copy of the game as a decrypted dump (fSELF/fPKG)

Windows

  • Windows 10/11 64-bit, a CPU with AVX, a Vulkan 1.3 GPU (FSR 4 needs a recent AMD or NVIDIA GPU)
  • Your own decrypted dump of Driveclub v1.28; no Python or build tools needed for the release builds

Build

macOS

cmake -S . -B build -G Ninja
cmake --build build
./build/driveclub

Windows: download a release build, or build the launcher and runtime from windows/.

Game Files

Game files are not included in the repository and must never be committed (see .gitignore). Unpacking PKG:

tools/extract.sh <path_to_pkg> extracted

eboot analysis (imports by library):

tools/elfinfo.py extracted/Image0/eboot.bin
tools/elfinfo.py extracted/Image0/eboot.bin --lib libSceGnmDriver

Support the project

If this project is useful to you, you can support my work by buying me a coffee and/or starring this repository, which helps other Mac players find it.

Buy me a coffee on Ko-fi Maurizio on LinkedIn

Legal Disclaimer

  • No Proprietary Game Files: This project does not distribute, host, or link to any copyrighted material, proprietary game assets, PKG dumps, ROMs, executables (eboot.bin), libraries (.prx), engine archives (.dat), audio, or textures. Users must provide their own legitimately acquired copy of Driveclub (CUSA00003).
  • Intellectual Property: Driveclub is a registered trademark of Sony Interactive Entertainment LLC. All trademarks, service marks, game titles, and copyrighted assets belong to Sony Interactive Entertainment and Evolution Studios.
  • Educational and Preservation Purpose: This repository is an independent reverse-engineering project conducted strictly for interoperability, software preservation, and educational purposes. It is not affiliated with, endorsed by, or sponsored by Sony Interactive Entertainment, Evolution Studios, or any associated entities.

License

This project is licensed under the GNU General Public License v2.0 or later (GPL-2.0-or-later) - see the LICENSE file for details.

Acknowledgments

  • shadPS4 - PS4 emulator, the primary source of knowledge on ELF loading, HLE libraries, PM4, and GCN shader recompilation. Its Vulkan renderer is the reference for GCN/PM4 semantics in the Metal backend, and the renderer of the Windows backend.
  • OpenGNM - documentation on PS4 Gnm and GCN shaders.
  • Windows backend: deadinside28 and Supermedo (native PS4 runtime), FireBurn (FSR-Vulkan, FSR 4 assets), akitaonrails and the patch authors; see windows/README.md.