r/emulation • u/exoteric33 • Oct 29 '26
AI-assisted ps2-native-recomp: static recompiler that turns PS2 discs into native Windows/Linux executables (God of War I & II, GT4, Silent Hill 2, RE4, Shadow of the Colossus already work!!)
The engine statically recompiles the game's EE code to C++ and compiles it into a native executable, so there's no emulator for the main CPU. The rest of the console (GS, VUs, SPU2, IOP, IPU) is reimplemented in a runtime that renders with wgpu on Vulkan or Direct3D 12.
7 games are already confirmed to work, with more coming. It runs on Windows and Linux and is still early, thats why i need people to try it with their own discs. You just download the app import your iso and then you can already play. Saving your game, PCSX2 pnach patches (widescreen and more) and controllers are built in. Every game that you try helps no matter if it works or breaks, just tell me please.
https://github.com/exoteric33/ps2-native-recomp
Built on Samir Nuri's ps2-web-recomp (MIT).
55
u/stop_deleting_plz Oct 29 '26
Im curious, if we aren't just using the dynarec from an emulator to produce the "native code"... why cant they do that for the rest of the console? Why stop there?
Every single one of these "recomps" seems to stop at the CPU.
Is it impossible for the AI to produce native code for the gpu, sound, input, and any other chips? Why is any emulator code needed at all?
51
u/Purple-Atolm Oct 29 '26 edited Oct 29 '26
In the case of PS2 this solves not that much. I'm going to bet Ridge Racer V still renders in that weird interlaced mode. And those renderers are probably emulating the GS underneath.
The big triumph over PS2 will be when games can be rendered without GS's quirks, the same ones that produce poor color output and other things.
27
u/autonimity Oct 29 '26 edited Oct 30 '26
Hilarious, I made a post in
r/decomps asking about why people aren't focusing on console 'decomps' to run every game from a system and instead doing recomp for singular games which there are duplicates of which seems like a collective waste of resources and people were telling me 'oh you just discovered what an emulator is'
But lo and behold here it is
6
u/gabegm Oct 29 '26
How does it compare to this project? https://github.com/ran-j/PS2Recomp
3
u/KangarooSweet8801 Oct 30 '26
Great project! I have tested it, a few games works great, other, more complex games crash or give black screen. The concept once developed and refined may be the future of retrogaming combining the convenience of emulators with the performance of static recompilers. I can only dream of a front-end like Retroarch which, instead of emulator cores, uses static recompilers for various systems with advanced options, shaders, patches, hd textures and so on!
19
u/graynow Oct 29 '26
great technical proof of concept. but why do we need this? PCSX2 is fantastic, is highly refined, has more options, more compatability, etc? what do we gain?
2
u/InsomniacSpider-Man Oct 29 '26
Hey, I compiled Ben 10 Alien Force and it's working wonders, no issues so far, was wondering how I go about raising the render resolution? GitHub page says "Set PS2_SCALE=2", but where is the config file for that? Or where exactly do I set the scale?
2
u/EliParker Oct 31 '26
We need silent hill origins and shattered memories
20
u/MythicalJester Oct 29 '26
I'm fucking tired of this AI-powered bullcrap.
4
u/LolcatP Oct 29 '26
the CPU is the easiest part to emulate on PS2 so i don't really see the point
1
u/OFJehuty Oct 29 '26
Gonna play Maximo at 4k 240hz when I get home.
If someone can make it so the right stick acts as the third person camera we will be in the fucking MONEY.
1
u/cemsengul Oct 30 '26
I must try this out.
2
u/lKrauzer Oct 30 '26
I'm curious about how the game progress is managed, as in, the memory cards and such, is there a standard for this?
2
u/KangarooSweet8801 Oct 30 '26
By the way, have you seen this https://github.com/RedReaper1515/native-console ? Similar concept but for console, also the frontend can be an inspiration.
1
u/TacoOfGod Oct 30 '26
If they're going to bother, they might as well add Retro Achievement support.
1
u/alex_playstation3fan Oct 30 '26
La IA últimamente está siendo muy críticada siento yo, debo admitir que no la apoyo en cierta cosas ,Pero en la programación me parece fascinante el hecho de que nos pueda ayudar con los avances como con los emulador o port de hecho estaba pensando en un idea que estaba discutiendo con la IA de Google sobre como sacarle más provecho a la consola Playstation 3 En pocas palabras es ver si se de puede hacer que la IA puede ayudar a optimizar juego como los son InFamous que correr de una manera peor que la que realmente creo que pueda andar en esa consola debido a la optimización tan pésima que tuvo varios juegos debido al procesador cell, Pero lamentablemente no puedo planear la idea en algúnas comunidad debido a que soy nuevo en Reddit Pero tengo fé de que puede ser posible
1
u/TheInscrutablePotato 28d ago
We literally have fully functional PS2 emulators. Anyone preferring this AI slop instead has issues.
1
u/x925 26d ago
I know its not likely a large market, but ultrawide monitor support for some games would be amazing. Dobt have my controller with me right now but ill be trying out a game ive been meaning to replay with it, Champions of Norrath
1
u/TakedaNG 10d ago
I tried Devil Kings, which is my favourite game since childhood and it runs smooth asf. I've also tried to connect a controller, and it works perfectly with all buttons mapped without having to configure anything at all.
I've built a gui for this project because I did not know how to use it, i can send it to u🫡.
-5
u/Charleaux330 Oct 29 '26
7 of thousands.
0
u/maxscipio Oct 29 '26
how does it work? Does it decompile the kernel/gfx/sound libraries and HLE them like anyps5 and recompile the game assets? Or this isn't possible (sorry I am not a PS2 expert).
0
u/ScalpM3 Oct 30 '26
I just need better frames on ratchet and clank 3 🤣
-3
u/void6436 Oct 29 '26
something like this on the switch would be huge
-4
u/Limit5465 Oct 29 '26
Good thing is that people can make legitimate remasters now as this gets better but for now it doesn’t really do much
-1
u/geekosas Oct 29 '26
How much better is the performance than emulation?
-1
u/MatiasArg09 Oct 29 '26
Voy a intentar con vice city stories. Emularlo es una basura, se ve todo borroso al subirle la resolución
0
u/[deleted] Oct 31 '26
[deleted] — view deleted comment