RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Good news regarding tearing and low EmulationStation performance on Pi 4

    Scheduled Pinned Locked Moved General Discussion and Gaming
    performancevsyncpi 4kernel 5.4
    194 Posts 38 Posters 58.1k Views
    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.
    • George SpiggottG
      George Spiggott @quicksilver
      last edited by

      Thanks @quicksilver. The fps drops to around 45 at times during the Hoth missions but this may be the normal frame rate for the game as the game doesn't seem that slow. I understand that some slowdowns can be expected with high end N64 games even on native hardware. The sound cuts in and out from the intro sequence onwards into at least as far as the Hoth missions. I'm using lr-mupen64plus-next.

      I'm overclocked with the specs in my sig and running the emulator unmodified.

      Currently running:
      Retropie 4.8.9 on a Pi Zero 2W (Overclock Settings: CPU 1400Mhz)
      ES-DE on a GMKtec K6 (Windows 11, 32GB RAM)

      quicksilverQ 1 Reply Last reply Reply Quote 0
      • RascasR
        Rascas @Darksavior
        last edited by

        @Darksavior To install 5.4 kernel headers, run the rpi-source to get the kernel source, go into the kernel dir (should be /home/pi/linux-xxxxx) and run:

        make headers_install INSTALL_HDR_PATH=/usr
        
        DarksaviorD 1 Reply Last reply Reply Quote 1
        • quicksilverQ
          quicksilver @George Spiggott
          last edited by

          @George-Spiggott Without getting too far off topic. Try mupen64plus-gliden64. It seems to run full speed for me. Generally it is faster than lr-mupen64plus-next.

          1 Reply Last reply Reply Quote 0
          • DarksaviorD
            Darksavior @Rascas
            last edited by

            @Rascas said in Good news regarding tearing and low EmulationStation performance on Pi 4:

            make headers_install INSTALL_HDR_PATH=/usr

            Thanks, but that did not work.

            RascasR 1 Reply Last reply Reply Quote 0
            • RascasR
              Rascas @Darksavior
              last edited by

              @Darksavior Works fine here. With that command, headers are installed to /usr/include/ like it is normal but you can change the path to where you want to install them.

              DarksaviorD 1 Reply Last reply Reply Quote 0
              • DarksaviorD
                Darksavior @Rascas
                last edited by

                @Rascas There might be an issue with the pad driver compiling with it, I really have no idea what I'm doing. I'll create a new thread and see if anyone can help.

                1 Reply Last reply Reply Quote 0
                • DarksaviorD
                  Darksavior
                  last edited by

                  Ignoring my gamepad problem, I briefly tried these drivers.
                  It doesn't support 4k60? 4k30 makes ES's menu glitch out and it eventually crashes to the terminal. 1080p seems fine and smooth.
                  No audio since it defaults to this new hdmi audio driver. I found some way to make the old driver the default in alsamixer, but it didn't last.

                  1 Reply Last reply Reply Quote 0
                  • SwampyS
                    Swampy
                    last edited by

                    First tests with raspberry pi 4 and kernel 5.4 and no problems so far.
                    I can confirm, that emulationstation runs in full speed now.

                    Till now, I didn't test all emulators. I will post again, if I find any problems.

                    Linux is like wigwam: no Gates, no Windows and Apache inside.

                    saccublendaS 1 Reply Last reply Reply Quote 0
                    • saccublendaS
                      saccublenda @Swampy
                      last edited by

                      Does ES work with kms driver, that is setting dtoverlay=vc4-kms-v3d-pi4 in /boot/config.txt?

                      SwampyS B 2 Replies Last reply Reply Quote 0
                      • SwampyS
                        Swampy @saccublenda
                        last edited by

                        @saccublenda, for me it only works with the fake kms - driver dtoverlay=vc4-fkms-v3d. I tried it with kms, but I only get a never ending black screen.

                        Linux is like wigwam: no Gates, no Windows and Apache inside.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Brunnis @saccublenda
                          last edited by Brunnis

                          @saccublenda Yes. It works right away and seems to fix all tearing issues in both ES and RetroArch.

                          EDIT: Actually, with latest firmware you can use vc4-kms-v3d. No need for ”-pi4” at the end.

                          EDIT: If you have boot issues, try removing any overclock.

                          saccublendaS SwampyS 2 Replies Last reply Reply Quote 1
                          • saccublendaS
                            saccublenda @Brunnis
                            last edited by

                            @Brunnis I did install the last kernel and tried dtoverlay= vc4-kms-v3d, but it exits on the prompt saying:

                            Error creating SDL window!
                            Could not create GLES window surface

                            1 Reply Last reply Reply Quote 0
                            • SwampyS
                              Swampy @Brunnis
                              last edited by

                              @Brunnis, I can confirm, that it works with no "-pi4" at the end. Only the retropie splashscreen didn't show.

                              Linux is like wigwam: no Gates, no Windows and Apache inside.

                              1 Reply Last reply Reply Quote 0
                              • George SpiggottG
                                George Spiggott
                                last edited by

                                Purely as a guide to how it may run on some possible future 64bit Retropie/Dolphin build has anyone tried these new drivers on a Gentoo/dolphin (or similar) build?

                                Currently running:
                                Retropie 4.8.9 on a Pi Zero 2W (Overclock Settings: CPU 1400Mhz)
                                ES-DE on a GMKtec K6 (Windows 11, 32GB RAM)

                                saccublendaS 1 Reply Last reply Reply Quote 0
                                • saccublendaS
                                  saccublenda @George Spiggott
                                  last edited by

                                  I managed to update the kernel to 5.4.29, but when I launch ES with dtoverlay= vc4-kms-v3d I get these flashing artifacts

                                  IMG_3577.jpg

                                  B J 2 Replies Last reply Reply Quote 0
                                  • B
                                    Brunnis @saccublenda
                                    last edited by

                                    @saccublenda That looks really weird... What resolution are you running at?

                                    saccublendaS 2 Replies Last reply Reply Quote 0
                                    • saccublendaS
                                      saccublenda @Brunnis
                                      last edited by

                                      @Brunnis 1920x1080

                                      1 Reply Last reply Reply Quote 0
                                      • saccublendaS
                                        saccublenda @Brunnis
                                        last edited by

                                        @Brunnis I guess it is an overscan problem. Removing the overscan settings from /boot/config.txt makes the artifacts disappear.

                                        P 1 Reply Last reply Reply Quote 1
                                        • C
                                          cellux
                                          last edited by cellux

                                          Video works fine using the kms driver, I don't have screen tearing anymore in some more problematic mame and n64 games.

                                          However, sound is gone. When I try to change settings in raspi config i get "there was an error running a4 audio"

                                          Is there some solution for this? In raspberry pi forum I've seen some audio related posts, tried to switch to the new kms hdmi audio driver (editing vc4-hdmi.conf), that results in no default audio driver found messages.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            Brunnis @cellux
                                            last edited by

                                            @cellux Sorry, can't help with that. I started with a fresh RetroPie weekly image, updated to the 5.4 kernel and enabled the full KMS driver and audio just worked.

                                            C 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.