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

    How to count number of frames of lag for Run Ahead using keyboard

    Scheduled Pinned Locked Moved Help and Support
    run aheadkeyboard hotkeylatencycounting frames
    27 Posts 6 Posters 4.5k 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.
    • E
      EmergencyPoncho
      last edited by

      Hi all! I'm currently using the latest weekly build of RetroPie on my Pi4 and I'm experimenting with Run Ahead, which is amazing so far! At this point, I've been choosing the number of Run Ahead frames by what 'feels' right but I'm hoping to dial things in more precisely and cut out only exactly the number of frames of lag using the same method ETA Prime uses in this video:


      He's using a PC and presses P on the keyboard to pause the game, holds the jump button on his controller, then presses K on keyboard until the character's jump begins in order to count the number of frames of lag. In the end, the number of frames of lag equals the number of times K is pressed minus 1.

      In all of my efforts so far, I can't figure out how to get this method working in RetroPie because of the Hotkey. As soon as I plug in my keyboard, RetroPie treats it as a controller/gamepad unless I'm holding the Hotkey. But when I'm holding the Hotkey, I can't hold down the jump button on my controller.

      Does anyone know how I can precisely count the number of frames of lag in RetroPie? Thanks for any advice!!

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

        Use the keyboard only and remove the controller then.

        E 1 Reply Last reply Reply Quote 0
        • E
          EmergencyPoncho @mitu
          last edited by

          @mitu If I remove the controller, I have the same issue where the keyboard is treated as a gamepad unless I hold down the hotkey. And if I hold down the hotkey to pause with P or advance the frames one at a time with K, I can't hold down the jump button.

          Is there a way for the keyboard to not be treated as a gamepad and simply as a keyboard, as it works in ETA Prime's video?

          1 Reply Last reply Reply Quote 0
          • G
            grant2258 Banned
            last edited by

            yes use gamefocus mode if its not set set it to something it will disable hotkeys and retropad binds

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

              I don't think I have the same problem as you - if I plug in a keyboard, it works like a keyboard, no hotkey is attached.

              E 1 Reply Last reply Reply Quote 0
              • E
                EmergencyPoncho @grant2258
                last edited by

                @grant2258 I'll do a search on gamefocus mode, thanks.

                1 Reply Last reply Reply Quote 0
                • G
                  grant2258 Banned
                  last edited by

                  its in settings -> input -> hotkeybinds

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    EmergencyPoncho @mitu
                    last edited by

                    @mitu Weird! After I launch an emulator/game, my keyboard is automatically turned into a gamepad where the arrow keys are the d-pad and Z, X, etc are the face buttons. I have to hold down a hotkey (I've been using Select on my gamepad) in order to make the keyboard work as a regular, old keyboard.

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

                      @EmergencyPoncho These are the default binds for a keyboard in RetroArch - this is how the testing was done in the video I presume ?

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        EmergencyPoncho @grant2258
                        last edited by

                        @grant2258 Thanks, but I just tested this and as soon as I turn game focus mode on, the hotkey stops working, the keyboard no longer works as a gamepad but pressing keys like P or K on keyboard also do nothing now. I have to turn game focus off again then hold the hotkey in order to use P and K on the keyboard.

                        1 Reply Last reply Reply Quote 0
                        • E
                          EmergencyPoncho @mitu
                          last edited by

                          @mitu Yes, I believe so. I haven't edited the keyboard bindings and the only keys pressed in the video are P to pause and K to advance one frame at a time all while he is holding jump on the gamepad. It seems so simple but, for some reason, this isn't working for me!

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

                            OK, I see it now - I could have sworn that keyboard input isn't influenced by the hotkey. You don't have to keep the Hotkey pressed once you've paused. So press Pause (Hotkey + P), release the hotkey, press Jump (on the gamepad), then frame advance with Hotkey + K.

                            Alternatively, unplug the gamepad and use Z/X (instead of A/B) and the arrow keys instead of the D-Pad. Use P and K normally to pause/frame advance.

                            E 1 Reply Last reply Reply Quote 0
                            • E
                              EmergencyPoncho @mitu
                              last edited by

                              @mitu Hmm, that's essentially what I've been trying so far. I just tested this exact method again and I think the problem is that whenever the hotkey is held (either on the keyboard or on the controller) in order to Pause or Frame Advance, this nullifies the regular controller inputs, like jump. So when using the sequence you suggested, the character will never actually jump even though I'm holding the jump button when trying to advance frames.

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

                                @EmergencyPoncho The keyboard itself - by default - doesn't have a hotkey assigned, so if you remove the gamepad, there's no hotkey at all.

                                E 1 Reply Last reply Reply Quote 0
                                • E
                                  EmergencyPoncho @mitu
                                  last edited by

                                  @mitu Right, but I need the hotkey to Pause and Frame Advance, so it's more convenient to add a hotkey to the keyboard so I don't need to hold select on my controller and press P on the keyboard, for example. In any case, it looks like the hotkey makes it impossible to count the frames of lag. Maybe someday there will be an option for the keyboard to function only as a keyboard and not as a gamepad.

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

                                    Seems to me like a self-inflicting problem - without a Hotkey on the KB, you'll be able to use it normally (as a keyboard).

                                    E 1 Reply Last reply Reply Quote 0
                                    • E
                                      EmergencyPoncho @mitu
                                      last edited by

                                      @mitu This problem still occurs without a hotkey assigned to the keyboard - you still need to hold the gamepad hotkey (ex: Select) in order to press P and K on the keyboard to Pause and Frame Advance.

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

                                        As long as you disconnect your gamepad, there's no Hotkey issue. I'm not going to repeat myself again.

                                        E 1 Reply Last reply Reply Quote 0
                                        • E
                                          EmergencyPoncho @mitu
                                          last edited by

                                          @mitu I've tested this before by removing the gamepad and I just tested it again - the keyboard functions as a gamepad by default and pressing P and K on the keyboard don't do anything without the hotkey. And I have reset the config file so there is no hotkey assigned to the keyboard.

                                          I appreciate your suggestions and your efforts but my time is also worth something and I too have been repeating myself. I get the sense you haven't tested what you're suggesting.

                                          mituM saccublendaS 2 Replies Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator @EmergencyPoncho
                                            last edited by

                                            @EmergencyPoncho said in How to count number of frames of lag for Run Ahead using keyboard:

                                            I appreciate your suggestions and your efforts but my time is also worth something and I too have been repeating myself. I get the sense you haven't tested what you're suggesting.

                                            Actually I did, why would you assume I haven't ?

                                            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.