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

New emulation method to eliminate input lag

Scheduled Pinned Locked Moved General Discussion and Gaming
libretroinput lag
44 Posts 11 Posters 20.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.
  • D
    dankcushions Global Moderator @Keltron3030
    last edited by 19 May 2018, 14:42

    @keltron3030 you have to update your retropie-setup script first.

    K 2 Replies Last reply 19 May 2018, 15:50 Reply Quote 0
    • K
      Keltron3030 @dankcushions
      last edited by 19 May 2018, 15:50

      @dankcushions

      Oh, got it thanks. Now I'm on 1.7.3 and I see latency settings; thanks. Now my hot keys don't work, dammit! 🤪

      1 Reply Last reply Reply Quote 0
      • M
        mediamogul Global Moderator
        last edited by mediamogul 19 May 2018, 17:57

        In trying to read as much as I can to understand run-ahead better, I found where the developer of the feature (Dwedit) has stated that a setting of 1 frame of run-ahead "should almost always be safe" in games that have inherent latency. This likely only excludes Atari 2600 titles, as there is no inherent latency for those games, by nature of how they were programmed, so naturally run-ahead would have no benefit there.

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

        1 Reply Last reply Reply Quote 0
        • K
          Keltron3030 @dankcushions
          last edited by 19 May 2018, 18:22

          @dankcushions

          Oh, it's awesome. Totally fixed Contra and MegaMan 2 for me. Thanks guys for pointing this out.

          M 1 Reply Last reply 19 May 2018, 18:30 Reply Quote 0
          • M
            mediamogul Global Moderator @Keltron3030
            last edited by 19 May 2018, 18:30

            @keltron3030 said in New emulation method to eliminate input lag:

            Totally fixed Contra and MegaMan 2 for me.

            Last night I held my own and survived all three rounds against Mike Tyson for my first time ever. Of course he won by decision, but my next goal is to "git gud" and send him to the mat with a second round TKO.

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

            1 Reply Last reply Reply Quote 0
            • P
              pjft @mediamogul
              last edited by 19 May 2018, 20:59

              @mediamogul Thank you for the detailed response. I was hoping there'd be a stable "default-ish" setup that would work for the majority of cases in each system, and then I'd adjust the ones for which it didn't work.

              From reading your developments, I believe 2 might hopefully be the right value for nes, genesis, and potentially snes as you're describing - with the 2nd core, of course.

              I'll dig into that in the coming week, many thanks all!

              M 1 Reply Last reply 19 May 2018, 21:23 Reply Quote 0
              • M
                mediamogul Global Moderator @pjft
                last edited by mediamogul 19 May 2018, 21:23

                @pjft said in New emulation method to eliminate input lag:

                I was hoping there'd be a stable "default-ish" setup that would work for the majority of cases in each system

                A setting of '1' should actually be stable across the board, barring 2600 games. Anything more in many games will alter your timing in the opposite direction as latency and even create artifacts, such as single-frame 'game over' screens and sprite interactions that shouldn't carry over from your actual input. Still, a setting of '2' is only adding one more frame and it's possible that artifacting would rarely be noticed.

                I'll dig into that in the coming week

                Let us know how it goes.

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

                1 Reply Last reply Reply Quote 0
                • K
                  Keltron3030
                  last edited by 20 May 2018, 23:36

                  Hey guys how to I enable the latency features for just some emulators. Do I need to setup custom emulator config files or is there an easier way to do this through the gui.

                  M 1 Reply Last reply 21 May 2018, 00:50 Reply Quote 0
                  • M
                    mediamogul Global Moderator @Keltron3030
                    last edited by mediamogul 21 May 2018, 00:50

                    @keltron3030

                    You could enable it for individual systems by adding

                    run_ahead_enabled = "true"
                    run_ahead_frames = "1"
                    run_ahead_secondary_instance = "true"
                    

                    to /opt/retropie/configs/chosen-system/retroarch.cfg above the #include line

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

                    K 1 Reply Last reply 21 May 2018, 01:43 Reply Quote 2
                    • K
                      Keltron3030 @mediamogul
                      last edited by 21 May 2018, 01:43

                      @mediamogul

                      Excellent, thanks a lot.

                      1 Reply Last reply Reply Quote 0
                      44 out of 44
                      • First post
                        44/44
                        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