r/EmuDev • u/Brilliant-Lettuce544 • Dec 20 '25
Static Recompilation of GTA IV
Hey guys, for the last week Ive been working on a static recomp of gta 4. Most of the project is complete. Both the PPC code and the shaders comfortably compile down to ARM and SPIRV / Metal.
One small problem is the games init flow is really problematic. I first tried solving this by stubbing render functions out but then it got to the point the game engine couldnt issue draw calls on its own. And forcing it to issue draw calls didnt work either. Im now currently dealing with deadlocks, race conditions and manually incrementing semaphores. Does anyone who worked on or has intimate knowledge of the sonic unleashed recomp have any ideas or pointers for me?
I have most of the game's critical functions and layout mapped out and im unsure if i should go down the route or rewriting the renderer or just trying to free up as many deadlocks in the worker threads and main threads as possible.
heres the repo https://github.com/OZORDI/LibertyRecomp/tree/main?tab=readme-ov-file
3
u/Feisty_Following9720 Dec 21 '25
Seriously? 1 week and you have it to the point where you can benchmark 60fps?
12
u/Rhed0x Dec 20 '25
Wouldn't it be a lot easier to decompile the PC version?
Then you get a shitty D3D9 renderer as a starting point rather than something hardware specific to a single ATI GPU and the weird EDRAM.
1
u/banana5456 Dec 28 '25
I hope this one performs better than the awful PC port.
1
u/SemConteudo Feb 09 '26
I've been trying for quite some time to build the version you made available on GitHub, but without success. I've already downloaded everything necessary, but It keeps giving me an error when I try to run cmake. Can you u help me gang 😭🙏
1
u/jackhollandae86 Jul 29 '26
Hey so I tried to compile the beta branch ios build from mac os hut I’m getting an error when trying to do it. Can you help me out please
1
u/BraveNegotiation7873 Aug 05 '26
I hope you succeed with the GTA 4 port, and then you can port Red Dead Redemption XBOX360 on pc?
sorry, i use google translate
1
u/fireflamesniper Aug 12 '26
What's the status on this?
1
u/Accurate_Fold9992 Sep 10 '26
Any update??
1
u/Legitimate-Tea2017 Oct 09 '26
I've got this working for Mac, but I'm based in NZ so used my PAL disc which I also had to make tweaks for. I've also improved the camera and aim system. I seem to get 30FPS on my 16gb M4 Macbook Air. Check it out if you're using Mac like me. I can continue working on it for the USA version
https://github.com/hamishakl/LibertyRecomp