home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7746 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4m)
  2. MIME-Version: 1.0
  3. Subject: Re: Fastest way to display things on a screen?
  4. References: <4l0pi6$gus@mn5.swip.net> <4l2qdn$akr@news.rwth-aachen.de> <4l80lm$9nl@marti.uji.es>
  5. Content-Type: text/plain; charset=us-ascii
  6. Content-Transfer-Encoding: 7bit
  7. Path: imada.ou.dk!breese
  8. From: breese@imada.ou.dk (Bjorn Reese)
  9. Message-ID: <1996Apr21.132507.7212@imada.ou.dk>
  10. Sender: news@imada.ou.dk
  11. Nntp-Posting-Host: gounod.imada.ou.dk
  12. Organization: Dept. of Math. & Computer Science, Odense University, Denmark
  13. Date: Sun, 21 Apr 1996 13:25:07 GMT
  14. Newsgroups: comp.sys.amiga.programmer
  15.  
  16. Acereda Macia Jorge wrote:
  17. > Smooth? I've written some code to test the intuition double
  18. > buffering routines and the results are not good enough :-(
  19.  
  20. [... examples of where double buffering goes wrong deleted ...]
  21.  
  22. The only stable scheme I was able to come up with is based on
  23. WaitTOF() rather than the dbuf messages. (I know that it's a
  24. hack, but nobody has been able to convince me of a better scheme)
  25.  
  26.   while (!terminated) {
  27.     do {
  28.       HandleIDCMP();
  29.       result = ChangeScreenBuffer(...);
  30.       WaitTOF();
  31.     } while (result = 0);
  32.     /* do funky stuff */
  33.     ...
  34.   }
  35.  
  36. -- 
  37. Bjorn Reese                      Email: breese@imada.ou.dk
  38. Odense University, Denmark       URL:   http://www.imada.ou.dk/~breese
  39.  
  40. "It's getting late in the game to show any pride or shame" - Marillion
  41.