r/decomps • u/ocassionallyaduck • 2d ago
Technical discussion Recompile for Same Platform
Considering the advancements in modern compilers versus 20 years ago: When looking at some games that push the hardware to its limit, having the advantage of having the full scope of the program and compiling on a much more advanced system, could it be possible to take the same game and recompile it for the same platform, but thanks to these advancements and efficiencies, see better performance? It's also possible that having the entire project in front of you, it's obvious to hook a different function than what the developers originally assumed, or use a rendering trick that a developer was not aware of.
In particular, I'm thinking of games like Shadow of the Colossus on PS2, where the game is a struggling 25 to 20 FPS, with areas of 30 FPS. Ultimately, I don't think you can just find a magic salve and gain performance, but I do wonder if this has been attempted already, and if there were any interesting results out of it, maybe some areas run really well and it completely ruins the rest of the game, etc.
5
u/Gyozarrita 1d ago
That's what alot of retro PC game communities have been doing to patch their games for decades now, yes AI makes it easier to parse debugger output and IDA exports by an order of magnitude.
Rewriting game logic in place is no small feat though, alot of game logic is intertwined and some small part of it is often written for specific hardware limitations or as part of the fundamental design of the game
4
u/funkinggiblet 1d ago
Yep, compiled 3rd Strike against with even a slightly newer compiler got rid of slowdowns on native hardware.
3
u/ComprehensiveBig6215 1d ago
Yes, that is a thing.
Modern compilers have more advanced optimisers so just recompiling the code with a modern compiler may net you a few % of gain.
But don't expect any more than about 5-10% though assuming the game is CPU bottlenecked.
If you want more than that, it's a lot more work and you end up rewriting the codebase.
1
u/Goldenhawk521 1d ago
You mean use AI further optimizing games to run better on their current platform? For sure, you absolutely could. You can already see projects such as NFS Underground 2 being unofficially ported to run on PSP, Halo on N64 and 3DS, and Mario Galaxy on GBA. Absolutely it's possible.
1
u/Lucko_Coldwolf 1d ago
They will eventually do it. All of it. Human code is highly imperfect and unoptimized. But there's no demand now.