[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Program idea?
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 -