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
edge.cpp
edge.h
effects_mouse_interception_x11_filter.cpp
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
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
windowselector.h
x11.json
x11_decoration_renderer.cpp
x11_decoration_renderer.h
x11_output.cpp
x11_output.h
x11_platform.cpp
x11_platform.h
x11cursor.cpp
x11cursor.h
xfixes_cursor_event_filter.cpp
xfixes_cursor_event_filter.h
xinputintegration.cpp
xinputintegration.h