kwin/effects
Vlad Zahorodnii 9f2cb0ae1b Provide expected presentation time to effects
Effects are given the interval between two consecutive frames. The main
flaw of this approach is that if the Compositor transitions from the idle
state to "active" state, i.e. when there is something to repaint,
effects may see a very large interval between the last painted frame and
the current. In order to address this issue, the Scene invalidates the
timer that is used to measure time between consecutive frames before the
Compositor is about to become idle.

While this works perfectly fine with Xinerama-style rendering, with per
screen rendering, determining whether the compositor is about to idle is
rather a tedious task mostly because a single output can't be used for
the test.

Furthermore, since the Compositor schedules pointless repaints just to
ensure that it's idle, it might take several attempts to figure out
whether the scene timer must be invalidated if you use (true) per screen
rendering.

Ideally, all effects should use a timeline helper that is aware of the
underlying render loop and its timings. However, this option is off the
table because it will involve a lot of work to implement it.

Alternative and much simpler option is to pass the expected presentation
time to effects rather than time between consecutive frames. This means
that effects are responsible for determining how much animation timelines
have to be advanced. Typically, an effect would have to store the
presentation timestamp provided in either prePaint{Screen,Window} and
use it in the subsequent prePaint{Screen,Window} call to estimate the
amount of time passed between the next and the last frames.

Unfortunately, this is an API incompatible change. However, it shouldn't
take a lot of work to port third-party binary effects, which don't use the
AnimationEffect class, to the new API. On the bright side, we no longer
need to be concerned about the Compositor getting idle.

We do still try to determine whether the Compositor is about to idle,
primarily, because the OpenGL render backend swaps buffers on present,
but that will change with the ongoing compositing timing rework.
2020-12-10 07:14:42 +00:00
..
backgroundcontrast Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
blur Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
colorpicker Prettify license headers 2020-08-07 19:57:56 +00:00
coverswitch Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
cube Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
cubeslide Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
desktopgrid Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
dialogparent/package Drop empty X-KDE-PluginInfo-Depends 2020-09-01 09:11:48 +00:00
diminactive Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
dimscreen/package Prettify license headers 2020-08-07 19:57:56 +00:00
eyeonscreen/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-10-11 06:01:48 +02:00
fade SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
fadedesktop SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
fadingpopups/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
fallapart Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
flipswitch Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
frozenapp/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
fullscreen/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-11-16 06:14:08 +01:00
glide Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
highlightwindow Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
invert Remove defunct calls to KAboutData::pluginInfo 2020-10-22 09:43:52 +00:00
kscreen Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
login/package Drop empty X-KDE-PluginInfo-Depends 2020-09-01 09:11:48 +00:00
logout/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
lookingglass Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
magiclamp Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
magnifier Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
maximize/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-12 06:11:10 +02:00
morphingpopups/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
mouseclick Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
mousemark If include is define in .h remove it if it's defined in .cpp too (scripted) 2020-10-23 21:37:16 +02:00
presentwindows Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
resize Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
scale/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
screenedge Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
screenshot The client may have closed itself here,will cause kwin to crash 2020-11-03 19:25:29 +08:00
sessionquit/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
sheet Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
showfps Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
showpaint Remove defunct calls to KAboutData::pluginInfo 2020-10-22 09:43:52 +00:00
slide Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
slideback Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
slidingpopups Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
snaphelper Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
squash/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
startupfeedback Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
thumbnailaside Remove defunct calls to KAboutData::pluginInfo 2020-10-22 09:43:52 +00:00
touchpoints Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
trackmouse Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
translucency/package Drop empty X-KDE-PluginInfo-Depends 2020-09-01 09:11:48 +00:00
windowaperture/package SVN_SILENT made messages (.desktop file) - always resolve ours 2020-10-11 06:01:48 +02:00
windowgeometry Remove defunct calls to KAboutData::pluginInfo 2020-10-22 09:43:52 +00:00
wobblywindows Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
zoom Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
CMakeLists.txt [effects/fullscreen] Add effect that animates full screen changes 2020-09-09 18:18:16 +00:00
effect_builtins.cpp Add config module information to builtin effects 2020-11-08 13:36:32 +00:00
effect_builtins.h Add config module information to builtin effects 2020-11-08 13:36:32 +00:00
kwineffect.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2020-07-23 06:10:20 +02:00
logging.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
Messages.sh Extract messages from header file as well, optimize extraction 2020-02-16 11:55:17 +02:00
shaders.qrc Merge branch 'Plasma/5.12' into Plasma/5.15 2019-02-05 13:28:45 +01:00