MMM-Screencast
MMM-Screencast copied to clipboard
electron take 50% of cpu on RPI 3 B
Screencast is a good and useful module for MMM but electron process took more then 50% of CPU while running thus causing issues with RPI
I am using RPI 3 Model B with a 16GB micro SD card, any suggestions or fix?
Hey @drk-geek! So MMM-Screencast should only spin up a very simple electron window when you are connected to it.
However, MagicMirror also uses electron to display the MM, so it could be this process that you are seeing.
- Do you happen to have a lot of modules loaded with MM?
- Are you checking the CPU percentage when you're playing a video?
- If so do you see 2 electron processes there?
- Are you running anything else on this pi?
There's not much that I can think of at this time to reduce MMM-Screencast's electron process, but there may be some trimming you can do for the MM or for any other service running on the pi.
Hi @kevinatown below is the reply to your questions
-
Not lot of modules, actually a few with screencast
-
Yes when playing video it goes up to 70%
-
Yes I see more then one electron process, rather more then 2
-
Yes, running home assistant
hope to answer all the questions
Hi @drk-geek, I dont think there is much I can do besides attempting to update electron in MMM-Screencast. Sadly, electron (chromium) especially playing videos is very expensive. MMM-Screencast runs another electron process to display the video that isn't part of the original electron one, so this: "Yes I see more then one electron process, rather more then 2" confuses me a bit.
Do you see another process or is the original one that goes from 50% to 70%? Thanks!