delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/17/00:40:58

Message-ID: <001301bdf988$06639560$b36f19c4@default>
From: rylan AT intekom DOT co DOT za (StefanViljoen,6599)
To: "Jameson" <kids AT i-55 DOT com>
Cc: <djgpp AT delorie DOT com>
Subject: Re: Bad Flicker
Date: Fri, 16 Oct 1998 08:17:33 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Reply-To: djgpp AT delorie DOT com

-----Original Message-----
From: Jameson <kids AT i-55 DOT com>
Newsgroups: comp.os.msdos.djgpp
Date: Friday, October 16, 1998 1:49 AM
Subject: Bad Flicker


>I am trying to make a program that utilises allegro's GFX abilities,but I
>have a terrible flicker because I make the program clear the screen every
>frame.Does anyone know how to prevent this??Or even another way to do it??


There is a technique you can use that is called double buffering. What this
implies is to do the clear screen you refer to above to a hidden Allegro
bitmap, not the screen. All that you do this is repeatedly copy this hidden
buffer to the screen bitmap. This is quite a fast, efficient technique and
holds flicker down to a minimum, if any flicker at all.

Mail me if you want code.



- Raw text -


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