C (296/304)

From:Allan Odgaard
Date:31 Aug 2000 at 21:01:51
Subject:Triple buffering (was: Re: CGX and Bitmaps)

On 31-Aug-00, Robert Kihl wrote:

>>> It also means you don`t have to synch with the vertical blank if I
>>> nderstand what I`ve been told.
>> hmm... I don't see how that should be possible [...]
> [...] the difference is that with triple buffering the program
> doesn't have to wait for the switch to start rendering the next
> frame since it has an extra buffer [...]

Well, after you've filled both buffers, you'll have to wait for a vb
before you again can render, and the switch here only gives you one
free buffer, so after filling this, you'll again have to wait etc.
So with regard to this then I see no real difference compared to normal
double buffering, where your phenomena also arise during the first
frame, instead of the first two ;-)

Of cause you can be really lucky, with my proposed scenario of having
the first 9 frames be able to render 1 and 1/10th of a frame each, and
the 10th frame actually taking two frames to compute, but I can't
really imagine such a scenario take place in a real game, as heavy
frames normally comes in a bundle, and are not optimally spread out
over the entire sequence...

Regards Allan