RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?

    Scheduled Pinned Locked Moved Help and Support
    update issueaudio issuesaudio problemsretropie 4.7.13
    43 Posts 5 Posters 3.3k 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.
    • dankcushionsD
      dankcushions Global Moderator @DjDiabolik
      last edited by

      @djdiabolik

      Lol... for try to center the TV screen i need to put my phone in a higher position :). Somethings like a stand or selfie stick or similar. I don't have it or i need to call my mother to maintain my phone on your hands and register another video :)

      or just have a game with an attract mode (sonic 1, etc) and you can hold your own phone.

      Otherwise i can try to change.... if i remember i can change the main emulator for GB system from menù A when i launch a roms exactly

      https://retropie.org.uk/docs/Runcommand/#runcommand-launch-menu option 1 - select default emulator for (in your case, gb)

      About reset my retroarch.cfg on opt/config/all and all core i have some question to do:

      I explained how here:
      https://retropie.org.uk/forum/topic/30747/pi4-4-7-1x-after-recent-update-audio-little-glitch-struttering-or-miss-some-frame-on-some-libretro-core-it-s-fixable/10?_=1623767907943

      DjDiabolikD 1 Reply Last reply Reply Quote 0
      • DjDiabolikD
        DjDiabolik @dankcushions
        last edited by

        @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

        I explained how here:
        https://retropie.org.uk/forum/topic/30747/pi4-4-7-1x-after-recent-update-audio-little-glitch-struttering-or-miss-some-frame-on-some-libretro-core-it-s-fixable/10?_=1623767907943

        Yes I had read this.... so i have to re-install all my system core to obtain the retroarch.cfg.rp-dist for all system ?
        If i understand correctly from retropie-setup i have to reinstall retroarch and all system core for obtain the default rp-dist files ?

        dankcushionsD 1 Reply Last reply Reply Quote 0
        • dankcushionsD
          dankcushions Global Moderator @DjDiabolik
          last edited by

          @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

          DjDiabolikD 1 Reply Last reply Reply Quote 0
          • DjDiabolikD
            DjDiabolik @dankcushions
            last edited by DjDiabolik

            @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

            @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

            Yes exactly.... but if right now i want to extend the same solution for all other my system how you suggest to do ?

            Anyway if lr-gambatte it's this here:
            https://github.com/libretro/gambatte-libretro

            Has last commit 5 days ago..... how it's possible this is abandoned ?

            EDIT
            Meinwhile i have try to play CATRAP after setted lr-mgba........ whit this different core apparently i can't restore my lr-gambatte savestate. It's not multicompatible the savestate from different core ?

            EDiT 2nd Part
            After read some other thread/blog found by google i have problably found one things.
            The savestate made by lr-gambatte it's not compatible whit the lr-mgba. At this point it could be an idea to storage/usage the savestate on 2 different paths depending on the GB core I'm going to use.
            This will be another thing to do in the future in my setup.

            Meinwhile whit lr-gambatte i have tryed to reset both retroarch.cfg....... i do this:

            1. I backup the current retroarch.cfg from "all" and from "gb" folder (the current non stardard).
            2. From retropie-setup i have re-install the both componet....retroarch and lr-gambatte from the respective sections. This made me possibility to obtain the both retroarch.cfg.rp-dist
            3. After that i have delete the both retroarch.cfg from "all" and "gb" folder.
            4. Rename both retroarch.cfg.rp-dist to retroarch.cfg on "all" and "gb"

            At this point... i thinks for GB i have reset both configuration to default.
            Using lr-gambatte try to launch same game.. catrap...... same issue whit audio it's persistent.

            At this point after doing this test and checking that resetting to default the both retroarch.cfg does not lead to solutions i have reput my usually non-standard configuration.
            honestly if it's not the bad configuration that's causing this little trouble whit audio it's only need to test the same games whit lr-mgba but i need to found a workaround for use/load the old savestate maded previously when i use lr-gambatte (because i have a lot of games where i have saved game progress :)).

            Do you have some suggestion ?

            EDIT 3rd part
            The other test need to do it's try to set the "vc4-kms-v3d-pi4,noaudio" on config.txt.
            But i could be wrong but i don't seem to have screen tearing issues :)

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @DjDiabolik
              last edited by

              @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

              @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

              @djdiabolik you’ve only shown me configs for gb and retroarch so i only instructed how to reset for the configs for the same. i don’t know how to explain it any clearer.

              Yes exactly.... but if right now i want to extend the same solution for all other my system how you suggest to do ?

              yes, to reset other lr- emulators you repeat the process for their config folders.

              Anyway if lr-gambatte it's this here:
              https://github.com/libretro/gambatte-libretro

              Has last commit 5 days ago..... how it's possible this is abandoned ?

              because it’s a fork of https://sourceforge.net/projects/gambatte/ which hasn’t been updated since 2019. the changes since then are maintenance, really, not to do with emulator function. can’t you just test in lr-mgba to see if it fixes the issue?!

              EDIT
              Meinwhile i have try to play CATRAP after setted lr-mgba........ whit this different core apparently i can't restore my lr-gambatte savestate. It's not multicompatible the savestate from different core ?

              EDiT 2nd Part
              After read some other thread/blog found by google i have problably found one things.
              The savestate made by lr-gambatte it's not compatible whit the lr-mgba. At this point it could be an idea to storage/usage the savestate on 2 different paths depending on the GB core I'm going to use.
              This will be another thing to do in the future in my setup.

              but does it have the issue?!

              Meinwhile whit lr-gambatte i have tryed to reset both retroarch.cfg....... i do this:

              1. I backup the current retroarch.cfg from "all" and from "gb" folder (the current non stardard).
              2. From retropie-setup i have re-install the both componet....retroarch and lr-gambatte from the respective sections. This made me possibility to obtain the both retroarch.cfg.rp-dist
              3. After that i have delete the both retroarch.cfg from "all" and "gb" folder.
              4. Rename both retroarch.cfg.rp-dist to retroarch.cfg on "all" and "gb"

              At this point... i thinks for GB i have reset both configuration to default.
              Using lr-gambatte try to launch same game.. catrap...... same issue whit audio it's persistent.

              At this point after doing this test and checking that resetting to default the both retroarch.cfg does not lead to solutions i have reput my usually non-standard configuration.

              ok, but it’s good it’s fixed. we cannot diagnose easily by staring at a massive customised configuration file.

              honestly if it's not the bad configuration that's causing this little trouble whit audio it's only need to test the same games whit lr-mgba but i need to found a workaround for use/load the old savestate maded previously when i use lr-gambatte (because i have a lot of games where i have saved game progress :)).

              Do you have some suggestion ?

              no

              EDIT 3rd part
              The other test need to do it's try to set the "vc4-kms-v3d-pi4,noaudio" on config.txt.
              But i could be wrong but i don't seem to have screen tearing issues :)

              as i said:

              all that said, this doesn't seem like any of the known issues i talked about before. so disregard those.

              DjDiabolikD 1 Reply Last reply Reply Quote 0
              • S
                supernalle
                last edited by

                Just wanted to chime in here and say that I have exactly the same audio problem.
                This occurs on all emulators after updating to the latest retropie version, enabling cheevos and updating the os library as well.
                Pi4 4GB Model B.

                No problems whatsoever before I added cheevos. Cheevos didnt work correctly with the retropie version I had installed then so therefore I updated and then the audio started "stuttering" from time to time.

                Will try to reinstall some day soon when I have time and NOT updating OS libraries.

                dankcushionsD 1 Reply Last reply Reply Quote 0
                • dankcushionsD
                  dankcushions Global Moderator @supernalle
                  last edited by

                  @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                  Just wanted to chime in here and say that I have exactly the same audio problem.
                  This occurs on all emulators after updating to the latest retropie version, enabling cheevos and updating the os library as well.
                  Pi4 4GB Model B.

                  No problems whatsoever before I added cheevos. Cheevos didnt work correctly with the retropie version I had installed then so therefore I updated and then the audio started "stuttering" from time to time.

                  Will try to reinstall some day soon when I have time and NOT updating OS libraries.

                  are you saying it doesn't happen with updated retropie/retroarch when cheevos are turned OFF? that would make an interesting test.

                  S 1 Reply Last reply Reply Quote 0
                  • DjDiabolikD
                    DjDiabolik @dankcushions
                    last edited by

                    @dankcushions I just turned on my pi4 and before lunch I try the lr-mgba whit CATRAP :)

                    For my previously savestate created whit lr-gambatte for now I will try not to use them.

                    Wait a my feedback immediatelly after lunch in this afternoon :)

                    Thanks again anyway for all the advice :)

                    @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                    dankcushionsD 1 Reply Last reply Reply Quote 0
                    • dankcushionsD
                      dankcushions Global Moderator @DjDiabolik
                      last edited by

                      @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                      @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                      in your previous configs they were not enabled

                      cheevos_enable = "false"
                      

                      and they are not enabled by default either, so probably a red herring.

                      DjDiabolikD 1 Reply Last reply Reply Quote 0
                      • DjDiabolikD
                        DjDiabolik @dankcushions
                        last edited by DjDiabolik

                        @dankcushions said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                        @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                        @supernalle mmmmmm.... interesting how i can check if on my retropie it's enabled or not this cheevos ? what is that ?

                        in your previous configs they were not enabled

                        cheevos_enable = "false"
                        

                        and they are not enabled by default either, so probably a red herring.

                        mmmmmmm...... otherwise just for confirmation.
                        The same "issue" it's also present when i usage lr-mgba ever tested whit same game CATRAP :)

                        the next step it's try to made a better video whit ALL screen captured :) so that you can possibly check if it is tearing or not................ in the next few days I will try to buy something like that:
                        alt text

                        EDIT num.1
                        Using lr-gambatte right now, only for fun, i have tryed I played a game of the super classic TETRIS for GB.
                        The problably most famous BACKGROUND music/loop over the world...... it's be emulated perfectly without the slightest sound problem.

                        a part from CATRAP ever using gambatte I will start testing the weirdest titles to see if there is any other game that has the same problem with the audio.

                        For absurdly I could try like Super Mario Bros for GB that contain vertical scrool and horizotal scrool..... i post other feedback later in same thread :)

                        1 Reply Last reply Reply Quote 0
                        • S
                          supernalle @dankcushions
                          last edited by

                          are you saying it doesn't happen with updated retropie/retroarch when cheevos are turned OFF? that would make an interesting test.

                          no, i dont think so, will try to disable cheevos before I try to reinstall an older version. The stuttering/glitching started when I updated the retropie + underlying os packages because cheevos wasn't working with my old version of retropie.

                          DjDiabolikD 1 Reply Last reply Reply Quote 0
                          • DjDiabolikD
                            DjDiabolik @supernalle
                            last edited by

                            @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                            no, i dont think so, will try to disable cheevos before I try to reinstall an older version. The stuttering/glitching started when I updated the retropie + underlying os packages because cheevos wasn't working with my old version of retropie.

                            mmmmmmm... but in my case i have this issue every about 5 o 6 minutes. You have a same exact issue whit same periodicity or you have a something more serious than that of my video?

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              supernalle @DjDiabolik
                              last edited by

                              @djdiabolik no it sounds like the same as yours.
                              have you tried reinstalling retropie completely?

                              DjDiabolikD 1 Reply Last reply Reply Quote 0
                              • DjDiabolikD
                                DjDiabolik @supernalle
                                last edited by

                                @supernalle said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                have you tried reinstalling retropie completely?

                                No... but if i tryed this solution i'm going to use the current weekly image because test right now the "old" 4.7.1 would be a test not very usefull.
                                But if a clean install made disappear this little trouble can we actually say that some update has corrupted some system component?

                                DjDiabolikD 1 Reply Last reply Reply Quote 0
                                • DjDiabolikD
                                  DjDiabolik @DjDiabolik
                                  last edited by DjDiabolik

                                  @dankcushions Hi a have a possibly OT question concern the retroarch.cfg on "all" folder.

                                  Maybe I understand what this non-standard retroarch.cfg creates:

                                  1. I reset the retroarch.cfg..... rename the retroarch.cfg.rp-dist > retroarch.cfg

                                  At this point i need one things........ usually i use a Gamestop Xbox360 wired controlled and this is perfectly work but i like to enable the left analog stick to make it work such as directional arrow :)

                                  For do this usually i run Retroarch from Retropie (same where is retropie setup)... modify the input option for controller1 and after that i save the retroarch.cfg and exit to return to emulationstation.

                                  This step this step creates a new whole retroarch.cfg whit all non-stardard setting like what I posted in the pass here.

                                  At this point my question it's:
                                  How i can prevent this ? How i can modify this setting for the controller whitout overwrite the "all" folder retroarch.cfg ?

                                  1st EDIT
                                  Just for the record.. about two hour ago... after about one week i have upgrade again my retropie setup.
                                  During this i have see a lot of componet of OS it's been updated..... after that approximately 4 or 5 cores have been updated.
                                  When all it's completed whitout any errors i have reboot my OS.... i have play for about 40 minutes the same game CATRAP in an attempt to pass level 90 and the audio problem seems to be less frequent whit this game.
                                  After that i have play a lot of various GB title and whit some other games all it's perfect.......this thing bothers me and triggers me at the same time :)
                                  Until i can register a better video whit full my TV on screen I can't give the idea :)

                                  dankcushionsD 1 Reply Last reply Reply Quote 0
                                  • dankcushionsD
                                    dankcushions Global Moderator @DjDiabolik
                                    last edited by

                                    @djdiabolik said in Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some frame on some libretro core... it's fixable ?:

                                    For do this usually i run Retroarch from Retropie (same where is retropie setup)... modify the input option for controller1 and after that i save the retroarch.cfg and exit to return to emulationstation.

                                    what exactly are you changing? is it not something you can configure during https://retropie.org.uk/docs/Controller-Configuration/ ?

                                    When all it's completed whitout any errors i have reboot my OS.... i have play for about 40 minutes the same game CATRAP in an attempt to pass level 90 and the audio problem seems to be less frequent whit this game.

                                    it's possible this issue was fixed(?) with retroarch 1.9.5, which retropie recently upgraded to. or maybe a firmware update. who knows...

                                    DjDiabolikD 1 Reply Last reply Reply Quote 0
                                    • DjDiabolikD
                                      DjDiabolik @dankcushions
                                      last edited by DjDiabolik

                                      @dankcushions said in [Pi4 - 4.7.1x after recent update audio little glitch/struttering or miss some >

                                      what exactly are you changing? is it not something you can configure during https://retropie.org.uk/docs/Controller-Configuration/ ?

                                      I change the Input controller... i change the "Device Type" From "Retropad" -> "Retropad whit Analog".

                                      Then immediately below (Analog to digital type) default is selected "None" and i choose here "Left" Analog"

                                      At this point for to keep this setting i need to save the retroarch.cfg and it's be stored on "all" folder and this created the non-standard configuration :)

                                      it's possible this issue was fixed(?) with retroarch 1.9.5, which retropie recently upgraded to. or maybe a firmware update. who knows...

                                      all can be append :) I'll better test this in the next few days because i need to beat this fu****ing game :)
                                      I also took a look at the cpu temperatures after playing for that hour or so.... when i return to emulationstation i press F4 immediatelly on keyboard and i can read the CPU temp it was below 45 ° (which i think is ok right ?).

                                      Whatever this game has a very complex background music compared to many other gb titles... for a purpose test in this days i have also played the same roms from my PC (a i3 6098P whit 8GB of DDR4 and a AMD R7 360) using mgba for windows and also here (from the title bar of app) i can clearly see that while i am playing the fps go down from 60 also at 57/56 sometime.
                                      This game seems to undermine emulation even on windows :)

                                      2nd EDIT After another games played
                                      About retroarch.cfg discussion......... right now i have tryed this way:
                                      https://retropie.org.uk/docs/RetroArch-Configuration/#core-input-remapping

                                      I have activated the input_player1_analog_dpad_mode = "1" and it's saved on a file like Gambatte.rmp inside /opt/config/retropie/gb/Gambatte.

                                      Now need if this file it's autoloaded every time i use lr-gamebatte :)

                                      DjDiabolikD 1 Reply Last reply Reply Quote 0
                                      • DjDiabolikD
                                        DjDiabolik @DjDiabolik
                                        last edited by

                                        And last night, i have finally BEAT this games.
                                        I have finally BEAT all 100 level of CATRAP :)

                                        Now in future it's only to check if there's little glitch it's been fixed/removed on next retropie updates or it's made most persistent also in other system component/core... and i hope no obviously.

                                        1 Reply Last reply Reply Quote 0
                                        • dankcushionsD
                                          dankcushions Global Moderator
                                          last edited by dankcushions

                                          i believe i'm seeing this same issue now. i am on a pi4 playing a lot of SNES right now (so an entirely different emulator), and at random intervals (can be 10+ minutes) I get a second or so of sound cutting out. no frame-drop, just the sound cuts.

                                          if i switch audio_driver to alsa (it defaults to alsathreadon pi4 in current retroarch, following a recent change), the drops never happen.

                                          verbose logs reveal nothing. it's strange as the alsathread driver is well-tested on the earlier pi systems, so i'm not sure what makes the pi4 different, or why there's not more talk of this issue. perhaps there's something else unique about my/our setup.

                                          sirhenrythe5thS 1 Reply Last reply Reply Quote 0
                                          • sirhenrythe5thS
                                            sirhenrythe5th @dankcushions
                                            last edited by sirhenrythe5th

                                            @dankcushions thank you so much for the side-note concerning "alsathread".
                                            I was not aware of that and had a look yesterday...all my libretro-cores were set to "alsa".
                                            I had sound-issues (hickups, something that sounded like switching from mono to stereo during gameplay and so on...) in all cores since i started with the Pi4 and thought it will be fixed with upcoming updates.
                                            But changing the Audio-Setting in RA from "alsa" -> "alsathread" did the trick!
                                            Sound is stable now and...performance-boost!
                                            Yeah, now i.e. "Virtua Tennis" (Dreamcast) or "Mat Hoffman BMX" (Dreamcast) run flawlessy :D
                                            Thank you very much!, i had no idea that the default audio-settings have to be changed to get a good performance.

                                            -- Retro-Achievements Username: SirALX --
                                            RetroRatio: 1.88
                                            Started Games beaten: 2,47%
                                            Site Rank: 4382/93743 ranked users (TOP 4.76%)
                                            Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                                            dankcushionsD 1 Reply Last reply Reply Quote 1
                                            • 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.