home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12816 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.6 KB  |  28 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!slchambe
  3. From: slchambe@athena.mit.edu (Stephen L Chamberlin)
  4. Subject: drawing synchronized to vertical retrace
  5. Message-ID: <1992Jul22.022319.4592@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: e40-008-10.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. References: <1992Jul21.161251.7693@midway.uchicago.edu> <D88-JWA.92Jul21225659@dront.nada.kth.se> <1992Jul21.231124.26354@midway.uchicago.edu>
  10. Date: Wed, 22 Jul 1992 02:23:19 GMT
  11. Lines: 15
  12.  
  13. I'm trying to do some animation, and I want my drawing to be synchronized to
  14. the vertical retrace to avoid strange flicker problems. What's the simplest
  15. way to do this? I tried installing a vbl task that simply increments a global
  16. variable in my app every tick, and then synchronizing my drawing to changes in
  17. this tick counter variable. There may be an easier solution, I don't know. At
  18. any rate, I was unable to get the vbl task to work, because I couldn't seem to
  19. figure out how to use SetUpA5 and RestoreA5 as documented in IM 2. Think C 5.0
  20. complains that they are undefined. Did these traps get nuked somewhere since
  21. IM 2 was written? I believe that I should use SetUpA5 and RestoreA5 instead of
  22. SetUpA4 and RestoreA4 because my vbl task is part of an application, not an
  23. init. I've never done this before, though, so basically I don't have any idea
  24. what I'm doing. Any comments or advice would be appreciated. Thanks!
  25.  
  26. Steve Chamberlin
  27. slchambe@athena.mit.edu
  28.