openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.21k stars 1.42k forks source link

Implement X11 HW-synced swapping using glXJoinSwapGroupNV, glXBindSwa… #1336

Open Binary-Eater opened 6 days ago

Binary-Eater commented 6 days ago

…pBarrierNV, and the existing traits

This change is meant to be analogous to commit 634344aef504 ("From Marius Heise, "here is a patch that implements Win32 HW-synced swapping using wglJoinSwapGroupNV, wglBindSwapBarrierNV and the existing traits. It was tested with multiple ATI FirePro S400 cards.") for the X11 backend. Tested using multiple NVIDIA A5000 cards. The NVIDIA driver stack requires that the swap group join and bind calls occur on the same thread context that is doing the swap buffer operation.