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 [platforms/x11] Fix incorrect screen edge approaching with switch desktop on window move 2017-07-06 19:12:28 +02:00
edge.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
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 Move X11-only specific part of EffectsHandlerImpl to x11 platform plugin 2017-10-16 16:54:17 +02:00
effects_x11.cpp [platforms/x11] Properly unload effects on X11 2019-03-11 09:23:24 +02:00
effects_x11.h [platforms/x11] Properly unload effects on X11 2019-03-11 09:23:24 +02:00
glx_context_attribute_builder.cpp [platforms/x11] Use a GlxContextAttributeBuilder 2017-08-19 11:34:51 +02:00
glx_context_attribute_builder.h [platforms/x11] Use a GlxContextAttributeBuilder 2017-08-19 11:34:51 +02:00
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 [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
logging.h [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
non_composited_outline.cpp Move NonComposited Outline into the X11 standalone platform 2017-09-01 17:07:23 +02:00
non_composited_outline.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
overlaywindow_x11.cpp Use nullptr everywhere 2019-09-19 17:48:21 +03:00
overlaywindow_x11.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
screenedges_filter.cpp ScreenEdge: Do not use localtime for measuring duration 2020-02-03 12:26:17 +01:00
screenedges_filter.h Move X11 specific event filtering for ScreenEdges into x11 standalone platform 2017-09-01 17:01:01 +02:00
screens_xrandr.cpp Split Compositor class in Wayland and X11 child classes 2019-08-07 21:06:53 +02:00
screens_xrandr.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
sync_filter.cpp Rename X11Client::getSyncRequest() to X11Client::syncRequest() 2020-01-28 21:46:09 +02:00
sync_filter.h Create a dedicated X11Filter for Client sync events and move it to X11 platform 2017-10-19 19:56:58 +02:00
windowselector.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
windowselector.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
x11.json SVN_SILENT made messages (.desktop file) - always resolve ours 2019-07-23 05:20:30 +02:00
x11_decoration_renderer.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
x11_decoration_renderer.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
x11_output.cpp Backport Night Color feature to X11 2019-06-17 12:09:04 +03:00
x11_output.h [platforms/x11] Delete duplicate doxygen comments in X11Output 2019-08-28 12:06:56 +03:00
x11_platform.cpp [platforms/x11/standalone] Fix stored refresh rate 2019-08-20 14:02:43 +02:00
x11_platform.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
x11cursor.cpp Set specific edge cursor shape when resizing 2018-06-11 10:05:07 +01:00
x11cursor.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
xfixes_cursor_event_filter.cpp Move XFixes cursor change tracking into the x11 standalone platform 2017-09-30 12:58:17 +02:00
xfixes_cursor_event_filter.h Move XFixes cursor change tracking into the x11 standalone platform 2017-09-30 12:58:17 +02:00
xinputintegration.cpp Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
xinputintegration.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00