Hello everyone,
I have created an open-source patch that unlocks the frame rate of the Touhou games (a famous series of 2D shmups, hard-locked to 60 FPS) so they can be presented and played at 144, 240 or 360 Hz without changing the speed of the game itself.
The simulation is not simply run faster. The game's logic keeps its exact 60 Hz schedule, and motion is integrated in sub-steps whose
durations add up to exactly one frame -- so anything left undisturbed, e.g. a bullet on a straight line or the player holding a direction, is exactly where the unmodified game would have put it at every 60 Hz boundary.
What changes is the decisions made in between: input is polled and the player moved once per drawn frame, and collision is tested at every sub-step instead of once. A bullet that would have jumped clean past you between two 60 Hz frames can now hit you. So it is genuinely higher-rate gameplay and input rather than interpolated presentation.
Slow-motion camera comparison on a 360 Hz OLED, 60 Hz vs patched:
Feature showcase (it also adds optional accessibility/upscaling features):
This was reverse-engineered and written almost entirely with AI assistance. I used ChatGPT Astra for the early work, and Claude Fable/Opus for most of the rest, on top of Ghidra. I directed it, made the design decisions and verified the results, but I would not have been able to do this alone despite my software engineering background. It is a few thousand lines of x86 and AMD64 patching across five game builds, and finding the sites by hand would have taken months I do not have.
I think that is extremely cool. There are a lot of old games locked to 30 or 60 FPS where the fix is "someone has to reverse-engineer the frame loop and figure out which systems can be sub-stepped safely". That used to need a specialist with a lot of free
time. It is now tractable for anyone willing to learn enough to check the AI's work. Checking is still mandatory, because it confidently got things wrong several times, and only tests and instrumentation caught it. If you have a 60 Hz-locked game you love, I would genuinely encourage you to try!
Everything is MIT-licensed and the full reverse-engineering notes are in the repository, including the schedule arithmetic and the parts I got wrong on the way:
https://github.com/vittorioromeo/th12_hfr
Enjoy!
I used AI to turn a 60 FPS-locked game into true high-refresh title
-
vittorioromeo
- Posts: 1
- Joined: 13 Sep 2026, 19:23
