CPU runs to 100%

BlitzPlus Forums/BlitzPlus Programming/CPU runs to 100%

Try doing delay(#ofmillisecs).

Alternatively if you want your app to always run at 30 frames per second, so it is the same speed on every computer, you can do:

timer=createtimer(30)

and then use

waittimer(timer)

to wait for 1/30th of a second to go by before you draw the next frame. This should keep your CPU usage down to normal levels.