CompositeViewer support: Difference between revisions

Jump to navigation Jump to search
m
m (→‎Swap Buffers: this is going to be relevant for Qt5 based PUI replacement in the future)
Line 232: Line 232:


=== Swap Buffers ===
=== Swap Buffers ===
The driver will be queuing up multiple frames in the FIFO, something it
does to help improve the framerate, but increases frame latency.
We aren't powerless in this though, modern drivers and hardware support
putting fences into the pipeline and waiting on these to be completed on
the GPU.  In the svn/trunk vesion of the OSG you'll find a swap buffers
SyncSwapBuffersCallback implementation that does this for you.  You can
enable this via the env var OSG_SYNC_SWAP_BUFFERS=ON, or --sync on the
command line for examples like osgviewer.<ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg68525.html</ref>
There is an OpenGL extension that supports syncronizing of swap
There is an OpenGL extension that supports syncronizing of swap
buffers across multiple graphics contexts that allows you to assigns
buffers across multiple graphics contexts that allows you to assigns

Navigation menu