28 points · by mawlicious · 1w ago · 4 comments
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
Oh, am curious to learn more about this!
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!