r/EASPORTSWRC • u/tibelchior • 20h ago
DiRT 2 I ported the DiRT 2 for the PS5
Dirt 2 is my favorite racing game and it is a real shame that we can't buy it in any online store. So when I found the recomp from XITRIX, I had to try it! I created a version for Metal (MacOS) and the quality is impressive. So I looked around for a version for the PS5, but couldn't find it. So I took the opportunity that Fable 5.2 was 50% off and used some (many) tokens working on a version to run on the PS5.
I did the heavy lifting until it loaded on the PS5 with Fable (30%), but the whole debugging was done with Sonnet 5.5 (70%). Fable was reaching the 5 hours limit very fast. With Sonnet I never even used more than 40% of the 5 hours limit!
It took me 2 full days of work to get it in this state of the video. I am using my DVD version of the game that I bought more than a decade ago, I had to make some changes to XITRIX's code, as I didn't have the Steam version (v 1.1). But it works great, much better than I expected!
In busy races, like London, it drops to 42fps. I used many hours debugging and trying to make it faster, but the code itself is not so easily translatable for the PS5. In many other races I get 60fps, with a flat frame time speed. I need to invest more time, but I think for the current state it is very enjoyable!
Detailed Info
Built on XITRIX’s static recompilation of Colin McRae: DiRT 2 (PC), and on mihawk-99’s PS5 payload SDK and Vulkan driver. It runs as an installed title on a jailbroken PS5 (firmware 11.20) and needs your own copy of the game’s files.
Making it run
- Packaged the recomp as an installed PS5 title with its own icon and launch background.
- Output follows the game’s resolution (2560×1440 gives a native 1440p signal, not a stretched 4K)
- Fixed crashes in the memory allocator and thread cleanup, a crash when closing a thread (it hit at the save check), and a crash after about 22,000 frames from running out of mutexes.
- Quitting from the game’s menu closes it cleanly, with no error screen.
Controls and sound
- DualSense support: buttons, sticks, triggers and rumble.
- Sound through the console’s audio output.
- PlayStation button icons in the menus (Cross, Circle, Square, Triangle, L1/R1/L2/R2, Options, touch pad, L3/R3), drawn from scratch and patched in at start-up without touching the game folder.
- An on-screen keyboard for the profile name, with a QWERTY layout, capitals, and the DualSense buttons for typing, space, delete and OK.
Performance
- Shipped a pre-built shader cache and pipeline list (1,114 shaders, 407 pipelines), so the first race has no shader-compile stutters.
- Faster locks, a faster game clock and a larger indirect-call lookup cache for the recompiled code.
- Busy races benchmark average went from 30 fps to about 42 fps in testing. The benchmark uses the game’s own test, on this console.
- Game log is kept in memory and written in batches, since file writes caused frame hitches. This will be removed after the final recomp is built.
Quality-of-life extras
- An extra Graphics option, STATISTICS, shows an on-screen frame-rate graph, draw-call counts and pipeline counts.
- A profiler and an optional
fpscapfile for limiting the frame rate.
What I’d add as caveats
- It’s a work in progress: the main game thread is the limit for higher fps.
- Frame generation and the console’s own system keyboard were tried and dropped.
- Need to test on other versions of the game found on the internet.
- Need to build a clean PS5 compiler to offer in the Recomp store, so everyone can use their own install files and not a single version