NFSU2_native_readme.mp4
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.
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 |
- Two builds of
SPEED2.EXE
