• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie

Scheduled Pinned Locked Moved Help and Support
lagrpi240p testsuitepvmimput lag
15 Posts 7 Posters 5.9k 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.
  • R
    rig
    last edited by 7 Mar 2017, 06:48

    so I ran a lag test. and I am a bit disappointed with the pi.
    Here is the setup:

    RPi>gert666>USMC>pvm
    I compared this to a modded snes mini>pvm.
    I am using snes 240p testsuite (the snes version) and running a "manual lag test". I use an everdrive with the snes.

    The results: average of 1.2 frames lag original hardware (this is due to my slow ass and not the hardware) vs average of 3.5 frames lag RPi... :( don't think I will be playing Battletoads on the RPi anytime soon.

    Anybody got any ideas how to reduce lag on the RPi? Could the USMC be introducing any lag?...by the way I hate lag. Lag is what started me down this rabbit hole of rgb/pvm etc. I couldn't beet the clinger winger stage on Battletoads using my emulator and flatscreen. Next thing you know my living room looks like a shrine to 1990s retro gaming :-I

    M 1 Reply Last reply 7 Mar 2017, 07:19 Reply Quote 0
    • M
      mediamogul Global Moderator @rig
      last edited by mediamogul 3 Jul 2017, 07:21 7 Mar 2017, 07:19

      @rig

      vs average of 3.5 frames lag RPi

      There will always be some amount of lag in an emulation setup. A lot of people are thrilled when they shave lag down to 3.5 frames. There's only a handful of games out there that are so time sensitive and it's possible that even they can be beaten with a little more practice than is normally required. For example, forum member @RumblinBuffalo just beat Mike Tyson without any real regard to lag-specific settings at all.

      Anybody got any ideas how to reduce lag on the RPi?

      I've seen these tips recommended over time:

      Overall:
      Use a CRT Television
      Disable all post-processing features, or switch to 'Game Mode' on a LCD TV
      Wired controllers
      Dispmanx where applicable

      RetroArch:
      video_driver = "dispmanx"
      video_threaded = "false"
      video_frame_delay = "5"

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      1 Reply Last reply Reply Quote 1
      • D
        dankcushions Global Moderator
        last edited by 7 Mar 2017, 10:39

        @rig said in lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie:

        USMC

        what's this?

        perhaps if you tried it via the AV out rather than your hdmi > CRT setup.

        also, 3.5 frames is actually very good for emulation. if you see https://forums.libretro.com/t/an-input-lag-investigation/4407 you will see that even windows gets this sort of figure. it used to be a lot worse!

        i think you'll struggle to get an improvement from there.

        R 1 Reply Last reply 7 Mar 2017, 20:11 Reply Quote 1
        • R
          rig @dankcushions
          last edited by 7 Mar 2017, 20:11

          @dankcushions Thanks! yea people are telling me that these are good results. I guess my expectations are high. I will research how to implement these settings
          RetroArch:
          video_driver = "dispmanx"
          video_threaded = "false"
          video_frame_delay = "5"

          Is "video_threaded = "false" video_frame_delay = "5"" altered in the config file?, I am guessing "video_driver = "dispmanx"" is enabled through retropie config menu....is that right? I will run another lag test as soon as I try these new settings.

          I am using a crt tv; I don't use the the hdmi port I use a hat board that outputs vga. the vga is then sent to the USMC (you can find them at arcade forge online, they're pretty cheap) which combines the H and V sync from the vga signal and outputs rgb with composite sync to a scart cable that goes to my monitor. I have been told that the USMC and the hat board introduce zero lag, this method is preferable to utilizing a hdmi to vga converter because (as I have been told) that method introduces lag. I also use a wired ps2 controller. Thanks again!

          P 1 Reply Last reply 7 Mar 2017, 21:04 Reply Quote 0
          • P
            pjft @rig
            last edited by 7 Mar 2017, 21:04

            @rig I believe all of them can be changed in the RetroArch menu. You do need to save them for turn to be applied when you restart RetroPie, so depending on your setup you may want to go straight to the config files for that after you're happy with the results.

            Is there any particular emulator you're using as well, though? In my previous experiences with SNES, there is a noticeable difference in terms of input lag between some emulators, at least in Super Mario World there's one of the emulators in which I just can't play it as the timing is completely off for me at least. I don't have the name of the top odds my head, but if input lag is part of your concerns then try that as well.

            Still, 3.5 is a great number.

            R A 2 Replies Last reply 8 Mar 2017, 02:20 Reply Quote 0
            • R
              rig @pjft
              last edited by 8 Mar 2017, 02:20

              @pjft Yeah thanks I was able to find all the retroarch settings, make the changes and run the test again. I ran the test with the RPi without the retroarch alterations (lag was an average of 1.7 frames), I then ran it with the the retrtoarch alterations (lag was an average of 1.3 frames). and I ran the test again with original hardware (lag was an average of 0.5 frames)

              My numbers were really low this time. I did a few things different: I did the test in the morning, as apposed to late at night when i was tired; I sat right in front of the monitor really close; I did 10 practice/throw away lag tests before I recorded the 5 tests that I averaged to get my data; I used the same monitor (my sharpest monitor) for all the tests, I noticed that It was getting better times on my sharp monitor (it is easier to align the two shapes during the lag test with a really sharp monitor)

              I am a little shocked how good the numbers were, especially after multiple people have been telling me that 3.5 frames is a good number.

              so there was a slight advantage to using the retroarch settings. Will these settings cause any problems with emulation? compatibility?etc? Thanks guys, this was fun to tinker around with

              M 1 Reply Last reply 8 Mar 2017, 03:32 Reply Quote 1
              • M
                mediamogul Global Moderator @rig
                last edited by mediamogul 3 Aug 2017, 03:41 8 Mar 2017, 03:32

                @rig said in lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie:

                Will these settings cause any problems with emulation?

                The biggest consideration I can think of is that using dispmanx in RetroArch prevents the use of shaders and overlays, but aside from looking really nice, they would add a frame or two of lag, so it would go against your main goal here to begin with. Also, any of the yellow onscreen text will not be visible, making notifications from features like RetroAchievements impossible. That aside, I have to say 1.3 and even 1.7 frames of lag is quite impressive. Many thanks go out to everyone who made that possible.

                Edit: I'd be interested to hear if you're able to beat the 'Clinger Winger' stage on 'Battletoads' with this setup if you ever get around to it.

                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                R 1 Reply Last reply 8 Mar 2017, 05:22 Reply Quote 0
                • R
                  rig @mediamogul
                  last edited by 8 Mar 2017, 05:22

                  @mediamogul Thanks man; I can live without shaders. I will definitely attempt Battletoads with the pi. I typically pass clingerwinger first try with original hardware but I have never been able to pass it with an emulator. I am pretty excited about it actually. probably happen next week. I let you know.

                  1 Reply Last reply Reply Quote 1
                  • M
                    maxriptide
                    last edited by 8 Mar 2017, 20:58

                    I have a RPi3 with Gert-VGA + UMSA scart adapter hooked up to a Sony PVM CRT Monitor and I use the following settings on retroarch.cfg for Megadrive and PC Engine emulator:
                    video_threaded = "false"
                    vsync = "true"
                    video_hard_sync = "true"
                    video_frame_delay = "10"

                    My results with the 240p Suite Manual Lag Test are approximately 0.5 frames for both emulator which is the same value I get with the real consoles hooked up to the same monitor. With the same test on the SNES emulator (I don't own a SNES) I get approximately 1.5 frames lag.

                    B R 2 Replies Last reply 8 Mar 2017, 21:09 Reply Quote 1
                    • B
                      BuZz administrators @maxriptide
                      last edited by BuZz 3 Aug 2017, 21:10 8 Mar 2017, 21:09

                      @maxriptide video_hard_sync = "true" has no effect on the RPI btw. Vsync should be enabled by default.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      M 1 Reply Last reply 8 Mar 2017, 21:12 Reply Quote 0
                      • M
                        maxriptide @BuZz
                        last edited by 8 Mar 2017, 21:12

                        @BuZz didn't know that, thanks

                        1 Reply Last reply Reply Quote 0
                        • R
                          rig @maxriptide
                          last edited by 8 Mar 2017, 23:01

                          @maxriptide you know what. Your the third person to point out that the snes emulator is prone to lag. I will try again with my sega setup. For some reason i couldn't get the genesis 240p test suite to work with the pi so i gave up.

                          Thanks for responding. I was hopeing someone could duplicate my results. Our data is really close. Cool.
                          How does the "frame delay" work. It can't actually be delaying video ten frames. I wonder how this would effect fighting games. Does it delay frames from the player? Does it delay frames from the npc? Both?

                          M 1 Reply Last reply 9 Mar 2017, 05:25 Reply Quote 0
                          • M
                            maxriptide @rig
                            last edited by 9 Mar 2017, 05:25

                            @rig to be honest I really don't know how it works, maybe someone in the forum could explain that, all I know is that after using these setting I found on the web I got rid of the lag. I should also try to remove the video_hard_sync = "true" line since, as BuZz wrote, it should not have any effect on the RPi.

                            1 Reply Last reply Reply Quote 0
                            • A
                              AndersHP @pjft
                              last edited by 23 May 2017, 14:52

                              @pjft said in lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie:

                              @rig I believe all of them can be changed in the RetroArch menu. You do need to save them for turn to be applied when you restart RetroPie, so depending on your setup you may want to go straight to the config files for that after you're happy with the results.

                              Does this mean that they wont be applied unless you save and restart? Or do they apply instantly but get reset if not saved? Sorry if it's a stupid question.

                              My "Bubble Bobble" Themed Bartop Arcade
                              My Gameboy

                              R 1 Reply Last reply 23 May 2017, 19:57 Reply Quote 0
                              • R
                                rig @AndersHP
                                last edited by 23 May 2017, 19:57

                                @AndersHP said in lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie:

                                @pjft said in lag lag lag, I hate it, just ran a lag test and am disappointed with RPi/retropie:

                                @rig I believe all of them can be changed in the RetroArch menu. You do need to save them for turn to be applied when you restart RetroPie, so depending on your setup you may want to go straight to the config files for that after you're happy with the results.

                                Does this mean that they wont be applied unless you save and restart? Or do they apply instantly but get reset if not saved? Sorry if it's a stupid question.

                                I believe that the changes are applied immediately but as soon as you exit the game/retroarch you lose the changes unless you save them. You can verify this by making changes, exiting the menu and the reentering the menu and checking to see if your changes are still there.

                                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.

                                  This community forum collects and processes your personal information.
                                  consent.not_received