Is triple buffering really a free performance boost?

amara picture amara · Jun 21, 2010 · Viewed 23.4k times · Source

So I've been reading a lot about openGL and gpus and graphics in general, and triple buffering is semi-frequently mentioned as giving a free performance boost. I know why it helps; in effect, you can do v-sync without being limited to a framerate choice of 60 or 30 or 20 or 15 or etc, so you can actually achieve, say, 55fps. But is there actually a cost to this? Intuitively, I'd expect triple buffering to delay output by one frame, adding a very small lag to everything.

Answer

cHao picture cHao · Jun 21, 2010

At 55 FPS, one frame is a bit under 20ms. So it's not quite free, but it's almost always well worth the cost.

At 15 FPS, though, it can be pretty noticeable. (BTW, this is a POS laptop. Most 3D games run about that fast for me. Some even slower.)

Some people notice the lag, especially at lower frame rates, and sometimes triple buffering doesn't work quite as expected. (In OpenGL, in particular, something that's not supported well by the hardware can fall back to (potentially very slow) software emulation. Shouldn't be much of an issue these days, but eh.) So most programs that use triple buffering also include an option to disable it. You may want to consider doing the same.