home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!pacbell.com!tandem!UB.com!igor!fensende!mcuddy
- From: mcuddy@fensende.Rational.COM (Mike Cuddy)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Safe double buffering
- Message-ID: <mcuddy.714096993@fensende>
- Date: 18 Aug 92 00:16:33 GMT
- Sender: news@Rational.COM
- Lines: 39
-
-
- I've got some routines for double buffering that work, however, are kinda
- pokey. (two bit-maps and ScrollVPort() ... gives only about 20 fps without
- doing any drawing on a 68000)
-
- What I'd like to do is to do the double-buffering like the example in the 1.3
- RKM and create two bitmaps, two views and two copper lists and swap them
- with LoadView(). (not hard)
-
- My question is: Here's my proposed main page-flip loop... is this right
- (legal?)
-
- ...
-
- /* here's the part I have a question about... */
- if (view.SHFCprList != cur_page_cpr_list[0] ) {
- /* open a window on workbench screen with a 'continue'
- ** gadget in it...
- */
- }
-
- cur_page_cpr_list = my_dbuf_copper_list[ cur_page ];
-
- view ... SHFCprList = cur_page_cpr_list;
-
- LoadView();
-
- ... etc ...
-
- Hope this makes sense... (BTW: how fast is LoadView() ? )
-
- --Mike Cuddy (mcuddy@rational.com, fensende!mcuddy@apple.com)
- To Anachreon in Heav'n/Where he sat in full glee/A few sons of harmony sent a
- petition/That he them inspi-re and patron would be/When this answer arrived/
- from the jolly old Grecian/"Boys fiddle and flute,/no longer be mute,/
- I'll lend 'ye my name/And inspire ya' ta' boot/And besides I'll instruct 'ye/
- like me, to entwine/ the Myrtle of Venus with Bacchus' vine!
- -- sing to the tune of the star spangled banner... (these are the orig words,
- yes folks, our national anthem is a ``let's get drunk and F*** song'').
-