Patryk Czachurski
Patryk Czachurski

Reputation: 3071

Few questions about multiple buffering in OpenGL on Windows

I've seen this but it says nothing about triple buffering and the actual methods.

  1. What is the most common way modern games perform triple buffering ?
  2. What does the SwapBuffers exactly do in terms of OpenGL states ?
  3. Is it possible to perform double and triple buffering independently of window system (for example, by manipulating with glDrawBuffer or by using FBO/PBO) ?
  4. Does 3. even make sense in terms of performance and flexibility ?

Upvotes: 1

Views: 362

Answers (1)

bsdunx
bsdunx

Reputation: 147

As per OpenGL common mistakes on triple buffering:

You cannot control whether a driver does triple buffering. You could try to implement it yourself using a FBO. But if the driver is already doing triple buffering, your code will only turn it into quadruple buffering. Which is usually overkill.

SwapBuffers instructs the driver to swap or copy between the front and back buffer, it is not an OpenGL command.

Upvotes: 3

Related Questions