It's not at exactly 30, it varies between 25, 30 and 35 as the game is up.
Fast forwarding a replay also slows the game further, to about 1/4 of the (average of) 30 FPS, so the final display is always 30.
Overheating is a possibility, but even when my laptop has been hibernating for about 24 hours and the first thing I did was check to see if Touhou was running normally (yet), it still ran at the slower speed.