返回资讯中心
外部精选
软件工程
#开发者实时流

bo3mac 将《黑色行动3》静态重编译为原生 ARM64 并改用 Metal 渲染

来源标题:Bo3mac: Static ARM64 Recompiler and Direct Metal Port of Black Ops III

bo3mac 项目将《使命召唤:黑色行动3》静态重编译为 100% 原生 Apple Silicon(ARM64)应用,并用自己的 Direct3D 11 到 Metal + MetalFX Spatial 渲染器替换 Aspyr 的转译层。该项目不附带任何游戏文件,需用户自备 Steam macOS 版,安装脚本用 SHA-256 校验用户自己的可执行文件后在本地编译。与依赖 Rosetta 2 的原版不同,该版本在 Rosetta 移除后的 macOS 上仍可原生运行。

Hacker News 最新mawlicious2026/11/25 · 今天14 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

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.

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:

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.

Stock Steam BO3 (Aspyr) bo3mac (Native ARM64)

CPU Execution x86_64 via Rosetta 2 100% Native ARM64 (-mcpu=apple-m*), zero Rosetta

macOS 28+ Future (Post-Rosetta) Stops launching once Rosetta 2 is removed Preserved natively on Apple Silicon

Graphics Backend Aspyr's 2019 x86_64 D3D11→Metal wrapper Native ARM64 Direct3D 11 → Metal TBDR renderer

Upscaling & Bandwidth None MetalFX Spatial + Apple8+ Lossy RT + deferred clears

Steam Workshop & Custom Maps Broken navmesh/scripts without Rosetta mods Native ARM64 Havok nav converter + mod fixes (zero Wine/Rosetta)

Windows Cross-Play Stuck on macOS v98 protocol Windows v100 protocol + Friends-Only lobby guard

Live Graphics Tweaking Restart required In-game F10 / ⌘, overlay (MetalFX, latency, HUD, safety)

How It Works

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

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):

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.

What developer tools are needed?

Because bo3mac recompiles your own copy of the game locally, it needs only Apple's free Xcode Command Line Tools (~700 MB, providing clang, make, python3, and git).

Apple Silicon Mac (verified on M4 Base; targets M1 / M2 / M3 / M4+ Apple Silicon)

macOS 13 Ventura or newer (macOS 14/15/27/28+ recommended)

Call of Duty: Black Ops III installed via Steam (internal SSD or external drive)

2 GB free disk space for the one-time ARM64 build cache (/Library/Caches/bo3mac)

Step 1: Install Black Ops III in Steam

Install Call of Duty: Black Ops III normally in Steam on your Mac. You don't need to launch it through Steam first.

Open Terminal (⌘ Space → type Terminal → press Enter) and paste:

git clone https://github.com/mawlicious/bo3mac.git cd bo3mac ./install.sh

What ./install.sh automatically does:

Tip (External SSD build cache): Pass --cache-dir "/Volumes/YourSSD/bo3mac-cache" to keep the ~2 GB build cache off your internal SSD.

Open Steam (or check Offline Mode in the launcher for solo play without Steam).

Double-click BO3 Mac in /Applications (or Spotlight ⌘ Space → BO3 Mac).

Click Play Black Ops III.

Live In-Game Settings (F10 or ⌘,)

Press F10 (fn + F10 on Mac keyboards) or ⌘, (or BO3 Mac → Settings… in the menu bar) anytime during gameplay, with no restart needed:

Settings are shared between BO3 Mac.app and the in-game overlay at ~/Library/Application Support/bo3mac/settings.ini.

Intel Mac user? bo3mac is ARM64-only. For Intel Macs (or if you prefer launching directly through Steam under Rosetta 2), see BO3MacFix-mawlicious.

Fixed-Address Guest Arena (No ASLR for the Recompiled Binary): bo3_loader maps the read-only guest image sections at their original x86_64 virtual address (0x100008000) so 64-bit guest pointers, jump tables, and __DATA references resolve 1:1 with zero pointer translation. As a trade-off, ASLR is disabled for the guest arena (__TEXT itself is mapped PROT_READ / non-executable).

Friends-Only Lobby Guard: Enabled by default to force newly created lobbies to Friends-Only and drop unsolicited non-friend P2P session requests, P2P packets, and IM messages. This is a practical multiplayer safety layer, not a guarantee that public BO3 lobbies are free of all engine vulnerabilities.

Sandboxed Workshop Lua I/O: hksf_fopen is restricted per-component with openat(..., O_NOFOLLOW) inside the Steam Black Ops III directory (rejecting absolute paths, .. traversal, symlink escapes, and writes into CoDBlkOps3.app).

Release Builds: Runtime binaries compile with -O3 -DNDEBUG with Metal validation layers, profiling, and console spam disabled unless explicitly requested via CLI flags (--perf, --debug).

FAQ & Troubleshooting

"Command Line Tools not installed" during ./install.sh Click Install in the macOS popup that appears (~700 MB, official Apple clang toolchain, no full Xcode needed). Once it finishes, run ./install.sh again.

Pass --game-dir "/Volumes/YourDrive/.../Call of Duty Black Ops III" to ./install.sh, or click Locate Game… inside BO3 Mac.app.

PlayStation (DualSense / DualShock 4), Xbox, and MFi controllers work natively via Apple's GameController framework with rumble/haptics. Connect via Bluetooth or USB before or during gameplay.

Delete /Applications/BO3 Mac.app, ~/Library/Caches/bo3mac, ~/Library/Application Support/bo3mac, and the cloned bo3mac folder. Your Steam installation of Black Ops III is never touched.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →