Re: Timer
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 01, 2002
- 432 views
Chris Saik writes: > My question is, what in your opinion is the best way > to accomplish the timing procedure? You should take a look at sched.e in euphoria\demo\langwar. It manages several independent "tasks" using cooperative multitasking. A centralized scheduler maintains a list of tasks (procedures) along with the next time that they should be activated. Even when a phasor is quickly drawn across the screen, there's an opening every .01 seconds for another task to get in and do something. Occasionally you'll see multiple phasors or torpedos drawn simultaneously, along with a planet exploding, the "Euphoria" ship moving etc. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com