// JP opened flex table

Click to See Complete Forum and Search --> : OpenGL double buffer: not swap buffers, only copy back to front?


Lixiang
December 15th, 2003, 10:49 PM
In my application, there're many static objects to be drawn, which cost much time, and there're a few dynamic objects, which are drawn fast.

Using double buffer(SwapBuffers()), every time the dynamic objects drawn, it must draw static objects also. this will make dynamic drawing slow.

Anyway to let back buffer copy to front buffer only, not make front buffer to be back? Using copypixels I think is also slow?

Marc G
December 17th, 2003, 05:07 AM
Well if those objects are really static, meaning lighting on them etc also does not change, you can try to render your static objects to a texture once. Then for every frame just draw this texture first and then render you dynamic objects.

//JP added flex table