CompuServe Messages

A3000 too fast?

    24-Jun-90 07:01:32
Sb: #109543-A3000 too fast?
Fm: John Millington 75170,153
To: Michael McKnight 72677,3517
The trick is to make your program run at a constant real-time speed regardless of the speed of the machine or the system load. The way I usually deal with it is that the program has some kind of main loop, and every time it goes through this loop, it checks the clock to see how much real time has elapsed since the last iteration of the loop. Then you just make the game time for that "frame" proportional to the elapsed time. So when you run on a faster machine, each loop takes less real time and you just get smoother animation. — John