home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / atari / st / tech / 4127 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.9 KB  |  39 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!backus.pu.informatik.th-darmstadt.de!wallmann
  3. From: wallmann@backus.pu.informatik.th-darmstadt.de (Natuerlich!)
  4. Subject: Re: Is page flipping safe, and I need to know about syncing
  5. Sender: news@infoserver.th-darmstadt.de (The Usenet-News System)
  6. Message-ID: <1992Jul23.222019.27222@infoserver.th-darmstadt.de>
  7. Date: Thu, 23 Jul 1992 22:20:19 GMT
  8. References: <Bruq9M.FI7@acsu.buffalo.edu> <1992Jul23.184657.5699@wam.umd.edu>
  9. Nntp-Posting-Host: backus.pu.informatik.th-darmstadt.de
  10. Organization: MSD software vault #9 @THD
  11. Lines: 26
  12.  
  13. In article <1992Jul23.184657.5699@wam.umd.edu> dmb@wam.umd.edu (David M. Baggett) writes:
  14. >chu@acsu.buffalo.edu (John C. Chu) writes:
  15. >>Is it ok to use Setscreen to do double buffered animation (i.e., draw
  16. >>on one buffer while the other is being displayed and switch.
  17. >
  18. >The Setscreen and Vsync (X)Bios calls work fine for double buffering
  19. >(aka "page flipping").  There are some subtleties but for most
  20. >practical purposes you'll get good results using these calls and your
  21. >code will work with all versions of TOS (including, in theory, those
  22. For most practical purposes you do get good results with this.
  23.  
  24. BUT: the disadvantage is that you don't have precision page flipping. It 
  25. just may happen that on screen1 you are done drawing in 2 screens and flip 
  26. then, while on screen2 you need 3 screens. The net effect of that would
  27. be that if your flip rate is 4 that screen 1 will be displayed 5 VBIs, where 
  28. screen2 will be displayed only for 3 VBIs. If your game nears completion
  29. and you are not 100% satisfied with the animation I'd suggest that you
  30. use the VBL directly to flip pages (you can use Setscreen()) there too.
  31. Until then Setscreen() + Vsync() + frclock will suffice.
  32.  
  33.  
  34. Nat!
  35. -- 
  36. Email: wallmann@backus.pu.informatik.th-darmstadt.de
  37.          "Bang that bit that doesn't bang"
  38. Waiting for the time when chips are measured in color.
  39.