Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Re: Animation Message-ID: <1961.27B4BFB4@stjhmc.fidonet.org> Date: 8 Feb 91 16:48:15 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 20 Baudoin Raoult writes in a message to All BR> The simplest way is to use TickCount, as the tick counter is BR> updated every 60th of second, each time the video spot starts BR> to update new screen. So just write: BR> tmp := TickCount; while tmp=Tickcount do { nothing } ; CopyBits(.....) To make sure that you get the most accurate reading (and the longest time in which to do your drawing) use GetTrapAddress to bypass the Trap Dispatcher and jump directly to TickCount. Otherwise, you have 100+ CPU cycles of overhead that you are wasting. This might not be much, but it could change the flicker if your drawing is small enough. Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org