motorstorm-apocalypse-pc
MotorStorm Apocalypse PC is a native Linux port of MotorStorm Apocalypse for PlayStation 3 using Vulkan and static recompilation.
- Type: PC port
- Game: MotorStorm: Apocalypse
- Runs on Linux
- By millennium-h4x0r
- Latest release v0.3.0, 2026-11-29
- Source: https://github.com/millennium-h4x0r/motorstorm-apocalypse-pc
README
MotorStorm Apocalypse — native PC port (Linux, Vulkan)
MotorStorm Apocalypse PC port · native on Linux · PS3 static recompilation · Vulkan

MotorStorm Apocalypse (PS3, BCES-00484, version 01.00) running natively on Linux, without an emulator. The game's code, PowerPC (PPU) and SPU, is translated to C before compilation by static recompilation with ps3recomp. The PS3 system is reimplemented, and the GPU (RSX) runs the game's own shaders translated to Vulkan.
No game files come with this project. To play you need your own copy of the game, dumped from your own disc. The build turns your executable into code on your machine, and that code must not be distributed.
1440p, native MLAA anti-aliasing, 60 fps simulation (shown here scaled to 1280×720).
Status
| Area | State |
|---|---|
| Lift (PPU + SPU) and link | ✅ 76,362 PPU functions plus the SPU job and task images (ps3recomp v0.18.0) |
| Boot, videos, menus | ✅ Boots to the main menu, navigable with a pad (intro movies decode and play) |
| Races, single player | 🔧 Races run start to finish with correct lighting, shadows and anti-aliasing; every track is being checked. ~60 fps at 720p and 1440p on a Ryzen 9 5950X (median frame 16.7 ms); dips in physics-heavy moments are being worked on |
| Split-screen (2–4 players) | 🔧 Races start and render correctly; 4 players run at ~34 fps (limited by the GPU command thread) |
| Audio, saves, controllers | 🔧 Saves and controllers work; race audio plays (the firmware's MP3 decoder is lifted from your own firmware) |
| Port menu, options, up to 4K, 60 fps | ✅ Start screen with settings, save backups and game set-up; in-game menu (F1); resolution scale 1–4 (720p to 5120×2880); sharpening, brightness, gamma; 60 fps simulation (or 30 as on the PS3); performance HUD (F10) |
| Online play | ❌ Not planned (the servers are gone) |
| Windows | ❌ Not yet: the Vulkan backend is Linux-only |
Plan and progress: docs/ROADMAP.md. Technical notes: docs/NOTES.md.
What you need
Game and firmware (all from your own hardware and discs — see docs/REQUIRED_FILES.md for the details):
- A disc dump of MotorStorm Apocalypse, BCES-00484 (Europe), version 01.00. No other region or version is supported: the port's addresses are those of this executable. Game updates (1.01, 1.02) are not used.
- RPCS3, only to decrypt the game's executable and to install the official PS3 system software (firmware). RPCS3 is not used to run the game.
- The official PS3 firmware file (
PS3UPDAT.PUP) from Sony's site, installed in RPCS3. The port reads fonts and system files from it, and lifts its MP3 decoder for the race music.
PC:
- Linux x86-64. Developed on Pop!_OS 24.04 (Ubuntu 24.04 base).
- A CPU with AVX2 (AVX-512 is used when present). A fast 8-core or larger CPU is needed for 60 fps; the reference machine is a Ryzen 9 5950X.
- A Vulkan GPU and driver.
- A game controller (Xbox, PlayStation or any SDL-supported pad). On Linux there is no keyboard control.
- About 30 GB of disk space (the game itself is ~19 GB) and at least 16 GB of RAM to compile; the translated PPU code is very large.
Packages (Ubuntu / Debian / Pop!_OS names):
sudo apt install git build-essential cmake ninja-build clang python3 python3-venv \
libsdl2-dev libvulkan-dev glslang-dev glslang-tools libpng-dev libfreetype-dev \
zlib1g-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev
GCC 13 and clang 18 are what the port is built with; the lifted PPU code is
compiled with clang (clang++ must be on PATH), the rest with the system
compiler. FFmpeg is loaded at run time for the intro videos.
Installing from the release download (Quiver)
The release
download, motorstorm-apocalypse-pc-linux-x86_64.tar.gz, is what
Quiver installs. It holds no game code: it is
this repository plus motorstorm-apocalypse.sh, which on the first start
opens a set-up window, in the style of the game's own menu and driven by a
controller, the keyboard or the mouse (bin/, built from
work/setup/setup.cpp; it holds no game code), which walks through:
- asks for an install folder (the build, saves and settings live there, so an update of the download keeps them);
- checks the packages listed above and offers to
apt installthe missing ones; - asks for your dump (the folder holding
PS3_GAME) and your decryptedEBOOT.elf, and checks its hash; - checks for the firmware installed in RPCS3;
- runs
scripts/setup.sh,scripts/lift.shandscripts/build.shin the install folder (about 25 minutes on a fast 16-core PC; the log iswork/runs/install-*.log).
Without a desktop (or with NO_GUI=1) the same steps run in a terminal.
Later starts go straight to the game. A new download is copied over the
install and built again. motorstorm-apocalypse.sh --setup runs the set-up
again, --where prints the install folder.
Installing
1. Get the code
git clone https://github.com/millennium-h4x0r/motorstorm-apocalypse-pc.git motorstorm_apoca
cd motorstorm_apoca
scripts/install-hooks.sh # optional: blocks commits of game files
2. Dump the game
Dump your disc with your own PS3 (for example with a backup manager on a
console that can run one) or with a compatible Blu-ray drive. You need the
whole PS3_GAME/ folder: PARAM.SFO, the icons, and USRDIR/ with
EBOOT.BIN, ms3.psarc, budgets/ and ui/.
3. Install the firmware in RPCS3
Install RPCS3 (Flatpak or native), then File → Install Firmware and pick
PS3UPDAT.PUP. The port finds it on its own in either place
(~/.var/app/net.rpcs3.RPCS3/config/rpcs3/dev_flash or
~/.config/rpcs3/dev_flash). Elsewhere, point PS3_DEV_FLASH at the
dev_flash folder.
4. Decrypt the executable
USRDIR/EBOOT.BIN is encrypted. In RPCS3: Utilities → Decrypt PS3
Binaries, select EBOOT.BIN. Keep the result as EBOOT.elf. It must be:
sha256 387c9fb795e1709bd2cf1a1145c0548a0fc911a295aa860a27b41441a15418ff
size 21318304 bytes
sha256sum EBOOT.elf
5. Put the game files in disc/
disc/ is ignored by git. Copy the dump there, or link to it so the 19 GB
are not copied (adjust SRC):
SRC=/path/to/your/dump/PS3_GAME
mkdir -p disc/PS3_GAME/USRDIR
for f in "$SRC"/*; do [ "$(basename "$f")" = USRDIR ] || ln -s "$f" disc/PS3_GAME/; done
for f in "$SRC"/USRDIR/*; do [ "$(basename "$f")" = EBOOT.BIN ] || ln -s "$f" disc/PS3_GAME/USRDIR/; done
cp /path/to/EBOOT.elf disc/PS3_GAME/USRDIR/
The result:
disc/PS3_GAME/
├── PARAM.SFO, ICON0.PNG, PIC0.PNG, PIC1.PNG, SND0.AT3, ...
└── USRDIR/
├── EBOOT.elf # the decrypted executable (a real file, not a link)
├── ms3.psarc
├── budgets/
└── ui/
6. Build
scripts/setup.sh # fetches ps3recomp at the pinned commit, applies this port's patch, Python venv
scripts/lift.sh # translates the PPU and SPU code of YOUR EBOOT.elf (checks its hash)
scripts/build.sh # compiles into work/port/build-vk
lift.sh takes about 4 minutes (the PPU lift runs on up to 16 processes, PORT_LIFT_JOBS to change it). build.sh runs up to 8 jobs in parallel
(fewer on a machine with fewer CPU threads or less free memory: about 3 GB a
job), inside a memory cap of 85% of the free memory. With 4 jobs a fresh
build took about 35 minutes on a Ryzen 9 5950X; with more cores and memory,
JOBS=16 or more is faster.
JOBS=<n> and PORT_BUILD_MEM=<size> (with a unit, e.g. 24G) override it.
A build that hits the cap is stopped rather than freezing the machine; run it
again with fewer jobs and it carries on where it stopped.
Optional: work/pgo/ppu.profdata and work/pgo/spu.profdata, when present,
are used for profile-guided optimisation. They are not shipped; the port runs
without them, somewhat slower.
7. Play
work/play.sh # start screen, then the game
work/play.sh --play # straight into the game
Connect the controller before starting. Each run's log goes to
work/runs/play-<time>.log. Saves and settings stay in the repository folder
(hdd0/, user/), all git-ignored.
Settings and keys
The start screen has Play, Settings, Saves, More and Quit. In the game, the controller's home button (or Select+Start together, or F1) opens a short menu over the game: Resume, Settings (display and picture, performance, controller) and Quit game. Everything works from a controller.
- Settings: display mode, window size, picture shape, VSync, resolution (720p to 5120×2880), scaling filter, sharpening, brightness, gamma, anisotropic filtering, full-resolution particles; frame rate, FPS limit, performance HUD; voice and text language; the controllers the game sees.
- Saves: back up, restore, export to a
.zipand import one. Play backs the saves up first (when they changed) and keeps the newest eight; both can be changed there. - More: where your game is and what the port found there, mods, the keys, the log and save folders.
If the game's folder or EBOOT.elf is missing or is not the right one, the
port opens on a set-up page that says what is missing and how to get it,
and lets you choose the folder; it is kept in settings.ini ([game] path),
and PS3_GAME_DIR overrides it.
Everything is saved to user/settings.ini as you change it; the file can
also be edited by hand (a variable set in the environment wins over it):
| Setting | Values |
|---|---|
scale | 1 = 720p, 2 = 1440p, 3 = 4K, 4 = 5120×2880 |
window | auto (the resolution's size), fit (the screen), or WxH |
fullscreen, vsync, stretch, display | full screen; vsync; stretch instead of black bars; which monitor |
filter, sharpen | linear or nearest; sharpening 0–100 |
brightness, gamma | −50–50; 50–200 (100 = unchanged) |
frame_rate | 60, or 30 as on the PS3 |
fps_limit | 0 = none |
fps_counter | performance HUD: 0 off, 1 detailed, 2 compact |
fullres_particles, aniso | particles at full resolution; anisotropic filtering 2–16 |
[saves] backup_on_play, keep_backups | back up on Play; automatic backups kept |
[game] path | the game's folder, when it is not disc/ |
| Key | |
|---|---|
| The controller's home (PS / Guide) button, Select+Start together, or F1 | in-game menu: Resume, Settings, Quit game (Home, Up, Cross, Cross quits) |
| D-pad or stick, Cross, Circle, L1 / R1 | in the menus: move, select, back, previous / next tab (keyboard: arrows, Enter, Esc, PgUp / PgDn) |
| F10 | performance HUD: detailed / compact / off |
| F11 or Alt+Enter | full screen and back |
| Esc | quit |
On a scaled Wayland desktop (125%, 150%, ...) the window is sized in real
pixels, so 1440p is 2560×1440 screen pixels. PS3RECOMP_VK_X11=1 uses
Xwayland instead of native Wayland.
Troubleshooting
lift.shwarns about the sha256: the executable is not the BCES-00484 01.00 one, or it was not decrypted. Only that version works.- No sound in races / missing fonts: the firmware is not installed in
RPCS3, or
PS3_DEV_FLASHdoes not point at itsdev_flash. - The build is killed: the memory cap was hit; lower
JOBSor raisePORT_BUILD_MEM(with a unit, e.g.24G). - No controller: connect it before starting; SDL picks controllers up at launch.
- Bugs: include the
work/runs/play-<time>.logof the run. Do not attach game files or anything underwork/src/orwork/port/spu/— that is the game's code.
Contributing
See docs/GITHUB_SETUP.md. Changes to ps3recomp go in
work/patches/ps3recomp.patch (scripts/make_patch.sh). The tests are in
work/tests/ (work/tests/run_all.sh).
Credits
See CREDITS.md.
License
MIT for the code in this repository; see LICENSE. MotorStorm Apocalypse and its content belong to their owners (Evolution Studios / Sony Interactive Entertainment). This is a research and preservation project; it contains no game code or assets.