Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: sync to vertical blank with single-buffered window

  1. #1
    Member Regular Contributor
    Join Date
    Apr 2004

    sync to vertical blank with single-buffered window

    why would anyone want to use single-buffered window?

    sometimes one needs to render the scene in FBOs: they provide freedom to dynamically combine different color/depth/stencil buffers (the default frame buffer does not allow this). Also this way the rendered scene can be available as a texture to be used for post-precessing effects and such.

    when the scene is ready in a FBO, one just need to copy it to the window. double-buffering is not useful here - it would only consume video memory and adds one more copying (if SwapBuffers is unable to flip the buffers like in windowed mode).

    It would be useful if the gl could be instructed to do glBlitFramebuffer to a window at the next vertical blank.

    Please add a command (e.g. *WaitForVerticalBlank) that causes the next *SwapBuffers or glBlitFramebuffer to a window to wait for the vertical blank.
    Or extend *_EXT_swap_control to have the same effect on glBlitFramebuffer to a window as on *SwapBuffers.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007

    Re: sync to vertical blank with single-buffered window


    What I would need the most from this is access to the buffers of the current framebuffer. This is already supported by D3D.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts