kwin/platformsupport/scenes/opengl
Roman Gilg 8d13729031 [platforms/x11] Never block on retrace, always present after paint
Summary:
Compositing in X11 was done time shifted, meaning that we paint first, then
wait one vblank interval length and present on prepareRenderingFrame the
previous paint result. This is supposed to make sure we don't miss the vblank
and in case of block till retrace be able to continue issuing commands and
only shortly before next vblank present.

This is counter-intuitiv, not how we do it on Wayland or even on MESA with X.
The reason seems to be that the GLX backend was in the beginning written
against Nvidia proprietary driver which needed this but nowadays even this
driver defaults to non-blocking behavior on buffer swap.

Therefore remove this legacy anomaly fully and directly present after paint.
We then wait one refresh cycle and in the future can optimize this by delaying
the paint and present till shortly before vsync.

Test Plan: kwin_x11 tested on i915 and Nvidia proprietary driver.

Reviewers: #kwin

Subscribers: zzag, alexeymin, kwin

Tags: #kwin

Maniphest Tasks: T11071

Differential Revision: https://phabricator.kde.org/D23514
2019-11-14 09:03:44 +01:00
..
abstract_egl_backend.cpp Merge branch 'Plasma/5.17' 2019-10-29 12:12:02 +01:00
abstract_egl_backend.h Port QPA away from Wayland 2019-09-23 17:28:56 +03:00
backend.cpp [platforms/x11] Never block on retrace, always present after paint 2019-11-14 09:03:44 +01:00
backend.h [platforms/x11] Never block on retrace, always present after paint 2019-11-14 09:03:44 +01:00
CMakeLists.txt [platforms/x11] Remove triple buffering detection 2019-11-14 08:38:36 +01:00
drm_fourcc.h [wayland] Add support for zwp_linux_dmabuf 2019-08-06 21:55:45 +02:00
egl_dmabuf.cpp Dmabuf recovery on EGL reset 2019-10-29 12:10:15 +01:00
egl_dmabuf.h Dmabuf recovery on EGL reset 2019-10-29 12:10:15 +01:00
texture.cpp Move SceneOpenGL into a dedicated plugin 2017-09-30 13:12:10 +02:00
texture.h [platformsupport] Minor code style and class variables access changes 2019-06-27 15:22:40 +02:00