kwin/platformsupport/scenes/opengl
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
..
abstract_egl_backend.cpp
abstract_egl_backend.h
backend.cpp Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
backend.h
CMakeLists.txt
drm_fourcc.h
egl_dmabuf.cpp
egl_dmabuf.h
kwineglext.h
swap_profiler.cpp
swap_profiler.h
texture.cpp
texture.h