Re: Falling Speckles Exercise
- Posted by Michael Packard <lgp at EXO.COM> Apr 25, 1997
- 860 views
On Fri, 25 Apr 1997, Matt Sephton wrote: > > So, how about it? What is required is a small procedure that will add a > delay into each pass, so that the algorithm runs at the same speed on > all PCs (with a lowest common denominator number of stars). Here's what I do, which works great: atom frameclock At the beginning of each animation frame: frameclock=time() : : do whatever you do : : while time()-frameclock<.05 do end while This will throttle the speed to 20 fps. You'll need to set tick_rate(100) or more as the default time increment is 1/18 of a second or so. Michael Packard Lord Generic Productions lgp at exo.com http://exo.com/~lgp A Crash Course in Game Design and Production http://exo.com/~lgp/euphoria