kwin/plugins/platforms/x11/standalone
Arjen Hiemstra 9b3d9e58a4 ScreenEdge: Do not use localtime for measuring duration
Summary:
QDateTime::fromMSecSinceEpoch uses Qt::LocalTime by default. This involves an
expensive localtime conversion. So instead force things to use UTC, as there
is no need for timezone information when tracking durations.

This is especially noticeable on Bedrock Linux, which uses a Fuse mounted
/etc, which is slower than a plain /etc and causes quite some slowdown there.
See https://github.com/bedrocklinux/bedrocklinux-userland/issues/140 for
details.

Test Plan: The screenedge unit test still passes.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: zzag, anthonyfieroni, davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D27114
2020-02-03 12:26:17 +01:00
..
CMakeLists.txt [libkwineffects] Introduce API to easily show a QtQuick scene in an effect 2019-09-27 16:11:05 +01:00
edge.cpp
edge.h
effects_mouse_interception_x11_filter.cpp [effects] fix mouse wheel detection 2019-11-15 14:10:03 +00:00
effects_mouse_interception_x11_filter.h
effects_x11.cpp
effects_x11.h
glx_context_attribute_builder.cpp
glx_context_attribute_builder.h
glxbackend.cpp Revert "[platforms/x11] Remove triple buffering detection" 2020-01-16 10:00:20 +01:00
glxbackend.h Revert "[platforms/x11] Remove triple buffering detection" 2020-01-16 10:00:20 +01:00
logging.cpp
logging.h
non_composited_outline.cpp
non_composited_outline.h
overlaywindow_x11.cpp Use nullptr everywhere 2019-09-19 17:48:21 +03:00
overlaywindow_x11.h
screenedges_filter.cpp ScreenEdge: Do not use localtime for measuring duration 2020-02-03 12:26:17 +01:00
screenedges_filter.h
screens_xrandr.cpp
screens_xrandr.h
sync_filter.cpp Rename X11Client::getSyncRequest() to X11Client::syncRequest() 2020-01-28 21:46:09 +02:00
sync_filter.h
windowselector.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
windowselector.h
x11.json
x11_decoration_renderer.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
x11_decoration_renderer.h
x11_output.cpp
x11_output.h [platforms/x11] Delete duplicate doxygen comments in X11Output 2019-08-28 12:06:56 +03:00
x11_platform.cpp
x11_platform.h
x11cursor.cpp
x11cursor.h
xfixes_cursor_event_filter.cpp
xfixes_cursor_event_filter.h
xinputintegration.cpp
xinputintegration.h