Bug 344040 - Displaying "seconds" in analog clock plasmoid increases CPU usage
Summary: Displaying "seconds" in analog clock plasmoid increases CPU usage
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Analog Clock widget (other bugs)
Version First Reported In: 5.2.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Bhushan Shah
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-11 15:04 UTC by Volkan
Modified: 2017-09-05 19:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volkan 2015-02-11 15:04:01 UTC
I was just browsing the net and realized that the CPU temperature is 86C. Then started investigating it and found out that the "seconds" setting was causing the issue. It increases CPU usage to 100%.

Reproducible: Always

Steps to Reproduce:
1. Place an analog clock on desktop
2. In settings, enable "seconds"
3. Check cpu usage/temperature

Actual Results:  
It is above 80C and cpu usage is too high

Expected Results:  
It should be normal
Comment 1 Marco Martin 2015-02-13 13:06:17 UTC
being the seconds hand animated, probably not really avoidable
Comment 2 David Edmundson 2015-02-16 10:38:42 UTC
It's fine here, maybe it's stressing the CPU if if we end up using mesa as the openGL backend?

qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation
Comment 3 Bhushan Shah 2015-02-16 10:40:10 UTC
see also https://bugs.kde.org/show_bug.cgi?id=335442
Comment 4 Volkan 2015-02-16 11:21:38 UTC
(In reply to David Edmundson from comment #2)
> It's fine here, maybe it's stressing the CPU if if we end up using mesa as
> the openGL backend?
> 
> qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation

The output is here: https://paste.kde.org/popxe3gte
Comment 5 David Edmundson 2015-02-16 11:22:06 UTC
thanks.
Comment 6 Eugenio 2015-05-14 19:27:55 UTC
I can confirm this issue with plasma 5.3 and Intel graphic.
Using the "show repaint" in kwin settings show that the whole desktop is refreshed every second (no matter of what vsync option is used), I think that this behaviour is the problem here.
Comment 7 David Edmundson 2015-05-20 19:13:03 UTC
That's meant to happen
Comment 8 Alexander Mentyu 2017-08-27 14:42:49 UTC
Cannot confirm this bug/CPU usage is normal after enabling seconds in KDE neon Developer Edition Unstable Branches:


KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.10.90
Qt Version: 5.9.1
Qt compile version: 5.9.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11903000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 9
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 101
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: LVDS-1
Geometry: 0,0,1366x768
Refresh Rate: 60.0142


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset 
OpenGL version string: 2.1 Mesa 17.0.7
OpenGL platform interface: GLX
OpenGL shading language version string: 1.20
Driver: Intel
GPU class: i965
OpenGL version: 2.1
GLSL version: 1.20
Mesa version: 17.0.7
X server version: 1.19.3
Linux kernel version: 4.10
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
slidingpopups
kwin4_effect_login
kwin4_effect_logout
kwin4_effect_windowaperture
slide
screenshot
minimizeanimation
kwin4_effect_translucency
desktopgrid
colorpicker
kwin4_effect_frozenapp
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_fade
presentwindows
kwin4_effect_dialogparent
highlightwindow
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

kwin4_effect_login:

kwin4_effect_logout:

kwin4_effect_windowaperture:

slide:

screenshot:

minimizeanimation:

kwin4_effect_translucency:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

colorpicker:

kwin4_effect_frozenapp:

kwin4_effect_morphingpopups:

kwin4_effect_maximize:

kwin4_effect_fade:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

kwin4_effect_dialogparent:

highlightwindow:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 9 Nate Graham 2017-09-05 19:24:50 UTC
Thanks for testing, Alexander!