Mail Archives: djgpp/1998/07/19/17:31:31
a DOT gillett AT virgin DOT net (Andrew R. Gillett) writes:
>In comp.os.msdos.djgpp, article <6onnuh$12p$2 AT oravannahka DOT Helsinki DOT FI>,
>Tuomo A Turunen (tuturune AT cc DOT helsinki DOT fi) 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.
>I've never understood the point of double-buffering. Are there any
>advantages over page flipping?
Some time ago I made some tests in 640*480*256 mode. I have an P100
machine, with some very bad SVGA card.
My test program used the whole screen. First, I tried page flipping.
It was annoyingly slow, so I decided to try double buffering,
because it was very quick to code. The speed gain was unbelievable.
The blit was about two times as quick as with double buffering.
I think that the cause of this effect was the slowness of
video memory, but I am not sure.
So, in my experience drawing to video memory can be very slow, and
double buffering a viable option sometimes.
--
--
Mikko Parviainen
IMTU tc+ tm++ tn+ ru+ ge++ 3i+ jt-- jd++ pi au st- ls kk hi++ dr++ as+
va+ so- zh+ da++
- Raw text -