PlayStation 2 games as native applications, by static recompilation.
luisbraganca.github.io/ps2n · Releases
PS2Native (`ps2n`) converts a PlayStation 2 game into a native application. The game's code is translated to C++ ahead of time and compiled on your own computer, by the compiler PS2Native brings, into a folder that plays the game. The console around that code (graphics, sound, storage, timing) is the core of [PCSX2](https://pcsx2.net): the translated code takes the place of PCSX2's recompilers for the console's two processors and its two vector units. You provide your own game and your own BIOS dump. Neither is included here, and nothing generated from them is. ## Download **PS2Native 0.3**, a pre-release, published on 2026-11-22: [the release, with its notes](https://github.com/luisbraganca/ps2n/releases/tag/v0.3). | | File | Runs on | |---|---|---| | Windows | `PS2Native-0.3-windows-x64.zip` | Windows 10 (version 1803 or later) or Windows 11, 64-bit | | Linux | `PS2Native-0.3-linux-x64.tar.xz` | 64-bit Linux with glibc 2.35 or later (Ubuntu 22.04, Linux Mint 21 and later) | Nothing to install: unpack it and start **PS2Native**. Its wizard takes five steps: the game's disc image, in any format PCSX2 plays; the BIOS; the settings, which are PCSX2's own pages for the game; the recompile, a few minutes; and the game's folder, which plays the game from then on. A game made with 0.1 or 0.2 is brought up to date from the wizard's first step ("Games made earlier..."), and compiles itself again before it next starts. It needs a processor with SSE4.1, a graphics driver with Vulkan (or another renderer chosen in the game's settings), and about 1 GB of disk for each game on Windows, 1.5 GB on Linux: each game's folder has its own copy of the compiler. ## Status A preview. It has been tried with five games, the European releases of Killzone, 007: Agent Under Fire, Gran Turismo 3: A-Spec, Jak and Daxter: The Precursor Legacy and Silent Hill 3. Every other game is untried and may not work. - **Windows x64.** Everything measured was measured there, on Windows 11. PCSX2 gives the console's second vector unit (VU1) a thread of its own by default, on a computer with three cores or more, and 0.3 does too, wherever PCSX2 would. On the maintainer's own sessions played back, a compiled game as 0.3 has it takes 0.94 to 1.00 times the time of stock PCSX2 with its VU thread on, built as PCSX2's releases are (Jak and Daxter 0.97, Gran Turismo 3 1.00, Agent Under Fire 0.95, Killzone 0.94). 0.2, which kept VU1 on the main processor thread, took 1.02 to 1.65 times that (and 0.98 to 1.00 times the time of stock PCSX2 with VU1 on its main thread too). - **Linux x64.** Built and tested only inside WSL 2 (Ubuntu 22.04) so far, every test passing there, and games made and played there. One game was timed, Jak and Daxter: as 0.3 has it, 0.99 times the time of stock PCSX2 with its VU thread on, where 0.2 took about 2.2 times it. Nothing is known to work on a Linux machine of its own yet. - **What a compiled game is held to.** A run on PS2Native is compared with the same run on stock PCSX2 at every point where the two can be compared, and with recordings made on a console: 543 tests. - **No recompiler for PS2 code is in a game's folder.** Code a session meets for the first time (some games load theirs from their data) runs interpreted, slower, with a notice over the picture, and is compiled when you close the game. What was done and measured, step by step: the proof of concept ([docs/poc-log.md](docs/poc-log.md)), the first games ([docs/game-log.md](docs/game-log.md), [docs/phase3-report.md](docs/phase3-report.md)) and the application ([docs/app-log.md](docs/app-log.md)). ## Building it PS2Native builds inside PCSX2's own CMake project, with PCSX2 `v2.9.189` as a submodule that is never edited (`git submodule update --init --depth 1`). What PS2Native changes of PCSX2's code is in [patches/pcsx2](patches/pcsx2/), applied to copies of the files concerned when it is built. - **Windows:** Visual Studio or its Build Tools with clang-cl, CMake and Ninja, and PCSX2's Windows dependency package in `deps\windows-x64` ([docs/poc-log.md](docs/poc-log.md) says where it comes from). `scripts\windows\build.ps1` builds, and `scripts\windows\test.ps1 -Bios