RepositoryCTRTürkiye
TalhaMudo

TalhaMudo/NFSU2Recomp

Play Need for Speed: Underground 2 natively on Apple Silicon Macs (M1+). Static recompilation of the PC game (x86, Direct3D 9) to ARM64 + Metal: no Wine, CrossOver or emulator; 119 fps vs 10-15 fps under Wine. Bring your own copy; no game code or assets included.

335stars
26forks
1issues
5views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: binary-translation

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: direct3d9

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: recompilation

#1 Repository Của Tuần

🚀 NFSU2Recomp: Chơi Need for Speed: Underground 2 native trên Apple Silicon

Biến game PC 2004 thành ứng dụng Mac ARM64 mượt mà — không Wine, không emulator, không virtual machine.

NFSU2Recomp là một static recompiler và runtime được phát triển bởi TalhaMudo, nhằm mang game Need for Speed: Underground 2 (NFSU2) về chạy native trên các Mac tích hợp chip Apple Silicon (M1 trở lên). Thay vì sử dụng Wine, CrossOver hoặc bất kỳ emulator nào, dự án này thực hiện việc lift toàn bộ mã máy x86-32 (32-bit) của executable gốc SPEED2.EXE thành mã C, sau đó biên dịch lại bằng clang thành một file Mach-O ARM64 thuần túy. Direct3D 9 được dịch sang Metal API của Apple, trong khi DirectSound và DirectInput lần lượt được chuyển đổi thành CoreAudio và CoreInput.

✨ Điểm nổi bật

  • Static recompilation không cần Wine: Toàn bộ mã x86 được lift thành C trước khi biên dịch, không có JIT hay thành phần giả lập nào chạy tại thời điểm thực thi.
  • Hiệu suất vượt trội: Trên M1 Pro, game đạt 119 fps (giới hạn màn hình), trong khi cùng một bản game chạy dưới Wine chỉ từ 10–15 fps.
  • Chuyển đổi đồ họa và âm thanh: Direct3D 9 → Metal, shader bytecode vs/ps 1.x–2.x → MSL; DirectSound → CoreAudio; DirectInput → CoreInput.
  • Hỗ trợ hiển thị linh hoạt: Windowed, fullscreen, Retina-native và 1080p widescreen đều hoạt động.
  • Build "HD" có thể chọn: Bao gồm MSAA (2× từ 1440 line trở lên, 4× dưới đó), SSR và ray-traced reflections.
  • Khôi phục bảng định vị (relocation): Bảng định vị bị zero hóa trong executable được khôi phục bằng công cụ reloc2.py, giúp xác định chính xác 91.106 địa chỉ tuyệt đối.
  • Chế độ sự nghiệp: Tạo hồ sơ, lưu và load đều hoạt động; game có thể khởi động và chạy đến menu.

💡 Vì sao值得关注

Điểm đáng chú ý nhất của NFSU2Recomp là tiếp cận static recompilation — một phương pháp khá khó và ít được áp dụng so với các giải pháp động như Wine hay emulation. Việc lift x86 thành C và biên dịch trước cho ARM64 cho phép loại bỏ hoàn toàn lớp tương thích Windows, từ đó giảm thiểu overhead và đạt hiệu suất gần như native. Khả năng chuyển đổi Direct3D 9 sang Metal cũng là một thành tựu lớn, vì đây là API đồ họa rất phức tạp và thường mất nhiều công sức để tương thích.

Dự án không chỉ đơn thuần là "chạy game trên Mac", mà còn mang lại trải nghiệm mượt mà, ổn định với âm thanh và điều khiển bàn phím/chuột. Tuy nhiên, cần lưu ý rằng bạn phải sở hữu bản game gốc để sử dụng — repository không chứa code hay asset của game. Đây là một công cụ lý tưởng cho người dùng Apple Silicon muốn trải nghiệm các game PC cũ mà không cần cài đặt Wine hay cấu hình/boot Windows.

#GamePort #AppleSilicon #StaticRecompilation #Metal #Recompilation #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC
ly05010419/MacNativeGames

Play your own Tears of the Kingdom and Breath of the Wild natively on Apple silicon Mac, iPhone and iPad. Not an emulator: the game's ARM64 code runs directly, NVN rebuilt on Metal. Bring your own game.

8.4k
Nov 29, 2026
RepositoryC
Lucas-blip-png/dkb-pc-recomp

Static recompilation of Donkey Kong Bananza (Switch 2) to native Windows and Linux with Vulkan. 0.5.2 out: TOTK to DKB rename, Feast Layer muck fix, 4 GB cards, Switch 2 controllers on USB; one-file Windows launcher. Requirements: docs/requirements.md. Roadmap: #10. No game files included.

1.4k
Nov 26, 2026
RepositoryC#
jhaizhou-ops/S2Arm

Run your own Switch games natively on iPhone, iPad and Mac: game code rewritten to ARM64, graphics direct to Metal, one app for the whole library. Bring your own games and keys. 把你自己的 Switch 游戏原生带到 iPhone / iPad / Mac。

4.0k
Nov 27, 2026
RepositoryC
daniel-madrid-07/weeping-of-the-empire

Zelda: Tears of the Kingdom (TotK) 1.0.0 recompiled to native Windows and Vulkan. Frame cap up to 240, DLSS option, mouse and keyboard. Open source, mostly written by AI agents. You build it from your own dump; no game files included. Measured on one PC so far.

346
Nov 7, 2026
RepositoryC
raulzrrs/letsgo-recomp

Native Windows port of Pokémon: Let's Go, Eevee! (Switch v1.0.0) by static recompilation, built on LAS Recomp. No game files included.

328
Nov 21, 2026
RepositoryC
NoRain211/doaxvb-re

Native Windows port of Dead or Alive Xtreme Beach Volleyball (Xbox), built by static recompilation with a hand-written runtime. Requires your own copy of the game.

278
Nov 23, 2026
RepositoryJava
kksimp/Mac.apk

Mac.apk: Run Android apps natively on Apple Silicon Macs

4.5k
Nov 26, 2026
RepositoryC++
tmcleroy/cps2recomp

CPS-2 Recomp: unofficial native PC ports of Capcom CPS-2 arcade games (Street Fighter Alpha 2, Super Puzzle Fighter II Turbo, Vampire Savior) via static recompilation, with training modes, in one launcher: macOS, Linux, Steam Deck, Windows. Requires your own ROM sets. Beta.

219
Nov 26, 2026
RepositoryC
unicorn-engine/unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)

9.6k
Nov 10, 2026