ALL INTELLIGENCE
Hacker News AIT2·Tools

Open Source Project Statically Recompiles Black Ops III for Native ARM64

Original title: Bo3mac: Static ARM64 Recompiler and Direct Metal Port of Black Ops III
58AI Score

The bo3mac project statically recompiles Call of Duty: Black Ops III's x86_64 binary into a native Apple Silicon application and ports the rendering layer directly to Metal, addressing the loss of Rosetta 2 support starting with macOS 28. It distributes no game files, instead verifying the user's own Steam executable via SHA-256 and compiling locally.

Full Report

Contents5 sections

Why macOS 28+ · Performance · Install · Live Settings · Online & Workshop · Compatibility · Architecture

<br>

[!IMPORTANT] Ownership & Legal Notice: Zero Game Files Distributed You must own Call of Duty: Black Ops III on Steam and have the macOS Steam version installed. This repository contains zero copyrighted Activision, Treyarch, or Aspyr binaries, shaders, or assets. ./install.sh verifies your own Steam executable by SHA-256 and compiles a native ARM64 app locally on your Mac without modifying a single file inside Steam.


Why bo3mac? Preserved Past macOS 28

Aspyr's official macOS port of Call of Duty: Black Ops III is an aging x86_64 binary built on an older D3D11-to-Metal translation layer that:

  • Relies on Rosetta 2 on Apple Silicon, which Apple is deprecating after macOS 27 (macOS 28+ removes general Rosetta 2 support, permanently breaking the stock Intel Steam binary and Rosetta-based mods).
  • Bottlenecks heavily on a single emulated render thread and burns battery/thermals on fanless MacBook Airs.

bo3mac statically recompiles Black Ops III into a 100% native Apple Silicon (arm64, proc_translated=0) macOS application and replaces Aspyr's wrapper with a custom Direct3D 11 → Metal + MetalFX Spatial renderer tuned specifically for Apple's Tile-Based Deferred Rendering (TBDR) GPUs.

Black Ops III Zombies running natively on Apple Silicon ARM64 ( proc_translated=0 ) via bo3mac 's Direct Metal backend.

What Changes vs. Stock Steam BO3

Stock Steam BO3 (Aspyr)bo3mac (Native ARM64)
CPU Executionx86_64 via Rosetta 2100% Native ARM64 (-mcpu=apple-m*), zero Rosetta
macOS 28+ Future (Post-Rosetta)Stops launching once Rosetta 2 is removedPreserved natively on Apple Silicon
Graphics BackendAspyr's 2019 x86_64 D3D11→Metal wrapperNative ARM64 Direct3D 11 → Metal TBDR renderer
Upscaling & BandwidthNoneMetalFX Spatial + Apple8+ Lossy RT + deferred clears
Steam Workshop & Custom MapsBroken navmesh/scripts without Rosetta modsNative ARM64 Havok nav converter + mod fixes (zero Wine/Rosetta)
Windows Cross-PlayStuck on macOS v98 protocolWindows v100 protocol + Friends-Only lobby guard
Live Graphics TweakingRestart requiredIn-game F10 / ⌘, overlay (MetalFX, latency, HUD, safety)

How It Works

  1. Zero-Slide Mach-O Loader (bo3_loader): Maps your verified CoDBlkOps3_Exe data/read-only sections at their exact original 64-bit virtual addresses (0x100008000) with __TEXT non-executable (PROT_READ), then loads the freshly compiled native ARM64 engine (libbo3_recomp.dylib).
  2. Custom Zydis → LLVM IR Static Lifter (bo3_lift): Lifts all Core BO3 x86_64 functions across 81 parallel ARM64 shards compiled with clang -O2 -mcpu=apple-m* and strict TSO memory ordering, differentially verified instruction-by-instruction against Rosetta x86_64 execution.
  3. Apple-TBDR Direct Metal Backend (metal/): Implements D3D11 directly on Metal with deferred clears, MTLStoreActionDontCare bandwidth elimination, persistent MTLBinaryArchive PSO caching, a zero-dependency DXBC → MSL translator (plus Generic.metallib reuse), MetalFX Spatial Upscaling, and Apple8+ Lossy Render-Target Compression.
  4. Native macOS Subsystems (runtime/): CoreAudio (WASAPI), VideoToolbox H.264 cutscenes, GameController.framework with haptics, native arm64 steamclient.dylib bridge, and a clean-room native ARM64 Havok navigation converter for Steam Workshop custom maps.

For the deep-dive technical write-up, see docs/ARCHITECTURE.md.


Performance & Benchmarks

Verified Benchmark: Apple M4 Base (10-Core GPU, Fanless MacBook Air, 1080p)

Measured over a 10-minute sustained Shadows of Evil Round 15 stress test (Shadow Man Easter Egg, 32,880 frames, MetalFX 80% + Lossy RT + Frame Latency 2):

MetricMeasured ResultNotes
Average Frame Rate60.5 FPSLocked to 60 Hz display
Worst-Case Frame Rate53.9 FPSPeak 4,069-draw-call zombie hordes
Average GPU Frame Time15.05 msStable across 10-minute sustained run
TBDR Memory Traffic308 MB load / 324 MB store-48% vs. pre-TBDR baseline (~600+ MB/frame)
Thermal ThrottlingNoneSustained on a fanless MacBook Air

Help expand the benchmark matrix! If you test bo3mac on an M1, M2, M3, M4 Pro/Max, or M5 Mac (especially with uncapped FPS and 1% lows via bash tools/run_bo3.sh --perf), please open an issue or PR to share your numbers.


(注:更多技术实现细节与完整 API 文档请查阅原项目 README)