Better HN
topnewbestaskshowjobs
Log inSign up

adrbn

99 karma · joined Oct 8, 2026 (1mo ago) · 14 submissions

Submissions

comment 2w ago · link · parent

To answer your last question also: yes, the PC version can be patched, that’s what mods like Plutonium do actually :) But it still wouldn’t run on a Mac, which is the main point here. And the rest of the features, like split-screen being worked on currently, are nothing but a bonus on top.

comment 2w ago · link · parent

The thing is that both Wine and DXVK would still need the original x86 code to run through Rosetta. Which is exactly what I wanted gone. Here it’s all ARM64 before the game even starts. DXVK is also a Windows DLL that reaches Vulkan through Wine so without Wine I can’t really use it. And BO2 is 32-bit, so every Windows and D3D11 call has to be adapted anyway! Going straight to Metal ended up simpler :) No benchmark against them yet but it’s on my list! There is a short explanation in the README too if you're curious: https://github.com/adrbn/bo2-mac#pipeline

comment 2w ago · link · parent

Haha fair. I meant written from scratch, not taken from Wine. Claude did the typing, I did the steering and the playtesting :)

comment 2w ago · link · parent

Thanks a lot, really appreciate it! Also, remill supports SPARC too. So your geological system should be doable with the same approach. Good luck with it, happy to help if you get stuck :)

comment 2w ago · link · parent

Thanks a lot! The original exe is around 13 MB per mode, mine is more between 500 and 800 MB each. Basically every x86 instruction becomes a bunch of ARM64 ones, and there is also a lot of extra code for the CPU state. Still runs at 60fps tho, so as long as you have decent storage it's not that much of a problem :)

comment 2w ago · link · parent

Actually it wasn't really playable on M-series before. AppleGamingWiki lists it as unplayable on CrossOver and not supported on Rosetta 2. The only way was a Windows ARM VM in Parallels, and reports go from 1fps in matches on an M1 Max to 60-80fps on M3/M4 chips. On my base 2020 M1 it now runs at 51-60fps, natively, no Windows license or VM needed. That's the why :) https://www.applegamingwiki.com/wiki/Call_of_Duty:_Black_Ops... (Took me two minutes to find, human brain included :)

comment 2w ago · link · parent

The why is in my post actually, BO2 never came out on Mac. On M chips you'd have to go through CrossOver and Rosetta, here it's native ARM64 so I can fix things and add stuff like split-screen, which the PC version never had. Fair point on the CrossOver benchmark, I haven't done it yet. I'll add a why section to the README, thanks.

comment 2w ago · link · parent

Check the repo: the README already has a Method, Findings and Pipeline section, so that's kind of the start of a guide already.

If you want something simpler to begin with, look at N64Recomp (that's what gave us the PC ports of Zelda Majora's Mask) or XenonRecomp (Xbox 360, used for Sonic Unleashed), they're static recompilations too and way better documented than mine as of now haha. And to look inside an executable, Ghidra is free (made by the NSA, fun fact). A proper write-up might come at some point, but no promises on a date :)

Also, I had never done anything like this before either!

comment 2w ago · link · parent

Yes, it uses two already existing tools for the heavy lifting. Remill lifts the x86 machine code to LLVM IR, and LLVM then compiles that IR to ARM64. And no, nobody translates the assembly by hand luckily, not me nor the agent. All of these 150k functions go through this automatic chain I explained before.

What I wrote with Claude is basically everything else: custom LLVM passes, a hand-written runtime that replaces the Windows calls, a Direct3D 11 to Metal layer and the shader translation! Plus fixing the crashes one by one by iterating and playing. All details are in the Pipeline section of the README if you're interested: https://github.com/adrbn/bo2-mac#pipeline

comment 2w ago · link · parent

Well it took me almost 4 months using parallel Claude sessions, each one of them working on its own worktree. I also made a point of measuring before considering anything fixed, and I tested and played throughout the whole development so this way I knew the real impact of every change it was applying. I'm yet to start another similar project to see how things have changed in terms of guardrails, but it has not been a problem for me in the last month AFAIK. Sessions keep working without any problem and Codex (Astra) has also been of a great help in addition, when I did encounter some refusals with Claude. Also maybe (big maybe!) the fact the tool only works from a Steam copy helped, I guess.

11.

Show HN: Black Ops II statically recompiled to native ARM64 macOS(github.com ↗)

154 points · by adrbn · 2w ago · 68 comments