Mail Archives: djgpp/1998/07/18/20:13:26
From: | temujin <temujin AT sentex DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Allegro and blitting to screen
|
Date: | Sat, 18 Jul 1998 19:48:41 -0400
|
Organization: | Sentex Communications
|
Lines: | 24
|
Message-ID: | <35B13459.B44@sentex.net>
|
References: | <6onnuh$12p$2 AT oravannahka DOT Helsinki DOT FI>
|
NNTP-Posting-Host: | 209.112.40.61
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Tuomo A Turunen wrote:
>
> HELP !!??
> I'm programming a very nice game with DJGPP and allegro. I use SVGA
> 640*480*256 colors, so graphic looks good. But the problem is the
> double buffering. It's just too slow. Example :
>
> BITMAP *buffer = create_bitmap(640, 480);
>
> clear(buffer);
> while( game_continues) {
> // some drawwing on the buffer
> blit(buffer, screen, 0, 0, 0, 0, 640, 480);
> }
>
> That is a the only way I can think of, but itsn't fast enough.
> So is there any faster way to do that 'blit(buffer, screen, ...)' ???
>
> Tuomo Turunen
Have you tried Page flipping. If your using 256 colours most SVGA cards
will be able to handle it, (ones with 1 meg on it). I've found that
using page flipping cuts down my re-draw time in about half compared to
double buffering.
- Raw text -