urban-reign-macos

Urban Reign is a native macOS port of the PlayStation 2 brawler with 60 FPS, higher resolutions, and support for up to 8 fighters.

README

Urban Reign — native on Apple Silicon

The PS2 brawler recompiled into a native arm64 Mac app: 60 FPS, 3× resolution, up to 8 fighters on one Mac — and friends can join over Steam Remote Play Together.

macOS 60 FPS Renderer Based on License

Download · Build it · Performance · Online co-op · Troubleshooting · How it works

Urban Reign running natively on an Apple Silicon Mac, 61 FPS with the port's frame overlay

Note

This is the macOS / Apple Silicon branch of thiagordsfx/urban-reign-recomp. That project does the hard part: the Windows/Linux port, the recompiler, the runtime and the game research. This branch adds the macOS platform layer — arm64 build, Metal/MoltenVK presentation, app bundle, Steam integration and the performance work below. It is meant to go upstream.

Important

The game is not included. You need your own copy of Urban Reign for the PS2 (USA, SLUS-21209) as a disc image. Nothing from the disc is in this repository.

What this is

Urban Reign's PS2 code was translated into C++ ahead of time — static recompilation, no interpreter and no emulator front-end — and compiled as a normal Mac program. The game logic runs as native arm64 code; the graphics chip (GS) is PCSX2's Vulkan renderer running on MoltenVK inside the app's window.

The result is a real Urban Reign.app: double-click it (or press PLAY in Steam), and you get the game at 60 FPS in a resizable Mac window, with controllers, memory cards, save states and mods.

Urban Reign cutscene on macOS at 60 FPS

What works on macOS

Status
Boot, PS2 logo, intro, title, profile menuVerified on a retail SLUS-21209 image
Missions and fightsVerified (Mission 01), 59 FPS in-fight
60 FPS progressive scanVerified — see measurements
Internal resolution up to 3× (1920×1344) at 60 FPSVerified
16:9 widescreen, 4:3, FXAA, texture filtering, sharpeningImplemented (PCSX2 GS settings)
Controllers (SDL3), rumbleImplemented
8-player multitapImplemented, not tested by us
Memory cards, savestates (F5/F9)Verified
Mods: .dylib mods and PCSX2 .pnach patchesImplemented (CoopTool builds for arm64)
HD texture packs (PCSX2 format)Supported, not tested on this branch
Remote pads over UDP (Moonlight video)Implemented — see Over the network
Steam overlay + Remote Play TogetherSession/link/input work; Steam's macOS capture returns a placeholder (see below)

Quick start (Apple Silicon)

Requires an Apple Silicon Mac, macOS 14+, the Xcode command line tools and Homebrew.

Prebuilt (no game data): download the latest release — on first launch, right-click → Open, or xattr -dr com.apple.quarantine "Urban Reign.app".

Or build it:

git clone https://github.com/srikanthamsa/urban-reign-macos.git
cd urban-reign-macos

./tools/macos/install_deps.sh          # cmake, ninja, SDL3, shaderc, MoltenVK, Vulkan headers
cp ~/path/to/"Urban Reign (USA).iso" game/
python3 build.py                       # generate game code, build, play

build.py is a three-step menu: 1 recompiles the game code from your disc (a few minutes), 2 builds the app (the long part the first time), 3 plays. Non-interactive:

python3 build.py generate   # recompile the game code from game/*.iso
python3 build.py build      # build build/macos/bin/urban
python3 build.py play       # run it
Make it a double-clickable app
./tools/macos/make_app.sh
open "build/macos/Urban Reign.app"

The bundle is self-contained: binary, libpcsx2gs.dylib, MoltenVK, shaderc, resources, mods, memory cards and the disc image (copied from game/). It is ad-hoc signed, which is enough to run locally.

Optional: drop your own assets/UrbanReign.icns in the repository root before running make_app.sh to give the bundle an icon. That folder is not tracked in git (it is game art).

To play under Steam with the overlay, see Steam Remote Play Together.

60 FPS on Apple Silicon

The expensive part is not the recompiled game code — it is the VU (vector unit) microcode the game uploads at run time for geometry and skinning. Interpreting it costs millions of FMACs per frame on the CPU.

The fix is to capture those microprograms and compile them ahead of time. Capture is automatic: the app writes every uploaded VU image to vu_capture/. Play the missions and modes you care about once, then:

python3 build.py aot        # compile every captured image into generated/vu1 and relink

Measured on a MacBook Air M4 (16 GB), macOS 27, InternalResolution=3 (1920×1344 from 640×448):

SceneInterpreterAOT VU library
Intro / cutscenes43 FPS, 80% speed57–60 FPS, 97–100%
Mission 01 fight (4 fighters)~17 FPS, 83% speed59 FPS, 98% — overlay: Game 59 · Screen 59 · Speed 98% · worst frame 31 ms
Cutscene, frame overlay—Game 60 · Screen 60 · Speed 100% · worst frame 20 ms

InternalResolution=4 (2560×1792) is sharper but measured ~55 FPS / 91%; 3 is the 60-FPS sweet spot on this machine, and it is the macOS default. So are StartMaximized=1, FXAA=0 (the 3× image is already clean), TextureFiltering=3, Sharpening=1 and immediate presentation (PS2X_PCSX2_VSYNC=0, one frame of latency).

The capture is per VU program, not per mission: one play session can cover every scene you unlocked. The first fight loads a different program from the cutscenes, so capture while a fight is on screen.

Over the network

Two ways to play with friends. The first one works today; the second depends on Steam.

Moonlight for video + remote pads for controllers

Stream the game with Sunshine on the Mac and Moonlight on the friend's PC, over Tailscale (or LAN). Audio and video arrive through Moonlight; the controller travels separately:

# friend's PC
python -m pip install -r tools/remote-pad/requirements.txt
python tools/remote-pad/send_pad.py <host-tailnet-ip> --player 2

The host listens on UDP 50505 and maps player N to SDL-(N-1), so the pad takes over Pad2, Pad3, Pad4 — a real controller in game, with sticks, triggers and d-pad, no key mapping. Packets are 13-byte absolute state at 120 Hz, so packet loss just waits for the next snapshot. See tools/remote-pad.

Moonlight alone can only send keyboard and mouse on a macOS host (no virtual-gamepad entitlement), so pair it with the sender above, or give each player a keyboard cluster.

Steam Remote Play Together

Steam only offers Remote Play Together for games it knows about, so a non-Steam shortcut gets no invite button. tools/rpt-mac fixes that: it talks to the running Steam client through steamclient.dylib and drives the same remote-play interface the overlay uses, then prints one connect link per friend.

cd tools/rpt-mac && make

# 1. Add the app to Steam: Games > Add a Non-Steam Game > Browse > your Urban Reign app
# 2. Find the appid Steam assigned to it:
./rptmac apps "Urban Reign"
2511043820	Urban Reign	/Users/you/UrbanReign.app/Contents/MacOS/urban

# 3. Start the game from the Steam library, then:
./rptmac host 2511043820 game 2
https://s.team/remoteplay/connect/9uGCLm
https://s.team/remoteplay/connect/Jb2xQr

Each link is for one guest; they open it in Steam or the Steam Link app. Up to 3 guests, as usual for Steam. remote-play.command is the same flow as a double-clickable window.

Notes from testing (2026-11-13, a real guest): the group, the link, the guest connection, per-guest input flags and the guest's Xbox pad all work — Steam log shows the pad being forwarded. What fails is Steam's host capture: Capture method set to Desktop Placeholder, nan FPS, ~0.46 Mbit/s outbound, so the guest sees black with "input is temporarily disabled while the host is busy". It survived granting Screen Recording to Steam, a full restart and a windowed game. Treat RPT hosting on macOS as blocked on Steam until Valve fixes capture; use the Moonlight path above.

Urban Reign as a non-Steam shortcut in the Steam library, with custom grid art

Two macOS quirks worth knowing:

  • A shortcut whose executable path contains spaces makes Steam fail to spawn it. Point the shortcut at a space-free path (for example a symlink such as ~/UrbanReign.app).
  • ~/Downloads and ~/Desktop are TCC-protected: a Steam-launched app cannot read a disc image that lives there. Keep the image inside the app bundle (Contents/MacOS/game/) or in the repository's game/.

Controls

PS2Keyboard
✕ / ○ / □ / △↓ / → / ← / ↑
Left stickW A S D
L1 / R1 / L2 / R2Q / E / 1 / 3
L3 / R3F / G
START / SELECTEnter / Tab
Key
F11Fullscreen
F3FPS/speed overlay
F5 / F9Quick save / load state
F2In-game mod menu
F4Reload .pnach patches

Controllers work out of the box (SDL3); buttons, per-player assignment and the multitap are in the Controls tab of the launcher / controls.ini.

Troubleshooting

SymptomCause and fix
"Urban Reign.app" is damaged and can't be openedQuarantine on a downloaded build. xattr -dr com.apple.quarantine "/Applications/Urban Reign.app", or build it yourself.
[CDIMAGE] cannot open ...isoThe image is unreadable from the sandboxed/TCC-protected folder, or is missing. Copy it into game/ or the bundle.
Game runs but Steam shows nothing / no overlayLaunch it from the Steam library. A shortcut whose path contains spaces can make Steam fail to spawn it (see above).
~17–20 FPS in fightsNo AOT VU library yet. Play once, then python3 build.py aot.
Black window / no pictureLeave Renderer=pcsx2. The native OpenGL GS is Windows-only and the software GS is a diagnostic fallback.
First run asks to format the memory cardChoose Yes; the card is created under build/macos/bin/memcards/.
cmake cannot find MoltenVK/shadercRe-run ./tools/macos/install_deps.sh; CMake copies both dylibs next to libpcsx2gs.dylib.

Build details

tools/macos/install_deps.sh   toolchain and libraries (Homebrew)
tools/macos/check_port.sh     no-disc checks: build, MoltenVK device, raylib + NSView + GS present
tools/macos/make_app.sh       wrap the build into Urban Reign.app (optional icon)
tools/macos/make_release.sh   ZIP for distribution: no image, no saves, no settings
tools/macos/aot_vu.sh         one guided capture session, then the same AOT compile
tools/rpt-mac/                Remote Play Together for non-Steam shortcuts
docs/MACOS.md                 the long version: renderer, verification, limits

python3 build.py release produces build/release/urban-reign-macos-arm64.zip (26 MB, no game data).

No-disc verification

Two targets prove the graphics plumbing without owning the disc:

./tools/macos/check_port.sh
# pcsx2_gs_test_mac: MoltenVK device + present
# ps2x_gs_window_smoke: raylib NSWindow + NSView/CAMetalLayer child + GS presents -> "GS window attached: yes"

How it works

disc image ──► ps2_recomp ──► generated/*.cpp ──► clang (arm64) ──► urban
                                              │
             PS2 GS packets ──► libpcsx2gs.dylib (PCSX2 Vulkan) ──► MoltenVK ──► CAMetalLayer
             PS2 VU microcode ──► vu1_recomp (AOT) or interpreter
  • Recompilation — the disc's MIPS code becomes C++ (one function per guest address), linked against a small PS2 runtime that implements the hardware registers, DMA/VIF, IOP and GS packet path.
  • macOS platform layer — runtime/ps2xRuntime/include/runtime/host_thread.h abstracts threads, Windows-only debug tooling is compiled out, and sse2neon translates the runtime's SSE intrinsics to NEON.
  • Presentation — raylib owns the window and input; PCSX2's GS renders into an NSView/CAMetalLayer child of that window (hit testing disabled, so input stays with GLFW/raylib). Shaders go through shaderc, Vulkan through MoltenVK.
  • Threading — IOP and VU1/GS run on their own threads by default, like PCSX2's MTVU.

Everything else — settings, launcher, mods, savestates, the recompiler — is described in docs/ADVANCED.md.

Extras

  • HD texture packs (PCSX2 format): the Urban Reign Enhanced HD Textures Pack goes in a textures folder next to the executable (build/macos/bin/textures/SLUS-21209/replacements), or inside the app bundle.
  • Mods: .dylib mods and PCSX2 .pnach patches live in mods/; the CoopTool that ships with the port builds for arm64 and adds up to 8 fighters locally. Its options are in the in-game menu (F2).
  • Your own mods: the mod kit.

Port status map

Every Sony SDK library and PS2 hardware component the game links, colored by status — click for the details.

Port status map

Limits

  • The native OpenGL GS backend is not ported; PCSX2/Vulkan is the supported renderer.
  • Windows-only tools (native profiler, F10 combat capture, hardware watchpoints) are compiled out.
  • The app is ad-hoc signed. Distributing it needs a Developer ID signature and notarization.
  • 8-player multitap, HD texture packs and guest-side Remote Play Together are implemented but untested here.
  • The launcher UI is still the Windows/Linux one: the macOS build opens the game directly.

Other platforms

The upstream project ships Windows x64 and Linux x86-64 builds with the same feature set; this branch does not change them. Windows/Linux downloads, the launcher, release packaging and the full documentation live in thiagordsfx/urban-reign-recomp and docs/ADVANCED.md, docs/LINUX.md.

Credits

Urban Reign © Namco / Paradigm Entertainment. Fan project, not affiliated with or endorsed by Bandai Namco. No game files are distributed; screenshots show the game running from a retail copy.

Code is GPL-3.0 — see LICENSE.