If you want the FPS to be exactly 30, then use CreateTimer/WaitTimer commands.
Not true. CreateTimer() and WaitTimer() cause unecessary slowdown. A program demo I made once ran at 24FPS normally. When I added CreateTimer(60) & WaitTimer(timername) to limit it on faster PCs, the framerate on the original PC dropped to 20.