credits go to https://github.com/0dm/DS3DebugFPS for the original code.
it probably won't survive game updates (current game version is 1.15.2), so if this breaks just open an issue and i'll fix it.
$ gcc main.c vm.c -o ds3fps
$ ./ds3fps <fps>
i think it's best to lock the framerate to something you can smoothly run. say you're locking at 240 but struggle to reach 150fps, it would be "safe" to lock at 120fps. iirc sekiro had its weirdness when the fps was fluctuating, i don't know if this also the case for other fromsoft titles.