home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / programm / 5191 < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.9 KB  |  37 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!psinntp!blkbox!collins
  3. From: collins@blkbox (Chad R. Collins)
  4. Subject: Re: Triple Buffering: Maybe..
  5. Organization: The Black Box, PO Box 591822 Houston, TX 77259-1822 
  6. Date: Sat, 26 Dec 1992 16:34:36 GMT
  7. Message-ID: <1992Dec26.163436.11402@blkbox>
  8. References: <1992Dec21.171731.26731@midway.uchicago.edu> <1992Dec22.202057.18233@blkbox> <709@muller.loria.fr> <1992Dec24.185505.27786@mprgate.mpr.ca> <1992Dec24.152230@betsy.gsfc.nasa.gov> <1992Dec24.223839.29198@mprgate.mpr.ca> <1hf8n9INN8c3@uniwa.uwa.edu.au>
  9. Keywords: buffering
  10. Lines: 25
  11.  
  12.     Well, I was originally looking at triple buffering as a way to 
  13. elimate that damn strobing affect, but I kinda gave up on it for the simple
  14. reason that if your draw rate is faster than the flip rate, you will
  15. eventually be waiting for the flip or if it is slower you will eventually
  16. fall behind. But how about this as an alternative:
  17.  
  18.     Instead of using all three screens in a show/draw sequence, use
  19. two of them for a show/show sequence and the third for drawing. When the
  20. third screen is done being drawn, you copy the page to the visible screens,
  21. first to the one that is currently hidden and after the page flip
  22. to the formerly visible screen.
  23.     Now, of course you are going to loose a bit of time copying the
  24. screens, but 32-bit copying is pretty darn quick. The question is, would
  25. this elimate the strobing effect? Or, as a more memory efficient way,
  26. just use one visible screen and do the copying during the vertical retrace,
  27. elimating the page flipping all together.
  28.     What I am mainly looking for is a way to generate frames using more
  29. time than the vertical retrace without strobes- I mean, if you can keep
  30. things above 30 frames/sec, it should look pretty good. I wanted to get
  31. some more input on this stuff as the only way I have found to stop the
  32. images strobing is to keep the frame rate around 60.... :(
  33.  
  34. Chad R. Collins
  35. collins@blkbox.com
  36.  
  37.