kwin/plugins/platforms
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
..
drm Revert "Remove vsync detection and configurability" 2020-01-16 10:00:12 +01:00
fbdev Replace Wayland/XDG outputs checks with enablement checks 2019-09-05 17:29:08 +02:00
hwcomposer Revert "Remove vsync detection and configurability" 2020-01-16 10:00:12 +01:00
virtual Use URL with transport encryption 2019-11-26 19:39:20 +02:00
wayland [platforms/wayland] Use xdg-shell stable protocol 2019-11-03 19:30:08 +01:00
x11 ScreenEdge: Do not use localtime for measuring duration 2020-02-03 12:26:17 +01:00
CMakeLists.txt Cleanup style in CMakeLists.txt files 2019-09-17 16:03:05 +03:00