🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1473

Re: The Correct Way to Control Game Speed

#1473
From: Juri Munkki
Date: Mon, 21 Dec 1992 10:38
19 lines
1536 bytes
In article <1992Dec19.190258.15117@midway.uchicago.edu> greg@dent.uchicago.edu (Greg Kuperberg) writes:
>On the Mac, the Toolbox, which is a very good RAM/ROM OS library, can
>easily provide you with 60 clock ticks per second.  They at
>least used to be synchronized with the monitor's raster refresh.  It's
>better to work with the Toolbox than to work around it, and whatever
>you do, don't work against it.

On most modern macs, the "TickCount" clock has nothing to do with video
update, but it still works at approximately 60 ticks per second. It does
skip ticks when there are a lot of interrupts (like LocalTalk activity),
so it's not advisable to use the tick clock for accurate timing.

The Time Manager provides drift-free millisecond and microsecond timers
and should be much better suited for timing tasks once you learn how to
use it.

-- 
  Juri Munkki					       Windsurf: fast sailing
 jmunkki@hut.fi					      Macintosh: fast software
Technical Details
Message-ID: <1992Dec21.103840.1737@nntp.hut.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
References: <1992Dec19.190258.15117@midway.uchicago.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
From: jmunkki@vipunen.hut.fi (Juri Munkki)
Newsgroups: rec.games.programmer
Subject: Re: The Correct Way to Control Game Speed
Message-ID: <1992Dec21.103840.1737@nntp.hut.fi>
Date: 21 Dec 92 10:38:40 GMT
References: <1992Dec19.190258.15117@midway.uchicago.edu>
Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
Organization: Helsinki University of Technology
Lines: 19
Nntp-Posting-Host: vipunen.hut.fi