home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12807 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!specklec.mpifr-bonn.mpg.de!mlelstv
  3. From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
  4. Subject: Re: Double buffering and flicker..
  5. Message-ID: <1992Aug28.084534.7271@mpifr-bonn.mpg.de>
  6. Keywords: WaitBOVP() and WaitTOF()...
  7. Sender: news@mpifr-bonn.mpg.de
  8. Nntp-Posting-Host: specklec
  9. Organization: Max-Planck-Institut f"ur Radioastronomie
  10. References: <mcuddy.714894318@fensende>
  11. Date: Fri, 28 Aug 1992 08:45:34 GMT
  12. Lines: 28
  13.  
  14. In <mcuddy.714894318@fensende> mcuddy@fensende.Rational.COM (Mike Cuddy) writes:
  15. >LoadView()), and just before I do the LoadView(), I do a WaitTOF().  
  16.  
  17. Try LoadView() before WaitTOF().
  18.  
  19. >Unfortunately, when I do this, the double buffering flickers like mad!
  20. >(The graphics can't be seen while they're being drawn, so I know I'm
  21. >drawing on the right page...)
  22.  
  23. Hmm. Not so sure. LoadView() queues the view to be installed at next
  24. vblank (via the graphics.library intserver). WaitTOF() puts your task
  25. to sleep until all vblank servers have executed.
  26. If you use WaitTOF(), then LoadView() you still have the previous view
  27. visible up to the next vblank.
  28.  
  29. >The catch is, when I use WaitBOVP() with the last ViewPort in my view, 
  30. >everything works fine. But, according to the RKM, WaitBOVP() busy waits, 
  31. >and that's bad. (I'm trying to be system friendly!)
  32.  
  33. WaitBOVP() will finish _before_ the vblank servers have executed (well,
  34. depends on how fast/loaded your machine is).
  35.  
  36. Regards,
  37. -- 
  38. Michael van Elst
  39. UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
  40. Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
  41.                                 "A potential Snark may lurk in every tree."
  42.