delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/31/03:35:48

Message-ID: <368A8666.F52A1549@net4you.co.at>
Date: Wed, 30 Dec 1998 21:00:38 +0100
From: Seawolf <seawolf AT net4you DOT co DOT at>
X-Mailer: Mozilla 4.07 [de] (Win98; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Speed problem
NNTP-Posting-Host: 194.177.154.86
X-Trace: 30 Dec 1998 20:59:13 +0100, 194.177.154.86
Lines: 39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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