You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
4 years ago
..
CMakeLists.txt Introduce RenderLoop 4 years ago
edge.cpp
edge.h
effects_mouse_interception_x11_filter.cpp
effects_mouse_interception_x11_filter.h
effects_x11.cpp
effects_x11.h
eglbackend.cpp Introduce RenderLoop 4 years ago
eglbackend.h Introduce RenderLoop 4 years ago
glx_context_attribute_builder.cpp
glx_context_attribute_builder.h
glxbackend.cpp Introduce RenderLoop 4 years ago
glxbackend.h Introduce RenderLoop 4 years ago
logging.cpp
logging.h
non_composited_outline.cpp
non_composited_outline.h
omlsynccontrolvsyncmonitor.cpp Introduce RenderLoop 4 years ago
omlsynccontrolvsyncmonitor.h Introduce RenderLoop 4 years ago
overlaywindow_x11.cpp
overlaywindow_x11.h
screenedges_filter.cpp
screenedges_filter.h
sgivideosyncvsyncmonitor.cpp Introduce RenderLoop 4 years ago
sgivideosyncvsyncmonitor.h Introduce RenderLoop 4 years ago
windowselector.cpp
windowselector.h
x11.json
x11_decoration_renderer.cpp
x11_decoration_renderer.h
x11_output.cpp
x11_output.h
x11_platform.cpp Introduce RenderLoop 4 years ago
x11_platform.h Introduce RenderLoop 4 years ago
x11cursor.cpp
x11cursor.h
x11placeholderoutput.cpp
x11placeholderoutput.h
x11xrenderbackend.cpp Introduce RenderLoop 4 years ago
x11xrenderbackend.h Introduce RenderLoop 4 years ago
xfixes_cursor_event_filter.cpp
xfixes_cursor_event_filter.h
xinputintegration.cpp
xinputintegration.h