home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12415 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.7 KB

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