Hey folks,
An update by me, the game comes to me more and more playable every day! First of all, I am thankful for all the great and kind words received from the members of the community.
For those who missed, this is the PS2 version of Marc Ecko's Getting Up: Contents Under Pressure running on a real PSP, not in an emulator. The PS2 executable is statically recompiled to PSP code, and the PS2 graphics path is replaced by a native PSP renderer. No sound yet. It needs custom firmware and your own copy of the game.
I'm posting this because a lot of people asked and some are updates, and because I want to be honest about one thing: a lot of people think that they can slap an AI agents against a target game and then play it on the PSP. Yes, I use AI agents Claude Fable and Opus 5.5 x Kimi K3.1 Pro x Qwen 3.8 Next heavily on this project. No, that does not make it easy. This has been weeks of full days, well over a hundred builds, and a long list of ideas that looked great and then lost on real hardware. I had to adjust AI models very, guide them, PUSH them to test and analyze the issues, PUSH them to implement certain optimizations and ideas when agents landed with "not possible". I used to be in a game development before, currently, I am involved in enterprise solution architecting, I saw plenty of stuff.
Where it started
The first builds that got in-game ran at 2–4 fps, and the heavy spots dropped below 3. The PSP has a 333 MHz CPU, 16 KB caches and 64 MB of RAM. The game was written for a machine with a vector unit and a big GPU that the PSP doesn't have. Some people come and say: "USE THE ME". But it doesn't solve the issue. In certain pieces of the game logics, either GE is waiting, either CPU is waiting itself because of... DMA! DMA is simply uncapable to pump the amount of data that comes from a game from a bigger console, making waitings. It means we can’t use the full power of the chip. Cache misses of the CPU are also not helping, because we pump ~100KB of code on the 16KB cache room. Also, code from PS2 doesn't translate perfectly - for example, I had to replace doubles with floats just because PSP CPU doesn't do this natively.
Also, to bring ME to work I had to bring a pieces, that normally originate wrapped in APIs and stuff, I had to build around memory management, protection, circle bus, task management, and some other stuff that wasn't done before. Furthermore, I implemented a kind of memory swap for the code from the MS, because I don't want to keep the whole code loaded, while game actively needs only 15-20% in real time.
I also have to implement some systems inspired by the new engines and games - since I am fighting for every milisecond. My internal target is gameplay at 15 FPS and cutscenes at 20+.
Where it is now
Measured on hardware, same scripted cutscene on the first level, same 1082 frames every run:
average frame: 86.9 ms (about 11.5 fps)
light scenes: about 72 ms (13–14 fps)
worst corridor section: about 135 ms (7+ fps) — this used to be the 2.5–3 fps spot
Still a bit behind from playable speed. But the hard drops are gone and average FPS is good!
What it took
First of all, for the last months I am building “PHASE2” - so I have had a good pieces of the game already decompiled, explored, and reimplemented in rust. Agents referenced a lot of data from there where they were stuck or unsure.
For the core game I use the recompilation of the PS2 code, built on PS2RC by SandstoneDev. The recompiled game code is 7.6 MB, so it is paged in from the memory stick on demand as I mentioned.
A native PSP renderer. Instead of emulating the PS2 vector unit and GS, we hook the game's own render path, capture what it wants to draw and build PSP display lists directly. Meshes are pre-converted offline. Built lists are cached and replayed.
The Media Engine. The PSP has a second CPU that almost nothing uses: no vector unit, no shared cache with the main CPU, no OS services. Our first attempt at using it crashed, then hung, then made the game 35 ms slower. We threw the design away and rebuilt it around how the Yabause sound core, mcidclan's ME library and God of War III's SPU jobs handle a second core: explicit input and output, one writer per piece of memory, the second core only writes display lists and the main core submits them. Today 100 % of skinned meshes, 97.5 % of static meshes and about 90 % of instanced meshes are built on the second CPU.
Not drawing what you can't see, inside the game's own visibility test: objects smaller than 32 pixels are rejected, far objects update every other frame, off-screen characters don't recompute their skeleton, and invisible NPCs are put to sleep through the game's own sleep mechanism.
Native rewrites of hot game functions: animation sampling, pose, matrix math, sphere tests.
Also, there is a kind of “DLSS” that makes far and small things to be rendered by the checked board, saving me DMA space for other stuff. There is no visible quality drop.
What did not work
A software occlusion buffer in the style of Battlefield 3. We built the rasteriser, the occluder data and the hardware cross-check. On the PSP it cost 7–9 ms a frame and hid almost nothing. It is switched off.
The second CPU never finished that buffer in time, at any size.
Emulator estimates were wrong in both directions, repeatedly. Speed is now judged only from logs on the real console.
Features that silently disabled each other, memory running out without any error, a memory card that started showing "Corrupted Data". Ugh.
About the AI part, and it’s the hardest.
The agents write most of the code and run the builds. They also confidently propose wrong diagnoses, drop ideas too early and optimise the wrong thing unless every claim is checked.
What keeps it honest is process, not magic:
every feature sits behind a switch, and "off" must be bit-identical to before;
acceptance compares system call counts, random number call counts and 241 frame dumps against the baseline;
anything moved to the second CPU first runs in shadow mode and is compared byte for byte;
then it goes on the memory card as four scripted runs on the console, and the log decides.
Yesterday that was 20 runs on hardware. Several "obvious wins" turned out to be losses.
What's next
More than half of the worst frame is now the game's own logic. The plan is to move our whole rendering backend to the second CPU behind a message ring, the way PCSX2 runs its GS thread, and then start running self-contained parts of the game's logic there too. Sound comes after that.
Will keep you posted and once again appreciate all the great feedback I got!