Better HN
topnewbestaskshowjobs
Log inSign up

mawlicious

12 karma · joined Nov 25, 2026 (1w ago) · 2 submissions

Submissions

comment 1w ago · link · parent

I built bo3mac to statically recompile Call of Duty: Black Ops III from Aspyr's x86_64 macOS binary into native Apple Silicon ARM64 (proc_translated=0) with a Direct3D 11 to Metal renderer, both for performance/thermals and to preserve the game once Apple drops Rosetta 2 after macOS 27 (macOS 28+).

Technically it is split into four pieces:

1. Zero-slide Mach-O loader (bo3_loader) mapping the verified Steam binary's data/read-only sections at their original 64-bit address (0x100008000, __TEXT mapped PROT_READ non-executable) so 64-bit guest pointers resolve 1:1.

2. Custom Zydis -> LLVM IR lifter (bo3_lift) compiling Core BO3 into 81 parallel ARM64 shards (-mcpu=apple-m*, strict TSO ordering), differentially tested against Rosetta x86_64 execution.

3. In-process fake-COM D3D11 -> Metal backend (metal/) with deferred clears, MTLStoreActionDontCare, persistent MTLBinaryArchive PSO cache, zero-dependency DXBC -> MSL translator (plus Generic.metallib reuse), MetalFX Spatial upscaling, and Apple8+ lossy render-target compression.

4. Native macOS shims (runtime/): CoreAudio, VideoToolbox H.264, GameController, arm64 Steamworks bridge, Windows v100 cross-play protocol, and an in-process native ARM64 Havok navmesh/navvolume converter for Steam Workshop custom maps.

Everything builds locally in ~2 to 4 minutes from the user's own Steam copy using only Apple's Xcode Command Line Tools (no copyrighted files in the repo). On a fanless base M4 MacBook Air (10-core GPU, 1080p), a 10-minute sustained Round 15 Shadows of Evil test averaged 60.5 FPS (53.9 FPS worst-case during 4,000+ draw-call hordes, 15.05 ms GPU frame time, 48% lower TBDR memory traffic, zero throttling). Happy to answer any questions about the lifter, ABI bridge, or Metal backend!

2.

Bo3mac: Static ARM64 Recompiler and Direct Metal Port of Black Ops III(github.com ↗)

28 points · by mawlicious · 1w ago · 4 comments