[AD] Triple Buffering under X?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I tried experimenting with a triple buffering interface under X11 by 
handling the scroll of the screen from a seperate background thread.
This works, although my code is far from clean or robuste (it's just a 
quick hack for now).
Does anyone think it could be useful to pursue this further? I get roughly 
50-60 FPS from the exupdate example using triple buffering, compared to 
about 90 FPS using plain page flipping. It's still better than plain 
double buffering though, which gives me around 20 FPS.

I'd like to have triple buffering or triple buffering emulation under X so 
that I can test my programs that are supposed to use it. As the above test 
indicates, it's neither a fast not efficient way to update the screen 
under X (but maybe my implementation is too naive) however. I also feel 
Allegro needs less internal threading, at least until the item `make the 
library internally thread-safe' has been purged from the TODO list ;)

Evert





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/