I'm having some trouble with my frame limiter. Some of the sprite effects have a flicker thing going on and when I use position entity it shows the movement between the points(because of the tweening I assume).
here's the limiter I am using. Does anyone know of a better way to do it.
; Frame limiting
Repeat
frameElapsed = MilliSecs () - frameTime
Until frameElapsed
frameTicks = frameElapsed / framePeriod
frameTween# = Float (frameElapsed Mod framePeriod) / Float (framePeriod)
; Update game and world state
For frameLimit = 1 To frameTicks
If frameLimit = frameTicks Then CaptureWorld
frameTime = frameTime + framePeriod
|