mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 14:53:03 +00:00
f37de23dec
Neither glXCopySubBuffer or glBlitFramebuffer are integrated with the swap interval of a framebuffer so that means when we do partial stage updates (as Mutter does in response to window damage) then the blits aren't throttled which means applications that throw lots of damage events at the compositor can effectively cause Clutter to run flat out taking up all the system resources issuing more blits than can even be seen. This patch now makes sure we use the GLX_SGI_video_sync or a DRM_VBLANK_RELATIVE ioctl to throttle blits to the vblank frequency as we do when using glXSwapBuffers.