MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Electron CPU usage

    Scheduled Pinned Locked Moved Troubleshooting
    247 Posts 46 Posters 597.3k Views 42 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wtidwell @TiemenMoesker
      last edited by

      @TiemenMoesker I tried two pies with exactly the same result. My spikes are way higher than 55%, on the order of max processing.

      D 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        I have a very stupid question.
        In my new ATB, transition animation caused CPU usage around max 70%.(by nmon. htop shows less than that… around 30~50%). Without transition, near 10~20%.
        But… I had not felt the performance issue before this thread. Will it be a real problem? I’m not an expert, but I think, temporally CPU usage could be high than we’ve thought. Should I really worry about this?

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          djsunrise19 @wtidwell
          last edited by

          @wtidwell said in Electron CPU usage:

          @TiemenMoesker I tried two pies with exactly the same result. My spikes are way higher than 55%, on the order of max processing.

          Hm, okay. But that seems to be a little bit weird. Imagine there are f.e. 8 modules. 3 of them make a fade at the same time (compliments, feed and calendar / netatmo, …). Then max processing is over 100%. Thats the problem in my first screenshot. 320% max cpu. This can not be right.

          1 Reply Last reply Reply Quote 0
          • D Offline
            djsunrise19 @Guest
            last edited by djsunrise19

            @Sean said in Electron CPU usage:

            I have a very stupid question.
            In my new ATB, transition animation caused CPU usage around max 70%.(by nmon. htop shows less than that… around 30~50%). Without transition, near 10~20%.
            But… I had not felt the performance issue before this thread. Will it be a real problem? I’m not an expert, but I think, temporally CPU usage could be high than we’ve thought. Should I really worry about this?

            My ATB is coming today. I’ll made a new installation with all my modules and settings from my actual raspi. I’m very excited and I’ll give a report.

            All in all it seems crazy to me, that those transitions are so cpu heavy. And in some cases (look at those nmon screenshots here) the cpu load is way to high and the mirror becomes unusable. So in that case, we should worry about that.

            1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Snille
              last edited by Mykle1

              @Snille said in Electron CPU usage:

              The was originally @Snille idea!

              Run in Pi3 terminal (or in SSH): cat /proc/cpuinfo
              Compare hardware and revision… :)
              Hardware : BCM2835
              Revision : a02082

              Pi 3 Model B 1GB a02082 (Sony, UK)
              Pi 3 Model B 1GB a22082 (Embest, China)

              Does anyone with Hardware :BCM2709 have this problem?

              Does anyone with Hardware :BCM2835 NOT have this problem?

              Create a working config
              How to add modules

              T D 2 Replies Last reply Reply Quote 0
              • T Offline
                TiemenMoesker @Mykle1
                last edited by

                @Mykle1

                Maybe we are on to somthing here.
                My hardware =BCM2835
                Revision= a02082

                And I DO have this problem.

                Mykle1M L 2 Replies Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer
                  last edited by strawberry 3.141

                  if i remember correct there is also a possibility to increase performance of transformations, but I’m not sure. Have to research on this

                  EDIT: I can’t do any testing for a while, if someone wants to get a hand on it I think this should make an effect as it will optimize the rendering from cpu usage to gpu. It’s still a new stuff though and I’m not sure if it is supported in electron yet.

                  .MODULENAME {
                    will-change: opacity;
                  }
                  

                  replace modulename with the actual module name

                  Please create a github issue if you need help, so I can keep track

                  T 1 Reply Last reply Reply Quote 1
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @TiemenMoesker
                    last edited by Mykle1

                    @TiemenMoesker said in Electron CPU usage:

                    Maybe we are on to somthing here.
                    My hardware =BCM2835
                    Revision= a02082
                    And I DO have this problem.

                    My hardware = BCM2709

                    I do NOT have this problem

                    I’ve long suspected that this was/is a hardware issue. Why? I’ve done nothing special or different to my Pi 3 (except for adding a fan), yet it runs flawlessly, smoothly, and without the cpu overload experienced by a few select users. Assuming they have done nothing out of the ordinary (most have done fresh installs of the OS and default install of MM) yet their Pi 3’s exhibit inordinate amounts of cpu load at rest and extreme cpu load with just a simple function like the compliments changing.

                    @strawberry-3-141 There’s no need for me to try your suggestion but perhaps someone experiencing this problem will test it and report back their findings.

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TiemenMoesker @strawberry 3.141
                      last edited by

                      @strawberry-3.141

                      Ill hook up my PI in a sec and test it. I am supposed to put that line of code in the main.css file right? (Just to be sure)

                      Mykle1M 1 Reply Last reply Reply Quote 0
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @TiemenMoesker
                        last edited by

                        @TiemenMoesker

                        custom.css probably

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TiemenMoesker
                          last edited by

                          @strawberry-3-141
                          @Mykle1

                          Sad to report; Didn’t seem to solve the problem. YET, It almost seemed like the fade out animation was a tiny bit smoother, can’t say it for sure tho.

                          strawberry 3.141S 1 Reply Last reply Reply Quote 0
                          • strawberry 3.141S Offline
                            strawberry 3.141 Project Sponsor Module Developer @TiemenMoesker
                            last edited by strawberry 3.141

                            @TiemenMoesker bugger, also when you increase gpu memory to a higher level than 64mb default

                            Also it could still be unsupported in electron or it has to be taken to another element…

                            Please create a github issue if you need help, so I can keep track

                            T 1 Reply Last reply Reply Quote 0
                            • T Offline
                              TiemenMoesker @strawberry 3.141
                              last edited by

                              @strawberry-3.141

                              I’ve tried 64,128 and 256. No improvement :(

                              strawberry 3.141S Mykle1M 2 Replies Last reply Reply Quote 0
                              • strawberry 3.141S Offline
                                strawberry 3.141 Project Sponsor Module Developer @TiemenMoesker
                                last edited by

                                @TiemenMoesker maybe also @Jeff could have a look after his holidays as he is quiet familiar with css and he could check if the stuff I mentioned is valid

                                Please create a github issue if you need help, so I can keep track

                                T 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @TiemenMoesker
                                  last edited by

                                  @TiemenMoesker said in Electron CPU usage:

                                  @strawberry-3.141
                                  I’ve tried 64,128 and 256. No improvement :(

                                  I don’t even remember changing this to 96, but it’s been like that since January, and no issues.
                                  0_1504125943530_gpu.JPG

                                  Create a working config
                                  How to add modules

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TiemenMoesker @strawberry 3.141
                                    last edited by

                                    @strawberry-3.141 Alright, although I am not sure this has anything to do with css. First, because 99% of the people who have MM2 don’t have this problem, yet the same css. Second, I just found out that it’s not just the Newsfeed and the Compliments. I have installed the MMM-Earth module and the same thing happends. Time freezes, animation starts (not smooth at all, it only shows me one fade frame), CPU usage spikes to 99% and my PI is hotter than a BBQ.

                                    I think it has something to do with the hardware.

                                    My hardware =BCM2835
                                    Revision= a02082

                                    Mykle1M 2 Replies Last reply Reply Quote 0
                                    • T Offline
                                      TiemenMoesker @Mykle1
                                      last edited by

                                      @Mykle1

                                      Just set is to 96, still the same.

                                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                      • Mykle1M Offline
                                        Mykle1 Project Sponsor Module Developer @TiemenMoesker
                                        last edited by

                                        @TiemenMoesker said in Electron CPU usage:

                                        I think it has something to do with the hardware.

                                        My suspicion as well, as previously stated. And just to cover all bases, the only interface I have enabled is VNC. I don’t know if that matters in the least.
                                        0_1504126421336_inter.JPG

                                        Create a working config
                                        How to add modules

                                        T 1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TiemenMoesker
                                          last edited by

                                          I researched the BCM2835 today if there where any known problems with it. Turns out there are, I just didn’t understand any of them. English is not my first language and I am a kinda new to the whole Raspberry Pi stuff and all the programming around it.

                                          Mykle1M 1 Reply Last reply Reply Quote 0
                                          • strawberry 3.141S Offline
                                            strawberry 3.141 Project Sponsor Module Developer @TiemenMoesker
                                            last edited by

                                            @TiemenMoesker I’m sure thats not the reason for it, but it was worth trying it as a possible fix

                                            Please create a github issue if you need help, so I can keep track

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 11 / 13
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy