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