синхронизация игры и фпс 60 :
Graphics 640,480,16,2
Const UPS=60
period=1000/UPS
time=MilliSecs()-period
Repeat
Repeat
elapsed=MilliSecs()-time
Until elapsed
ticks=elapsed/period
tween#=Float(elapsed Mod period)/Float(period)
For k=1 To ticks
time=time+period
If KeyHit(1) End
Next
Flip
Cls
Forever
а команда MilliSecs() - это милисекунды