Read the statement by Michael Teeuw here.
High CPU load of electron and MM freezes
-
@a94marbo OpenGL driver is activated?
-
Did it again to be sure, but no change.
Thanks for the suggestion.
Any other ideas?
-
running your magic mirror in vertical mode? try horizontal and check again.
-
to install stylelint…
npm install stylelint@latest -g
that will get rid of the warning, but it shouldn’t have any bearing on the CPU usage.
depending on the amount of modules you have, or the size of the modules, it will hesitate or freeze during the modules ‘refresh’ moments, especially if you have several modules trying to refresh or reload at the same time.
I don’t really know how to fix the problem except for making your modules refresh or reload at different intervals.
-
Thanks all for the input,
I have done some more testing, and while trying out some settings for MMM-PIR-Sensor module, I saw that the CPU load is close to zero when MagicMirror i minimized, and buck up on 60-70 when maximized or full screen.
So it should not be any module doing this, rather something to do with the window, refresh rate other other graphic related issue? -
@a94marbo said in High CPU load of electron and MM freezes:
Hi
I have noticed that MM freezes some times and electron is consuming 70-80% of the CPU.
I think these are releted somehow.
I tried to reinstall dependancies with “git pull && npm install”everything goes fine until the end when I get
“npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.”error message. Dont know if that is related to electron high CPU load.
Anyone recognize these errors?
Absolutely - I have 2 raspberry pis, freshly installed MMM on both and have these issues.
I am struggling around with an earlier electron version, activating the Open GL fkms driver, increasing GPU Mem size, increasing swap memory size but the problem prevails. This issues has been heavily discussed from what it seems about a year ago (this is where the “earlier version of electron” solution comes from), but nothing ever happened I guess.
e.g. see:
https://github.com/MichMich/MagicMirror/issues/1059
https://forum.magicmirror.builders/topic/2717/electron-performance/7