kwin/platformsupport/scenes
Vlad Zahorodnii 0ceff5fd24 Swap buffers after finishing a compositing cycle
The compositing timing algorithm assumes that glXSwapBuffers() and
eglSwapBuffers() block. While this was true long time ago with NVIDIA
drivers, nowadays, it's not the case. The NVIDIA driver queues
several buffers in advance and if the application runs out of them,
it will block. With Mesa driver, swapping buffer was never blocking.

This change makes the render backends swap buffers right after ending
a compositing cycle. This may potentially block, but it shouldn't be
an issue with modern drivers. In case it gets proven, we can move
glXSwapBuffers() and eglSwapBuffers() in a separate thread.

Note that this change breaks the compositing timing algorithm, but
it's already sort of broken with Mesa drivers.
2021-01-06 16:59:29 +00:00
..
opengl Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
qpainter Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
xrender platforms/x11: Move XRenderBackend to platformsupport directory 2020-12-08 08:50:19 +00:00
CMakeLists.txt Fix KWIN_BUILD_XRENDER_COMPOSITING build option 2020-12-08 11:23:12 +02:00