[SDL] Triple buffering part 2

David Olofson david.olofson at reologica.se
Fri Mar 8 06:00:01 PST 2002


On Friday 08 March 2002 14:33, Dominique Louis wrote:
> Hi David and Martijn
>
> David Olofson wrote:
> > Double buffering with h/w pageflipping is a thing of the past. Triple
> > buffering is the way to go. (Unless you have an RTOS and RT video
> > drivers...)
>
> I have obviously not been keeping up with the latest development in
> this area and will now look upon triple buffering as the way to go.

There; now we're getting somewhere! ;-)


Seriously, are there any serious obstacles in the internals of SDL WRT 
supporting triple buffering on targets that can do it?

It would just be a new flag, and only a "suggestion". That is, SDL may 
still give you a single + shadow or double buffer screen , if triple 
buffering isn't possible. New applications running on older SDL versions 
would simply think that triple buffering isn't available, so there's no 
binary level API compatibility problem here.

Of course, it would be nice if the new flag is passed on to the resulting 
surface, if triple buffering is actually used, so that "smart" 
applications that do partial updates can know how many buffers there 
actually are.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'




More information about the SDL mailing list