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.
    • saccublendaS
      saccublenda @Swampy
      last edited by

      @Swampy Does kodi work for you with dtoverlay=vc4-kms-v3d?

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

        @saccublenda Sorry, I don't use kodi within retropie. I have an extra sd card with libreelec installed.

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

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

          @saccublenda Nope. It starts but doesn't play videos because it uses MMAL.
          Only Kodi 19 will work fine with KMS, which has support for v4l2 hardware decoding.

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

            @Rascas Ok, thanks for the info.

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

              Was this added to the weekly update (4.5.19) because all my screen tearing symptoms seem to have gone?

              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)

              1 Reply Last reply Reply Quote 0
              • P
                pbohannon @saccublenda
                last edited by

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

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

                Hi there! I'm having the exact visual artifact you posted in the your initial reply to the thread. However, I have no overscan options set in my config.txt. The only active settings I have are:

                dtparam=audio=on
                
                [pi4]
                dtoverlay=vc4-kms-v3d
                dtoverlay=rpivid-v4l2
                max_framebuffers=2
                arm_freq=2100
                gpu_freq=700
                over_voltage=6
                hdmi_force_hotplug=1
                gpi_mem=320
                

                Do you, or anyone else monitoring, have any ideas as to where the described artifact comes from and how to prevent it? Am using 5.4.44-vl7l+ on a rpi4b 4GB. Kodi is installed, using ffmpeg 4.2.2, and I have made no changes to Mesa. Any ideas would be very much appreciated! Thanks very much.

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

                  @pbohannon The differences with my settings would be

                  dtparam=audio=on
                  disable_overscan=1
                  hdmi_group=1
                  hdmi_mode=16
                  
                  [pi4]
                  dtoverlay=vc4-kms-v3d
                  #dtoverlay=rpivid-v4l2
                  max_framebuffers=2
                  #arm_freq=2100
                  #gpu_freq=700
                  #over_voltage=6
                  #hdmi_force_hotplug=1
                  #gpi_mem=320
                  

                  Try adding/commenting the new lines and see if you can get rid of the artifact.

                  1 Reply Last reply Reply Quote 0
                  • J
                    joyrider3774
                    last edited by joyrider3774

                    about video's, RPI0-3 supports H264, H263, MPEG4, MPEG2 and VL1 hardware decoding with the last 2 with payed unlock. Raspberry pi 4 only supports H264 hardware decoding and HEVC see post of raspberry pi engineer https://www.raspberrypi.org/forums/viewtopic.php?t=268356#p1628856 Al formats do still work fine in software decoding.

                    Also if your wondering if rpi4 will ever get such support again ... the answer is no see post here https://www.raspberrypi.org/forums/viewtopic.php?t=268356#p1650804

                    1 Reply Last reply Reply Quote 0
                    • J
                      joyrider3774
                      last edited by

                      i had the same visual artifcat on kms/drm version of attract on the intro video, disable_overscan fixed it for me i think in attract, artifcat is gone althouhg i also added hdm_group1 & mode 16

                      1 Reply Last reply Reply Quote 0
                      • P
                        PhoenixJedi @Rascas
                        last edited by

                        @Rascas Is it possible to install Kodi 19 on the Pi4?

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

                          @PhoenixJedi It is possible to compile it yourself and install it yes. But there is still some problems and nothing really new or different so in my opininnion it isn't really worth to mess with it. Python 3 only is something pulling it back in my opinion. Until there is proper HDR and HD audio bitstreaming support, I don't really see a need to go into it.

                          P 2 Replies Last reply Reply Quote 0
                          • P
                            PhoenixJedi @Rascas
                            last edited by

                            @Rascas Dang, cause thats the only thing keeping me from going to the 5.4 KMS driver.

                            1 Reply Last reply Reply Quote 0
                            • P
                              PhoenixJedi @Rascas
                              last edited by

                              @Rascas So i have no idea how to get/compile kodi 19 for the pi4... im guessing theres no way youd be willing to walk me through it?

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

                                This is getting of topic... but if you don't have an idea about it, don't bother with it, it is not something easy to do. If you want more information open a new topic or search Kodi forums, there is some information about it there already.

                                1 Reply Last reply Reply Quote 1
                                • J
                                  Jimi007 @saccublenda
                                  last edited by

                                  @saccublenda Hi I just wanted to find out hat theme is this that you are using. I like it

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

                                    @Jimi007 It's the Snes mini theme

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      akamming @cellux
                                      last edited by

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

                                      I got a nice tip though. It is possible to use the old sound driver:
                                      dtparam=audio=on
                                      dtoverlay=vc4-kms-v3d-pi4,audio=off
                                      (and the old vc4-hdmi.conf)

                                      Dit you get this to work? i cannot get audio (also not with this tip)

                                      I only see the BCM2835 headphones driver, but i need either the 2835 HDMI 1 driver to work or the new kms audio driver. Can't get both to work...

                                      I tried

                                      • dtoverlay=vc4-kms-v3d-pi4,audio=off (with dtparam=audio=on and old vc4-hdmi.conf)
                                      • and dtoverlay=vc4-kms-v3d-pi4 with new vc4-hdmi.conf

                                      on both no audio. Does anyone have a tip?

                                      B 1 Reply Last reply Reply Quote 0
                                      • Beretta9B
                                        Beretta9
                                        last edited by

                                        I'm in the same situation. I can get the KMS driver to work but cannot get audio.

                                        Retro Gamer Supreme

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

                                          Kernel 5.4 is still in testing and KMS isn't ready yet so issues may occur. For more information about it's current state check this thread:
                                          https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=269769

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            bluestang @akamming
                                            last edited by

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

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

                                            I got a nice tip though. It is possible to use the old sound driver:
                                            dtparam=audio=on
                                            dtoverlay=vc4-kms-v3d-pi4,audio=off
                                            (and the old vc4-hdmi.conf)

                                            Dit you get this to work? i cannot get audio (also not with this tip)

                                            I only see the BCM2835 headphones driver, but i need either the 2835 HDMI 1 driver to work or the new kms audio driver. Can't get both to work...

                                            I tried

                                            • dtoverlay=vc4-kms-v3d-pi4,audio=off (with dtparam=audio=on and old vc4-hdmi.conf)
                                            • and dtoverlay=vc4-kms-v3d-pi4 with new vc4-hdmi.conf

                                            on both no audio. Does anyone have a tip?

                                            It is not possible to use the BCM2835 and the vc4hdmi drivers at the same time.
                                            What is your output when you type in aplay -l in the cmd line?

                                            A 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.