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.

    MagicMirror stutters and doesn't run smoothly

    Scheduled Pinned Locked Moved Hardware
    25 Posts 3 Posters 9.9k Views 3 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.
    • D Offline
      drx1984
      last edited by

      Hello everyone, can someone tell me why my Magic Mirror always stutters?
      My system runs on an IntelNuc i5 32GB RAM 250SSD.
      That should be enough to run stutter-free and smoothly??
      I’ve already tried the MagicMirror on Windows and RasbianOS and it still stutters on both operating systems.
      I have all the standard modules and additional modules like:

      • https://github.com/Eunanibus/MMM-Globe
      • https://github.com/darickc/MMM-BackgroundSlideshow
      • https://github.com/shin10/MMM-FF-digital-rain
      • https://github.com/AdamMoses-GitHub/MMM-ImageSlideshow
        decorated with five pages.

      Can someone help me??

      Thanks

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @drx1984
        last edited by

        @drx1984 is this on MagicMirror 2.26?

        this is more than likely caused by the workload of the two modules globe and rain which make heavy use of drawing operations.

        in 2.26 we turned off the electron gpu to eliminate errors for most users.
        you can turn on the gpu by setting the environment variable

        export ELECTRON_ENABLE_GPU=1
        

        before launching MagicMirror with npm start

        if you used my Linux install script and selected to use pm2, then the script is

        ~/MagicMirror/installers/mm.sh
        

        a test to see if this will help is to launch a native browser (edge on windows, chromium on linux) and open the MM page
        http://localhost:8080

        you can also do that from a different system if you have enabled remote access in the MM config.js

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          drx1984 @sdetweil
          last edited by

          @sdetweil
          @sdetweil
          yes I installed the latest MagicMirror installation under Ubuntu with this automatic script:
          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

          where can you change the value of “ELECTRON_ENABLE_GPU=1”?
          or under ~/MagicMirror/installers/mm.sh >change it like in the picture?

          mmm-1.png

          I have enough performance with my hardware.

          Thanks for your help.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @drx1984
            last edited by sdetweil

            @drx1984 swap lines 4 and 5. and you forgot the ‘export’ keyword on line 5

            in Linux, by default environment variable are not passed to children processes

            and yes the script was mine.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              drx1984 @sdetweil
              last edited by

              @sdetweil
              aha ok, you mean like this:
              mmm-2.png

              ?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @drx1984
                last edited by sdetweil

                @drx1984 yes…

                then

                pm2 status
                

                to see what apps pm2 controls
                then

                pm2 restart xxx
                

                where xxx is the number on the row, or the name on the row
                examples

                pm2 restart 0 
                

                or

                pm2 restart MagicMirror
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  drx1984 @sdetweil
                  last edited by

                  @sdetweil OK, thanks, I’ll test it.
                  Question: Is it possible to switch on exactly the same parameters for the GPU with MagicMirror in Windows?
                  export ELECTRON_ENABLE_GPU=1 ?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @drx1984
                    last edited by

                    @drx1984 yes, you just don’t use the ‘export’ keyword on Windows

                    we don’t supply a .cmd file for Windows, and I don’t provide the install script or install pm2.

                    but its all the same functionally…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      drx1984 @sdetweil
                      last edited by

                      @sdetweil aha ok then to line 4:
                      ELECTRON_ENABLE_GPU=1

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @drx1984
                        last edited by

                        @drx1984 if you are running under windows native… you don’t need to run in lsr
                        if you ARE running under lsr, then u need the ‘export’

                        just open cmd.exe and follow instructions in doc…
                        have to manually install nodejs on windows and git.

                        then a windows mm.cmd file

                        @echo off
                        cd %home%\MagicMirror
                        ELECTRON_ENABLE_GPU=1
                        npm start 
                        

                        then execute

                        %home%\mm.cmd
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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