r/SwitchPirates2 • u/Melsinus • 7h ago
I made (claude) a Dynamic FPS mod for the Mario Kart World PC recomp — the game stays at 100% speed from 20 to 60 FPS
If you play the mkw-recomp port on a PC that can't hold a locked 60, you've probably noticed that t he game slows down when your FPS drops: at 45 FPS the whole race runs at ~75% speed, because MKW advances its clock by one 1/60 s step per frame.
I asked claude to write a small code mod (6 instructions, IPS patch) that turns on the game's own dynamic frame-rate mode and fixes how it measures lateness on the recomp, so the game catches up by taking 2 or 3 steps when a frame runs late:
- 100% game speed anywhere between 20 and 60 FPS
Requirements: mkw-recomp 0.1.18, game version 1.0.0, and Frame rate = "Game" (set fps = game in mkw.ini; the in-game menu doesn't offer it).
Known limits: below 20 FPS the game still slows down; at 40–50 FPS motion can look a bit uneven (the game moves in 1/60 s steps, that's inherent). If you see anything weird with collisions in very low-FPS moments, tell me.
Download: https://drive.google.com/file/d/1Xvbp6mY9uXbuXuozu-76XcrajIU7FjUw/view?usp=drive_link
The idea of fixing the game's dynamic mode comes from the Eglantine emulator's Dynamic FPS build. The patch itself was written from scratch for the recomp.