An unofficial native port of Pro Evolution Soccer 2013 (Xbox 360), built by static recompilation, for Windows and iPad, with early Android support.
Running natively on Windows (Vulkan). Screenshots from the author's own copy of the game.
Important
You must own the game. This repository contains no game code or game files, and no builds of the game are distributed. You build it yourself from your own dump of the PES 2013 Xbox 360 disc (Europe). Pro Evolution Soccer 2013 belongs to Konami; this project is not affiliated with Konami or Microsoft.
Warning
Work in progress. It is playable on Windows (menus, training, exhibition matches, sound,
saves), but expect bugs. On iPad (M2) matches are playable at 40-45 fps with touch controls or a
controller; set pieces, cutscenes and the Game Plan screen still drop to 10-25 fps. Android is
early: it runs on the android-early
branch and has been played on one tablet so far.
- Features
- Status
- Branches
- Building and playing on Windows
- iPad
- Android (early)
- Controls
- Files and folders
- Reporting a problem
- How it works
- Credits
- License
| 60 fps | Matches run at a locked 60 fps on Windows; set pieces and goal kicks are locked to 30 fps by the game itself |
| Native code | All ~67,000 PowerPC functions of the game are translated ahead of time to C++, so there is no emulator and no JIT. iPadOS forbids JIT. |
| Vulkan renderer | Renders at the GPU command-processor level, with a model of the Xbox 360's EDRAM. Xenos shaders are translated to SPIR-V on first use and cached. |
| iPad | Uses the same renderer, running on Metal through MoltenVK |
| Aspect ratio | Keeps the game's 16:9 picture on any window or screen shape (letterbox / pillarbox) |
| Sound | XAudio implemented on miniaudio |
| Saves and profiles | Profiles, save data, notifications and the Xbox on-screen keyboard (player names) work |
| Controllers | Xbox, PlayStation and MFi controllers via SDL / XInput, plus a keyboard; on-screen touch controls on iPad |
| Performance overlay | On iPad and Android, live FPS, frame time, memory, thermal state and battery in the letterbox bar below the picture |
| Android (early) | One arm64 APK for every GPU (Adreno, Mali, Xclipse, ...) on the device's own Vulkan driver, with the launch menu, touch controls and overlay of the iPad build (android-early branch) |
| Milestone | State |
|---|---|
| Recompiled code compiles | ✅ Done |
| Boots on Windows | ✅ Done |
| Graphics | ✅ Menus, training, matches and cutscenes render correctly |
| Menus, input, matches | ✅ Windows: training, exhibition matches, sound, saves (60 fps; set pieces and goal kicks locked to 30 fps by the game) |
| iPad | 🚧 Playable on an M2 iPad Air: menus, matches, sound, touch controls. Matches run at 40-45 fps; set pieces, cutscenes and the Game Plan screen drop to 10-25 fps (performance work in progress) |
| Android | 🧪 Early (android-early branch): played on a Huawei MatePad 11.5 (Snapdragon 7 Gen 1 / Adreno 644) with touch and a PS4 controller. Menus 60 fps, matches about 27 fps. Other devices untested |
| Polish | 📋 Planned: anisotropic filtering, FXAA, resolution scaling (docs/improvements.md) |
Open bugs are tracked in docs/listofbugs.md.
main only gets code that was tested on a device. Newer work lives on the other branches - check them
for the latest changes, and read each branch's README for what it adds and what is still untested.
| Branch | What it is | State |
|---|---|---|
main |
Windows + iPad, the last build tested on an iPad (#17) | ✅ Tested |
experimental |
Everything newer for Windows / iPad / iPhone: launch menu, FSR 1 / SGSR 1 upscaling, Blur effects setting, mipmaps fix, render-pass and clear optimizations, crash logger (builds #18-#38). See its README for the list | 🧪 Checked on Windows, partly on an iPhone |
android-early |
experimental plus Android: APK project, launch menu, touch controls, overlay. Guide: docs/ANDROID.md |
🧪 Played on one Android tablet |
ipad-perf |
iPad performance fixes from build #17 | Merged into main (kept for history) |
To build a branch, clone it directly:
git clone --recursive -b experimental https://github.com/xamphy/PES13Recomp.gitor switch an existing checkout with git checkout <branch> followed by
git submodule update --init --recursive.
Requirements: Visual Studio 2022 with the C++ Clang tools (clang-cl and lld; the recompiled code needs Clang), CMake ≥ 3.20, Ninja and PowerShell. The Vulkan SDK is optional (validation layers). You also need a GPU with Vulkan support and about 16 GB of RAM for the build.
-
Clone with submodules:
git clone --recursive https://github.com/xamphy/PES13Recomp.git cd PES13Recomp -
Dump your disc. Make an ISO of your own PES 2013 disc (Europe), then extract it with the bundled extract-xiso:
tools\extract-xiso\artifacts\extract-xiso.exe -d game\files "PES 2013.iso" copy game\files\default.xex game\xex\default.xex
-
Recompile the game code into
generated/. This takes a few minutes.tools\build-xenonrecomp.bat powershell -ExecutionPolicy Bypass -File tools\recomp.ps1 -
Build the runtime and the recompiled code. The first build takes a while (~430 large files).
tools\build-runtime.bat :: -> build\Release\bin\pes13.exe -
Play:
build\Release\bin\pes13.exe --run
The first launch is slower while shaders are translated. After that they are cached in userdata/.
The iPadOS app is built on macOS, either on a Mac or on a macOS runner in your own private
repository. Because it contains code recompiled from the game, the .ipa is never published here.
Installing it from a Windows PC with AltStore, and copying the game files, is described in
docs/IPAD.md.
The app asks for the extended-virtual-addressing and increased-memory-limit entitlements. The
Xbox 360 address space is 4 GB, and a match uses about 1 GB.
On the device (M2 iPad Air, installed with Sideloadly and a free Apple ID): the 4 GB reservation succeeds and the game is playable - menus, exhibition matches and sound work.
- Performance (build #17): matches run at 50-60 fps. Replays, goal celebrations and cutscenes drop to 13-25 fps: they are GPU-bound (33-65 ms of GPU time per frame, ~48 render passes, most of them a single post-processing draw). Free Training runs at 30 fps. The iPad also throttles once its thermal state reaches "serious" (shown in the overlay). Reducing render passes is the current focus.
- Performance work done: the game's main thread and the command processor ask iPadOS for
performance cores (thread QoS). Per-draw GPU timestamps are off on Apple: Metal samples counters only
between passes, so each one split a render pass and made matches drop to ~25 fps; only the frame
start / end are timed now. Asynchronous MoltenVK submits were tried and reverted. A
[passes]log line shows why render passes end and how much they load and store. The status bar is hidden. Thermal state and Low Power Mode changes are logged. Untested performance work goes to theipad-perfbranch first;mainkeeps the best build tested on the iPad. - Fixed: files with capitals in their names (e.g. the main menu background movies) were not found on the iPad, whose file system is case-sensitive. Paths now match ignoring case.
- Touch controls: a floating left stick, D-pad, A/B/X/Y, shoulders, triggers, Back/Start and stick clicks drawn over the picture. They hide while a Bluetooth controller is connected.
- Performance overlay: FPS, command-processor time per frame, memory, thermal state and battery, in the black bar under the 16:9 picture.
- Switching to another app pauses GPU work (iPadOS does not allow it in the background) and the game resumes when you come back.
Android support is on the android-early
branch. One arm64 APK covers every GPU: it uses the device's own Vulkan driver (Vulkan 1.1, Android 9 or
newer) and translates the Xbox shaders on the device. Like the iPad app, the APK contains code recompiled
from the game, so it is never published here: you build it with the Android NDK from your own disc and
install it yourself. Building, installing, copying the game files and sending logs are described in
docs/ANDROID.md.
- Tested: a Huawei MatePad 11.5 (Snapdragon 7 Gen 1, Adreno 644, HarmonyOS 3.1). Menus run at 60 fps, light 3D scenes at 40-60, matches at about 27 fps (GPU-bound, faster than an iPhone 13 Pro).
- Included: the launch menu (works with touch or a controller), touch controls, the performance overlay, the Blur effects and upscaling settings, and Bluetooth controllers.
- Not yet: other phones and tablets (Mali and Xclipse GPUs are untested), and switching to another app and back is still being fixed.
A controller is recommended. On iPad, on-screen touch controls appear when no controller is connected. Keyboard controls (player 1, Windows and Mac):
| Xbox 360 | Keyboard | Xbox 360 | Keyboard | |
|---|---|---|---|---|
| Left stick | W A S D | A / B | Space / Esc | |
| Right stick | I J K L | X / Y | C / V | |
| D-pad | Arrow keys | LB / RB | Q / E | |
| Start / Back | Enter / Backspace | LT / RT | Shift / R |
| Path | What |
|---|---|
game/xex/default.xex |
the game executable from your disc |
game/files/ |
the rest of the disc (dt*.img, movies, ...) |
generated/ |
code recompiled from your default.xex (made by tools\recomp.ps1, never committed) |
userdata/ |
saves, profile, shader cache, screenshots and logs (created on first run) |
On iPad the same layout lives in the app's Documents folder (Files → On My iPad → PES 2013).
Open an issue and attach the logs of the run:
- Windows: run
pes13.exe --run > userdata\run.log 2> userdata\run.err.log. - iPad:
pes13.logandpes13.err.logare in the app's Documents folder.
A crash prints a [crash] line with the guest call stack in the error log. Include what you were
doing, and for graphics bugs add a screenshot. Please don't attach game files.
Debugging options:
| Option | What it does |
|---|---|
--diag |
Every 10 s: guest threads with call stacks, GPU state, last command packets |
--dump-frame N |
Prints every draw of frame N with its decoded state and shaders |
PES_CAPTURE=<s> |
Per-draw capture of a frame at second <s> (for rendering bugs) |
PES_SHOTS |
Periodic screenshots |
PES_INPUT_SCRIPT |
Scripted controller input (tools/nav/README.md) |
PES_AUDIO_MUTE=1, PES_AUDIO_WAV |
Silent runs / record the audio to a file |
The game's PowerPC code is translated ahead of time into C++ and compiled for the target CPU:
| Step | Tool | Output |
|---|---|---|
| Dump the disc | extract-xiso | game/xex/default.xex, game/files/ |
| Find functions and jump tables | XenonAnalyse (patched) | config/pes13.toml, switch tables |
| PowerPC → C++ | XenonRecomp (patched) | generated/ppc_recomp.*.cpp |
| Run it | runtime/ |
pes13.exe / pes13.app |
The runtime replaces the Xbox 360 underneath the game:
runtime/kernel: xboxkrnl / xam (threads, sync, memory, timing, profiles, saves, keyboard UI)runtime/gpu: the Xenos command processor (PM4) and the Vulkan renderer (EDRAM tiles, resolves, depth copies, Xenia's microcode → SPIR-V shader translator)runtime/audio: XAudio on miniaudioruntime/input: controllers and keyboard (SDL, XInput)runtime/fs: disc and HDD paths mapped togame/filesanduserdata/
app/ios/ iPadOS app bundle (Info.plist, entitlements)
cmake/ build helpers (Xenia shader translator library)
config/ XenonRecomp config for PES 2013 (function sizes, switch tables)
docs/ plan, bug and improvement lists, iPad guide, Direct3D survey
game/ your game dump goes here (ignored by git)
generated/ recompiled game code, made locally (ignored by git)
runtime/ the replacement Xbox 360 kernel, GPU, audio, input and file system
thirdparty/ SDL, Vulkan headers, volk, miniaudio, Xenia, glslang, fmt
tools/ recompiler forks, build, analysis and navigation scripts, patches
The architecture and plan are described in docs/PLAN.md.
- XenonRecomp / XenosRecomp by hedge-dev: the
recompiler. Patched forks are in
tools/, and the patches are listed intools/patches/. - Xenia: the Xenos shader translator and much of the GPU
knowledge (BSD-3-Clause, see
thirdparty/xenia/LICENSE) - SDL, MoltenVK, volk, miniaudio, glslang, fmt, extract-xiso
- Unleashed Recompiled and the other projects in awesome-x360-recomps, for showing the way
The code in this repository is licensed under the GNU General Public License v3.0.
Third-party components keep their own licenses (see thirdparty/ and tools/).
Pro Evolution Soccer 2013 © Konami Digital Entertainment. This repository contains no game code or game files.


