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

    Some my emulators are slow / glitchy audio

    Scheduled Pinned Locked Moved Help and Support
    slowglitchyscratchy audio400
    30 Posts 5 Posters 2.8k 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.
    • mituM
      mitu Global Moderator @LektroiD
      last edited by mitu

      Your resolution is 4k@30hz. It's a bit too much too handle for emulation - I suggest you lower your resolution to 1080p@60hz.

      The Pi4 doesn't output 4k@60hz by default, if you want to still keep the 4k resolution, then enable 4k@60hz from raspi-config or add to /boot/config.txt:

      hdmi_enable_4kp60=1
      
      L 1 Reply Last reply Reply Quote 0
      • dankcushionsD
        dankcushions Global Moderator @LektroiD
        last edited by dankcushions

        @lektroid

        please format your logs correctly - see https://retropie.org.uk/forum/topic/3/read-this-first ('code blocks' section). i have edited your post this time :)

        Finally I have the file. This is outputted from the Vectrex emulator. I can not get one from the C64 emulator, as there is no way to shut the app down after using it, so the unit needs to be unplugged to come out of the app, meaning the log file will disappear...

        are you using escape key to exit? see https://retropie.org.uk/docs/Commodore-64-VIC-20-PET/

        as for your log, the problem is as i expected:

        [INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 30.00 Hz, Game = 50.00 Hz)
        [INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync.
        [INFO] [Video]: Video @ 3840x2160

        you're using a 4k30 mode. select a 1080p60 resolution mode via raspi-config (available on the retropie settings section in emulationstation)

        1 Reply Last reply Reply Quote 0
        • L
          LektroiD @mitu
          last edited by

          @mitu said in Some my emulators are slow / glitchy audio:

          Your resolution is 4k@30hz. It's a bit too much too handle for emulation - I suggest you lower your resolution to 1080p@60hz.

          The Pi4 doesn't output 4k@60hz by default, if you want to still keep the 4k resolution, then enable 4k@60hz from raspi-config or add to /boot/config.txt:

          hdmi_enable_4kp60=1
          

          Hi, I cannot change the resolution, when I go into Raspi-Config I select "2 Display Options", then "D1 Resolution", and it just jumps back to the first Raspi-Config screen, and thus loops around those two menus. I tried entering the code you suggested, but the audio is still slow and glitchy.

          Pi Model: Raspberry Pi 400
          PSU: Official 5.1VDC / 3A
          RetroPie Version: 4.7.1-rpi4_400
          Built From: Raspberry Pi Imager v1.5
          USB Devices connected: Mouse / Controller
          Controller used: PS4 Dualshock via USB

          dankcushionsD mituM 2 Replies Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator @LektroiD
            last edited by

            @lektroid you can manually set the mode in /boot/config.txt

            for example, for 1080p on mine I use

            hdmi_group=2
            hdmi_mode=82
            

            you could try that or

            hdmi_group=1
            hdmi_mode=16
            

            these are the typical ones.

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @LektroiD
              last edited by dankcushions

              As an alternative to raspi-config, you can add to your /boot/config.txt file:

              hdmi_group=1
              hdmi_mode=16
              

              and remove the hdmi_enable_4kp60 line.

              1 Reply Last reply Reply Quote 0
              • L
                LektroiD
                last edited by

                @mitu said in Some my emulators are slow / glitchy audio:

                hdmi_group=1
                hdmi_mode=16

                Tried saving the file with the new settings, but it says the file is locked and won't let me save

                Pi Model: Raspberry Pi 400
                PSU: Official 5.1VDC / 3A
                RetroPie Version: 4.7.1-rpi4_400
                Built From: Raspberry Pi Imager v1.5
                USB Devices connected: Mouse / Controller
                Controller used: PS4 Dualshock via USB

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @LektroiD
                  last edited by

                  @lektroid How are you editing the file ? If you're using an editor from the PI, make sure you're using sudo when you start the editor, the file is not editable by the pi user, since it's a system file.

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    LektroiD @mitu
                    last edited by

                    @mitu said in Some my emulators are slow / glitchy audio:

                    @lektroid How are you editing the file ? If you're using an editor from the PI, make sure you're using sudo when you start the editor, the file is not editable by the pi user, since it's a system file.

                    @mitu I'm plugging the SD into the mac, then using Textedit to edit the file (It's the only way I know), not sure how to use sudo?

                    Pi Model: Raspberry Pi 400
                    PSU: Official 5.1VDC / 3A
                    RetroPie Version: 4.7.1-rpi4_400
                    Built From: Raspberry Pi Imager v1.5
                    USB Devices connected: Mouse / Controller
                    Controller used: PS4 Dualshock via USB

                    1 Reply Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator
                      last edited by

                      You don't need sudo if you're editing the file on macOS.

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        LektroiD @mitu
                        last edited by

                        @mitu said in Some my emulators are slow / glitchy audio:

                        You don't need sudo if you're editing the file on macOS.

                        So, what's the best way to edit it, since MacOS won't save the file?

                        Pi Model: Raspberry Pi 400
                        PSU: Official 5.1VDC / 3A
                        RetroPie Version: 4.7.1-rpi4_400
                        Built From: Raspberry Pi Imager v1.5
                        USB Devices connected: Mouse / Controller
                        Controller used: PS4 Dualshock via USB

                        1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator
                          last edited by

                          Just edit it from the Pi. Exit EmulationStation and then run

                          sudo nano /boot/config.txt
                          

                          to edit the file. Reboot after saving the file, by running sudo reboot.

                          1 Reply Last reply Reply Quote 0
                          • L
                            LektroiD @dankcushions
                            last edited by

                            @dankcushions said in Some my emulators are slow / glitchy audio:

                            @lektroid said in Some my emulators are slow / glitchy audio:

                            @dankcushions Thanks for your reply, but this is not working. I have followed the instructions to the word, inserted all the information into Cyberduck exactly, there is nowhere to add an IP address in Cyberduck, so obviously I could not enter that, and it refuses connect.

                            there sure is - i use it myself:

                            b0b38c87-379d-495c-98a2-ad0be5c03490-image.png

                            Open Connection > Server prompt.

                            I have this running now, thanks for the image, I was entering a server name where the IP should go.

                            However, I still cannot save the file, it says "Permission denied. Please contact your web hosting service provider for assistance." and refuses to overwrite.

                            How can I give permission to the file so it will save?

                            Pi Model: Raspberry Pi 400
                            PSU: Official 5.1VDC / 3A
                            RetroPie Version: 4.7.1-rpi4_400
                            Built From: Raspberry Pi Imager v1.5
                            USB Devices connected: Mouse / Controller
                            Controller used: PS4 Dualshock via USB

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

                              @lektroid it looks like the file is owned by root and i'm not sure how to give cyberduck sudo - i don't use it for editing files, just accessing and transferring. i would follow @mitu 's advice as to how to edit it via commandline.

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                LektroiD @dankcushions
                                last edited by

                                @dankcushions I'll have a go, but I'm no commandline guru, hopefully I can work it out.

                                I'm just confused as to why I am unable to access the screen resolutions from the Display Options menu, is something broken?

                                Pi Model: Raspberry Pi 400
                                PSU: Official 5.1VDC / 3A
                                RetroPie Version: 4.7.1-rpi4_400
                                Built From: Raspberry Pi Imager v1.5
                                USB Devices connected: Mouse / Controller
                                Controller used: PS4 Dualshock via USB

                                1 Reply Last reply Reply Quote 0
                                • L
                                  LektroiD
                                  last edited by

                                  @dankcushions
                                  @mitu

                                  All sorted, the emulator is working perfectly. Thanks for all your help, and thanks also for putting up with my incompetence.

                                  A huge thanks from both my wife and myself. We are both delighted!

                                  Pi Model: Raspberry Pi 400
                                  PSU: Official 5.1VDC / 3A
                                  RetroPie Version: 4.7.1-rpi4_400
                                  Built From: Raspberry Pi Imager v1.5
                                  USB Devices connected: Mouse / Controller
                                  Controller used: PS4 Dualshock via USB

                                  jamrom2J 1 Reply Last reply Reply Quote 1
                                  • jamrom2J
                                    jamrom2 @LektroiD
                                    last edited by

                                    @lektroid said in Some my emulators are slow / glitchy audio:

                                    @dankcushions
                                    @mitu

                                    All sorted, the emulator is working perfectly. Thanks for all your help, and thanks also for putting up with my incompetence.

                                    A huge thanks from both my wife and myself. We are both delighted!

                                    Hi. I'm popping in late on this one but I wanted to point something else out to you while you travel down the Retropie path. Unlike other single source software that is written by one person and constantly updated by the same... Think or Retropie as a huge umbrella that a ton of individuals came together under to get all these emulators to work with each other.

                                    Many of the emulators have been tweaked to specifically work in the Retropie world, so it will pay you back 10 fold to start to become familiar with some Linux commands and how it works. Don't have to be an expert, but as you add emulators and what they need to work, it will help a lot.

                                    Download Putty and if you are using a PC WinSCP. They are for getting straight in to the PIs file system and working with it. You can use a Mac, but again, it's not always the same as just using mac files. Linux requires permissions to be changed on folders, files..etc.

                                    Also... Commodore 64... If you are using Vice, there is a great video on youtube by a guy named ETAPrime who shows you how to configure the buttons to work the emulator. There is also lr-vice you can download sperately that will pickup the standard Retroarch joystick button commands.

                                    Either way you'll need to read and research many of the emulators as you add them. Many need special configurations to use properly. Take one at a time. I have 43 systems running on mine. Took me almost a year to get them all working correctly...or as best that I could.

                                    Good luck, come back often to ask questions. You're only 'incompetent' because you don't have knowledge. Knowledge is all about effort. Max effort = max knowledge.

                                    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.