Forgotten Sands Recompiled
Forgotten Sands Recompiled is a native PC port of Prince of Persia: The Forgotten Sands for Windows and Android with real high-resolution rendering and 60 or 120 frames per second.
- Type: PC port
- Game: Prince of Persia: The Forgotten Sands
- Runs on Windows
- By retrogameworld
- Latest release v1.2.1, 2026-11-28
- Source: https://github.com/retrogameworld/ForgottenSandsRecomp
README
Forgotten Sands Recompiled
Version 1.2.1 - see the changelog.
An unofficial native port of Prince of Persia: The Forgotten Sands (Xbox 360) for Windows PC and Android, made by static recompilation. The game's Xbox 360 program was translated into native x86-64 and ARM64 code, and the console's graphics, sound, file and system calls were rebuilt with Vulkan and SDL. It is not an emulator: the game runs as a normal program.
No game files are included. You need your own Xbox 360 disc of the game, dumped to a disc image (.iso).
This project is not affiliated with or endorsed by Ubisoft. Prince of Persia is a trademark of Ubisoft Entertainment.
Features
- Runs natively on Windows 10 / 11 (64-bit), Vulkan graphics
- Real high-resolution rendering: the game's 720p picture is drawn at your screen's resolution (1080p, 1440p, 4K) or any size you choose, not upscaled
- 60 and 120 frames per second (or uncapped), with the game speed unchanged
- Smooth menus and HUD at high frame rates (the game's Flash menus are blended between their own 24-30 fps frames)
- FXAA anti-aliasing, borderless / exclusive fullscreen / windowed
- PlayStation button pictures and PC wording in the menus and tutorials
- The boot logos can be skipped
- Many fixes over the original at high frame rates (camera close-ups, shadow cascades, sun glare, effects)
- Shaders are translated in the background and kept in a cache, so later starts load faster
- The game's 40 achievements, with an on-screen notice when one unlocks (see Achievements)
A controller is required (any XInput or PlayStation controller that SDL recognises). Keyboard and mouse are not supported.
Requirements
- Windows 10 or 11, 64-bit
- A CPU with AVX2 (Intel 4th gen / AMD Ryzen or newer)
- A GPU with Vulkan 1.2 and up-to-date drivers
- About 6 GB of free disk space next to the game (the disc image is unpacked once)
- Your own disc image of the Xbox 360 disc release of Prince of Persia: The Forgotten Sands (title ID 5553083E). The program checks that the game's executable is exactly the version it was made from.
Installation
- Download
ForgottenSandsRecompiled-Windows-x64.zipfrom the Releases page and unpack it into a folder of its own (for exampleC:\Games\Forgotten Sands). AvoidC:\Program Files(the game writes its saves next to itself). - Put your disc image (
.iso) of the game into that same folder. - Start
ForgottenSandsRecomp.exe. At the first start the disc image is unpacked into agamefolder (about 5 GB, usually under a minute). After that the.isois no longer needed; you can move or delete it.
If you already have the game unpacked (the disc's files, with default.xex in them), you can copy those files into a
game folder next to the exe instead of using a disc image.
Android
The Android version is the same port built for 64-bit ARM. It was made and tested on the AYN Odin 3 (Snapdragon 8 Elite), where it runs at 1080p and mostly 60 fps (50-60 in the busiest fights).
Requirements: Android 11 or newer, 64-bit ARM, Vulkan 1.1 (a recent Snapdragon is recommended), about 6 GB of free space, and a controller (a handheld's own controls or a paired controller; there are no touch controls).
- Download
ForgottenSandsRecompiled-Android-arm64.apkfrom the Releases page and install it (allow installing from your browser or file manager when Android asks). - Start Forgotten Sands and choose your disc image (
.iso) with the file picker. It is unpacked once into the app's own folder (Android/data/com.fsrecomp.forgottensands/files/game). You can also copy the.iso(or an already unpackedgamefolder) intoAndroid/data/com.fsrecomp.forgottensands/filesfrom a PC first. - The start screen has Play, Settings and Quit. Settings: resolution (screen size, 1600x900 or
1280x720), frame rate (60, 30, 120 or no limit), smooth edges and vibration. They are kept in
settings.tomlin the app's folder.
After unpacking, the .iso can be deleted. Saves are kept in the app's user folder; uninstalling the app removes
them together with the unpacked game.
Making a disc image
Dump the disc with an Xbox 360 that can read discs to a USB drive or network (for example with a dashboard file manager), or with a compatible PC DVD drive and a dumping tool for Xbox 360 discs. The image should be a full disc image (about 7.3 GB) or a trimmed XISO; both are supported. Downloaded copies are not supported and must not be used.
Settings
All settings are in settings.toml next to the exe. Open it with Notepad; every option is explained inside. Changes
apply at the next start. The most important ones:
| Setting | What it does |
|---|---|
resolution | "auto" (your screen's resolution, default), "1080p", "1440p", "4k" or any "WIDTHxHEIGHT" |
fps_limit | 120 (default), 60, or 0 for no limit |
vsync | true = no tearing, the screen's refresh rate is the upper limit |
display_mode | "borderless" (default), "fullscreen" or "windowed" (Alt+Enter switches) |
antialiasing | "fxaa_extreme" (default), "fxaa" or "off" |
vibration | controller rumble on / off |
reset_achievements | true = clear all achievements at the next start (saves are not touched); turns back to false by itself |
Saves and the shader cache are kept in the user folder next to the exe, the log in ForgottenSandsRecomp.log next to it.
Delete settings.toml to get the default settings back.
Achievements
The game's own Xbox 360 achievements unlock as you play. A notice with the icon, name and gamerscore appears at the top
of the screen for a few seconds. The unlocks are kept in achievements\unlocked.txt in your save folder; the full list
(names, descriptions, gamerscore, icons) is written to achievements\list.json and achievements\icons at every
start, read from your own copy of the game. To reset all achievements, set reset_achievements = true in settings.toml (it clears them at the next start
and turns back to false), or delete unlocked.txt. Your game saves are
separate and are not touched. Achievements unlocked on a console or before version 1.2 are not carried over.
How it works
- CPU: the game's PowerPC program (
default.xex) was translated function by function into C++ with XenonRecomp and compiled for x86-64 (PC) and ARM64 (Android). The program you download contains that translated code; it only runs together with the game executable from your own disc, which is loaded at start for its data and checked against the version the code was made from. - Graphics: the game's Direct3D 9-style calls are rebuilt on Vulkan (based on the runtime of UnleashedRecomp), its Xenos shaders are translated to SPIR-V with XenosRecomp and DirectXShaderCompiler, and render targets are scaled per axis for real high-resolution output.
- Sound and video: XMA audio and Bink movies are decoded with FFmpeg.
- System: the Xbox 360 kernel and XAM calls the game uses (files, threads, memory, saves, controller) are implemented natively.
The full source code is in source/; BUILDING.md explains how to build it from your own
game files.
Known limitations
- Online features of the original are not available.
- Movies play at their original frame rate.
- Only the Xbox 360 disc version above is supported (no title updates, no other platforms).
Changelog
The full history is in CHANGELOG.md. Latest version:
1.2.1 (2026-11-28) - the game's sound mixing runs at a higher priority, so the sound keeps up when the PC is busy.
1.2 (2026-11-27) - achievements: the game's 40 achievements unlock with an on-screen notice (list and unlocks in
the achievements folder next to your saves); the Uplay "Action completed" popup is gone.
1.1 (2026-11-27) - fixes enemies not attacking and jars not breaking (a side effect of the 1.0 memory change).
1.0 (2026-11-27) - first numbered release (earlier releases were named by date): fixes missing walls and floors in some rooms, the game running out of memory as you play on, a rare sound-engine crash or freeze, a flickering wall and a white stripe after skipping the logo; clearer message when a graphics card is not supported.
Licence
The source code in this repository is released under the GNU General Public License v3.0 (see LICENSE), because the runtime is derived from UnleashedRecomp's (GPL-3.0). Third-party components and their licences are listed in THIRD_PARTY.md. No part of the game itself is included.