home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / programm / 5141 next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.5 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
  2. From: jmunkki@vipunen.hut.fi (Juri Munkki)
  3. Newsgroups: rec.games.programmer
  4. Subject: Re: The Correct Way to Control Game Speed
  5. Message-ID: <1992Dec21.103840.1737@nntp.hut.fi>
  6. Date: 21 Dec 92 10:38:40 GMT
  7. References: <1992Dec19.190258.15117@midway.uchicago.edu>
  8. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  9. Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
  10. Organization: Helsinki University of Technology
  11. Lines: 19
  12. Nntp-Posting-Host: vipunen.hut.fi
  13.  
  14. In article <1992Dec19.190258.15117@midway.uchicago.edu> greg@dent.uchicago.edu (Greg Kuperberg) writes:
  15. >On the Mac, the Toolbox, which is a very good RAM/ROM OS library, can
  16. >easily provide you with 60 clock ticks per second.  They at
  17. >least used to be synchronized with the monitor's raster refresh.  It's
  18. >better to work with the Toolbox than to work around it, and whatever
  19. >you do, don't work against it.
  20.  
  21. On most modern macs, the "TickCount" clock has nothing to do with video
  22. update, but it still works at approximately 60 ticks per second. It does
  23. skip ticks when there are a lot of interrupts (like LocalTalk activity),
  24. so it's not advisable to use the tick clock for accurate timing.
  25.  
  26. The Time Manager provides drift-free millisecond and microsecond timers
  27. and should be much better suited for timing tasks once you learn how to
  28. use it.
  29.  
  30. -- 
  31.   Juri Munkki                           Windsurf: fast sailing
  32.  jmunkki@hut.fi                          Macintosh: fast software
  33.