delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/30/15:01:38

Message-ID: <368A863A.A191E5DC@net4you.co.at>
Date: Wed, 30 Dec 1998 20:59:54 +0100
From: Seawolf <seawolf AT net4you DOT co DOT at>
X-Mailer: Mozilla 4.07 [de] (Win98; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Speed problem
References: <199812292353 DOT XAA21776 AT remus>
Reply-To: djgpp AT delorie DOT com

> > Redrawing the whole screen in a 640x480x256 graphics mode is too slow on
> > many
> > machines. Is there a faster way? It consists of a 3 layers: background,
> > car-layer and
> > animation layer (like Bapple2). Dirty-rectangles doesn't work because
> > the background
> > always changes. Please help!
>
> What do you mean by "many machines"? Are you using VESA, FreeBE/AF, or
> Mode-X screen modes?

"many machines"=many computers
I'm using the VESA mode 640x480 with a color depth of 8 bits.

> Also make sure that you're not clearing the screen, since you don't need to.
> This takes a lot of processor time and isn't usually needed. Try a different
> method of drawing the screen. Instead of double buffering, try page flipping
> or triple buffering.

I simply redraw the background instead of clearing.
Page flipping flickers in my 640x480x8 VESA mode.
How does triple buffering work? (sorry about this dumb question ;)
Allegro comes with a triple buffering example but could you maybe
explain it to me please?


> James Arthur - jaa AT arfa DOT clara DOT net
> http://www.jado.org/users/arfa/
> ICQ#15054819

- Raw text -


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