I finally figured out a bug that was causing errors at high framerates. This will make your applications run at the exact same speed regardless of framerate:
http://blitzmax.com/codearcs/codearcs.php?code=2152
http://blitzmax.com/codearcs/codearcs.php?code=2152