Results 1 to 5 of 5

Thread: Triple-buffer in OpenGL?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Bulgaria, Sofia
    Posts
    21

    Triple-buffer in OpenGL?

    How can I use triple frame buffer in OpenGL?

    I saw some DirectX demos (and games) using triple-buffer, but how to do this in OpenGL?

    (by the way, I'm working with Windows if a decision is in some WGL function)

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: Triple-buffer in OpenGL?

    not possible

  3. #3
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,342

    Re: Triple-buffer in OpenGL?

    There's no way to control that in OpenGL, but the driver may select to run in tripplebuffered mode.

  4. #4
    Member Contributor
    Join Date
    Feb 2001
    Posts
    89

    Re: Triple-buffer in OpenGL?

    I sohuldn't think there's any benefit in using three buffers... You only need to draw to one and read from the other, and switch the one you read/write to/from for the next frame. wtf is so hard about that, and how does triple buffering help? (yes, ima n00b)
    -pATCheS

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Bulgaria, Sofia
    Posts
    21

    Re: Triple-buffer in OpenGL?

    Triple-buffer has a benefit when V-Synch of your video-card is enabled (that is a MUST for normal playnig) I think. Example:
    You drawing in back buffer. When you ready you call API to swap buffers, but API doesn't return until buffers are really swapped (and with V-Synch on you can swap then only when its time to draw another frame on monitor) and you must wait a bit. With triple-bufer you don't need to wait, when back-buffer One is rendered you call swap API and continue to render in back-buffer Two.
    It's all about for a little FPS enhance(more on a system with low monitor refresh rate) at the cost of more video-memory.

Similar Threads

  1. Using Shader Buffer Objects with Double or Triple Buffering
    By saski in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-08-2017, 01:31 PM
  2. Wait for VerticalBlank and triple-buffer
    By Phoenix in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-16-2004, 08:48 AM
  3. Triple Buffer
    By mishuk in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-07-2003, 07:48 PM
  4. Triple Buffer
    By PlayBoy in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-13-2002, 12:14 AM
  5. Triple Buffer
    By Hazem_vb in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 10-02-2002, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean