home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / apple2 / 26507 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.0 KB  |  50 lines

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