kwin/plugins/platforms/drm
Vlad Zahorodnii b8a70e62d5 Introduce RenderLoop
At the moment, our frame scheduling infrastructure is still heavily
based on Xinerama-style rendering. Specifically, we assume that painting
is driven by a single timer, etc.

This change introduces a new type - RenderLoop. Its main purpose is to
drive compositing on a specific output, or in case of X11, on the
overlay window.

With RenderLoop, compositing is synchronized to vblank events. It
exposes the last and the next estimated presentation timestamp. The
expected presentation timestamp can be used by effects to ensure that
animations are synchronized with the upcoming vblank event.

On Wayland, every outputs has its own render loop. On X11, per screen
rendering is not possible, therefore the platform exposes the render
loop for the overlay window. Ideally, the Scene has to expose the
RenderLoop, but as the first step towards better compositing scheduling
it's good as is for the time being.

The RenderLoop tries to minimize the latency by delaying compositing as
close as possible to the next vblank event. One tricky thing about it is
that if compositing is too close to the next vblank event, animations
may become a little bit choppy. However, increasing the latency reduces
the choppiness.

Given that, there is no any "silver bullet" solution for the choppiness
issue, a new option has been added in the Compositing KCM to specify the
amount of latency. By default, it's "Medium," but if a user is not
satisfied with the upstream default, they can tweak it.
2021-01-06 16:59:29 +00:00
..
abstract_egl_drm_backend.cpp Introduce RenderLoop 2021-01-06 16:59:29 +00:00
abstract_egl_drm_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
CMakeLists.txt Drop Platform::createScreens() 2020-12-21 09:20:16 +00:00
drm.json SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
drm_backend.cpp Introduce RenderLoop 2021-01-06 16:59:29 +00:00
drm_backend.h Drop Platform::createScreens() 2020-12-21 09:20:16 +00:00
drm_buffer.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
drm_buffer.h Prettify license headers 2020-08-07 19:57:56 +00:00
drm_buffer_gbm.cpp Create egl backend for multiple backends and enable multi-gpu usage for the gbm backend 2020-11-28 17:53:41 +00:00
drm_buffer_gbm.h Create egl backend for multiple backends and enable multi-gpu usage for the gbm backend 2020-11-28 17:53:41 +00:00
drm_gpu.cpp Introduce RenderLoop 2021-01-06 16:59:29 +00:00
drm_gpu.h Introduce RenderLoop 2021-01-06 16:59:29 +00:00
drm_inputeventfilter.cpp Prefer function pointer to slot string 2020-11-07 02:56:44 +01:00
drm_inputeventfilter.h Prettify license headers 2020-08-07 19:57:56 +00:00
drm_object.cpp Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object.h Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object_connector.cpp Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object_connector.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_object_crtc.cpp Automatically detect the proprietary NVidia driver and use EGLStreams accordingly 2020-10-25 17:47:58 +00:00
drm_object_crtc.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_object_plane.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
drm_object_plane.h Prettify license headers 2020-08-07 19:57:56 +00:00
drm_output.cpp Introduce RenderLoop 2021-01-06 16:59:29 +00:00
drm_output.h Introduce RenderLoop 2021-01-06 16:59:29 +00:00
drm_pointer.h Automatically detect the proprietary NVidia driver and use EGLStreams accordingly 2020-10-25 17:47:58 +00:00
edid.cpp wayland: Make sure EDID are being fed to wayland outputs 2020-10-29 14:57:50 +00:00
edid.h wayland: Make sure EDID are being fed to wayland outputs 2020-10-29 14:57:50 +00:00
egl_gbm_backend.cpp platforms/drm: Present buffers even if nothing has been changed 2021-01-06 16:59:29 +00:00
egl_gbm_backend.h Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
egl_multi_backend.cpp Introduce RenderLoop 2021-01-06 16:59:29 +00:00
egl_multi_backend.h Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
egl_stream_backend.cpp Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
egl_stream_backend.h Swap buffers after finishing a compositing cycle 2021-01-06 16:59:29 +00:00
gbm_dmabuf.cpp Do not try to create a gbm dmabuf when gbm is not available 2020-09-15 15:45:44 +02:00
gbm_dmabuf.h Prettify license headers 2020-08-07 19:57:56 +00:00
gbm_surface.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
gbm_surface.h Prettify license headers 2020-08-07 19:57:56 +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_drm_backend.cpp Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
scene_qpainter_drm_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00