3 comments

  • asimovDev 7 hours ago
    >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).

    subset of Rosetta 2 will be left as optional for game backwards compatibility. But I don't think we yet know what that entails

    Also it would help to have a benchmark comparing how this performs compared to the Intel Mac version running on Rosetta 2

  • ndesaulniers 9 hours ago
    > Custom Zydis → LLVM IR Static Lifter

    Oh, am curious to learn more about this!

    • Yoric 9 hours ago
      Oh gosh, I'm so brainwashed by AI news that I had misread `-> LLM IR`. It didn't make sense, but in this age of LLM, so many things don't.
  • mawlicious 12 hours ago
    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!

    • Yoric 6 hours ago
      Sounds very cool!

      > 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.

      I'm curious: how do you do that? LLVM IR is quite high-level when compared to x86, plus register-agnostic. Or perhaps it's ok to do a dumb-ish lift, ignoring any high-level IR opcode and register allocation, and LLVM's optimizer is good enough + the arm64 is fast enough that it doesn't matter too much?

      Also, I don't understand what you write about shards. Does this mean that you've turned essentially sequential code in original BO3 into largely parallel one in your recompile? If so, how do you manage?