www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/13/18:40:29

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: FASTEST DOUBLE BUFFERING?
Date: Wed, 13 Jan 1999 23:13:02 -0000
Organization: Customer of Planet Online
Lines: 37
Message-ID: <77j9i4$umh$1@news5.svr.pol.co.uk>
References: <76jocl$lf0$1 AT ns DOT mtu DOT ru> <19990113010351 DOT 01578 DOT 00009727 AT ng36 DOT aol DOT com>
NNTP-Posting-Host: modem-88.thalidomide.dialup.pol.co.uk
X-Trace: news5.svr.pol.co.uk 916269444 31441 62.136.88.216 (13 Jan 1999 23:17:24 GMT)
NNTP-Posting-Date: 13 Jan 1999 23:17:24 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eselk wrote in message <19990113010351 DOT 01578 DOT 00009727 AT ng36 DOT aol DOT com>...
>>You should consider using page flipping instead of double-buffering. As a
>>matter of fact, it's almost the same as double buffering with one except:
>>you do your rendering right into videomemory, so no data moving is needed.
>>You just change visible area on the screen from one page to another and so

>>on - this is obviously faster than double buffering


I would just like to disagree with the above and agree with the below :-)
Alot of computers have slower video memory than main memory. Rendering
direct
to video ram will not be very efficient (I think the video bandwidth will
cause bottlenecks
as well).
Possible the best way IMHO would be to:

- Render to a buffer in main memory
- Blit main memory over to the hidden video memory (should be very fast esp.
when
  optimised :-)
- Flip the active page over to the hidden page during the vertical retrace

if there is no hidden video memory (not all graphics cards have enough
memory) then
you can blit direct to the visible page during the retrace.

>Depending on your target market.  Many people still have slower VIDEO RAM
then
>CPU RAM, and in most VGA modes BANKS will slow you down and make programing
>virtual pages even slower.
>
>I like to use FPUCOPY on pentium machines for moving the double buffer.
Pretty
>fast.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019