Message-ID: <001301bdf988$06639560$b36f19c4@default> From: rylan AT intekom DOT co DOT za (StefanViljoen,6599) To: "Jameson" Cc: Subject: Re: Bad Flicker Date: Fri, 16 Oct 1998 08:17:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 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.