TalhaMudo/NFSU2Recomp

Public

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.

  • Stars370+33 tuần này
  • Forks28
  • Watchers5
  • Issues1
  • Ngày tạo13/10/2026
  • Cập nhật gần nhất03/12/2026
  • Ngôn ngữC
  • Giấy phép—
README.md35.8 KBRaw
NFSU2_native_readme.mp4

Need for Speed: Underground 2 on Mac — native Apple Silicon port, no Wine

Play Need for Speed: Underground 2 (NFSU2, 2004) natively on Apple Silicon Macs (M1 and later): no Wine, no CrossOver, no emulator, no virtual machine.

NFSU2Recomp is a static recompiler and runtime that turn the original Windows PC executable of the game (SPEED2.EXE, 32-bit x86, Direct3D 9) into a native ARM64 macOS app. The game's x86 machine code is lifted to C ahead of time and compiled with clang; Direct3D 9 is translated to Metal, DirectSound to CoreAudio. There is no Wine, no emulator, no JIT and no Windows involved at run time. On an M1 Pro, races run at 119 fps (the display's limit), against 10–15 fps for the same game under Wine.

This repository contains no game code and no game assets. It contains the recompiler and the runtime only. You need your own copy of the game. The C code generated from its executable is never committed. The prebuilt app on the Releases page contains the recompiled program but no game files: on first launch you point it at your own installation.

Race, native ARM64 build

Status

The game boots, reaches the menus, and races are playable with sound.

Area State
x86-32 → C lifter (integer, x87, MMX, SSE/SSE2, 3DNow!, string ops) 23,278 functions, 137 MB of generated C
Win32 layer (CRT startup, heap, TLS, threads, files, registry, window) working
Direct3D 9 → Metal, shader bytecode (vs/ps 1.x–2.x) → MSL working
DirectSound → CoreAudio, DirectInput (keyboard, mouse, game controllers) working
Videos (intro and story movies, decoded by the game itself) working
Windowed, fullscreen, Retina-native and 1080p widescreen working
Career mode: profile creation (name entry), save and load working
Double-clickable .app with a launcher window (./pack.sh) working
Optional "HD" build: MSAA (2× at 1440 lines and above, 4× below), SSR, ray-traced reflections working, see GRAPHICS_RESEARCH.md

Known limitations

  • Two builds of SPEED2.EXE

Nội dung README thuộc về TalhaMudo và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/TalhaMudo/NFSU2Recomp