Mail Archives: djgpp/1998/10/17/00:40:58
-----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 -