home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.jvnc.net!newsserver.technet.sg!nuscc!nusunix2.nus.sg!isc10327
- From: isc10327@nusunix1.nus.sg (ONG TAT-WEE)
- Subject: Re: Program idea?
- Message-ID: <1993Jan7.062317.11268@nuscc.nus.sg>
- Sender: usenet@nuscc.nus.sg
- Organization: National University of Singapore
- X-Newsreader: TIN [version 1.1 PL6]
- References: <uerics.726359386@mcl>
- Date: Thu, 7 Jan 1993 06:23:17 GMT
- Lines: 37
-
- Eric D. Shepherd (uerics@mcl.ucsb.edu) wrote:
- : system tick counter increments once each 1/60th of a second. You can read
- : the current value of the tick counter by using the Miscellaneous Tools
- : call GetTick.
- :
- Eric, is there any other way of reading the HeartBeat tick
- counter like accessing a special location instead of calling GetTick? I
- know it's good to use tools and stick to the standard way of accessing
- things on the IIGS, but my program currently only uses the Tool Locator
- and Memory Manager; nothing else. I don't wish to startup the MiscTools
- 'coz it'll add overhead to the program.
- :
- : You can install tasks into the Heartbeat Interrupt Queue by calling
- : SetHeartbeat (Misc. Tools). Once installed, that event will be called
- : after a certain number of ticks have occurred. If you want the task to
- : run every 1/30th of a second, you would tell SetHeartbeat to run the event
- : in two ticks.
- :
- I have the sample animation source code from Apple Computers,
- Inc. which was written in 1987 and uses the SetHeartBeat routine but the
- overhead is so much that the animation can only animate very tiny
- objects properly. I tried to modify the program to animation a 30x20
- object and tearing resulted even when sync to the VBL interrupt.
- :
- : Good luck!
- :
- : - Eric S.
- :
- : --
- : Eric D. Shepherd | Apple II Alliance Charter Member
- : InterNet: uerics@mcl.mcl.ucsb.edu | ACM Member
- : FidoNet: 1:206/2713 Eric Shepherd | Programming Law #1: "When in
- : AOL: Sheppy | doubt, rewrite from scratch."
-
- Thanks for your reply. :)
-
- - DOTW -
-