kwin/plugins/platforms/x11/windowed
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
..
CMakeLists.txt Cleanup style in CMakeLists.txt files 2019-09-17 16:03:05 +03:00
egl_x11_backend.cpp Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
egl_x11_backend.h Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
logging.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
logging.h Prettify license headers 2020-08-07 19:57:56 +00:00
scene_qpainter_x11_backend.cpp Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
scene_qpainter_x11_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
x11.json SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
x11windowed_backend.cpp Drop Platform::createScreens() 2020-12-21 09:20:16 +00:00
x11windowed_backend.h Drop Platform::createScreens() 2020-12-21 09:20:16 +00:00
x11windowed_output.cpp wayland: Make sure EDID are being fed to wayland outputs 2020-10-29 14:57:50 +00:00
x11windowed_output.h Prettify license headers 2020-08-07 19:57:56 +00:00