Post subject: 1 Frame Input Delay
Joined: 1/13/2014
Posts: 56
When I have made a few seconds of gameplay in a tas, the input seems start lagging by one frame. What should happen is that I do an input, frame advance, and the input occurs. But instead I have to push the button a frame earlier than I should have to, as the input seems to be delayed. This really becomes a problem with techniques such as Sonic's bounce in SA2B as that require a large amount of frame perfect inputs. I really don't know if this is an issue with dolphin or the game, but this has happened to me on Sonic Adventure 2, Smash Bros. Melee, and Super Mario Sunshine (and I think in Smash Bros. Brawl but it's been a while, and I don't quite remember). This has happened to me ever since I started tasing on dolphin, which was on 4.0.2. This has happened to me on the latest build I have which is 5993, but I will test on a newer build if necessary.
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
Smells like a fixed input frame timing going in and out of sync with when the game polls controllers and dispatches video frames. Does Dolphin do something like that?
Joined: 12/31/2009
Posts: 174
I assumed this was normal behavior because bluetooth isn't instantaneous so the input would be piped in with a small delay for stability. Desmume has a 3 frame delay so consider yourself lucky it is only 1 frame.
Post subject: Re: 1 Frame Input Delay
DwainiumB
He/Him
Player (58)
Joined: 2/2/2013
Posts: 316
Location: Where the world can see me.
Flossy wrote:
When I have made a few seconds of gameplay in a tas, the input seems start lagging by one frame.
Are you using Keyboard or TAS Input? Because I know that if I use my Keyboard the input is delayed by 1 frame but if I use TAS Input, it is fine. Not sure if this applies to anyone else or just my PC/Dolphin
Perception is the greatest deception. nitrogenesis: 04:43:04: but TAS is life nitrogenesis: 04:43:23: TAS everyday MKWii TAS Discord: https://discord.gg/z5bu44H MKWii TAS Records: https://goo.gl/ZrGKgt Currently Trying to TAS: On Hold: The Incredibles (GC) The Incredibles: Rise Of The Underminer (GC) Future: (GC) Egg Mania: Eggstreme Madness (Wii) The Adventures of Tintin: The Secret of The Unicorn Mario Kart Wii 32 Track GP
Post subject: Re: 1 Frame Input Delay
Joined: 1/13/2014
Posts: 56
DwainiumB wrote:
Flossy wrote:
When I have made a few seconds of gameplay in a tas, the input seems start lagging by one frame.
Are you using Keyboard or TAS Input? Because I know that if I use my Keyboard the input is delayed by 1 frame but if I use TAS Input, it is fine. Not sure if this applies to anyone else or just my PC/Dolphin
I'm using tas input. Edit: It isn't consistent lag, everything works fine for 10 or so seconds of gameplay, but then the issue arises, but will go away after some more time.
Post subject: Re: 1 Frame Input Delay
RachelB
She/Her
Player (129)
Joined: 12/3/2011
Posts: 1579
DwainiumB wrote:
Flossy wrote:
When I have made a few seconds of gameplay in a tas, the input seems start lagging by one frame.
Are you using Keyboard or TAS Input? Because I know that if I use my Keyboard the input is delayed by 1 frame but if I use TAS Input, it is fine. Not sure if this applies to anyone else or just my PC/Dolphin
That makes no sense at all. tasinput just hijacks the normal input polling, it doesn't change anything else.
Experienced player (583)
Joined: 1/27/2011
Posts: 427
Location: Oregon
Megaman 9/10 have 4 frame delays. Could be a game specific issue. I've just been accounting for this as I TAS and go by VI number instead of what's rendered on screen.
JoselleAstrid
She/Her
Joined: 9/9/2013
Posts: 35
If you're familiar with a RAM watch program like MHS or Cheat Engine, you may be able to use that to determine whether the delay is the emulator or the game. There should be some RAM values in Dolphin corresponding to the inputs you make. For example, the main stick's X direction could be in a signed byte (values of -128 to 127) which is negative when holding the stick left, and positive when holding the stick right. So you could search for this kind of value (keep moving the stick and scan for increasing/decreasing values), and then browse the nearby memory addresses to find the rest of the stick directions and buttons. Then watch these memory values to see if they react to your TAS input / keyboard presses with the timing that you expect.
Joined: 1/13/2014
Posts: 56
So it seems that Dolphin is responding to inputs perfectly fine, which leads me to conclude that this is caused by the game.
Patashu
He/Him
Joined: 10/2/2005
Posts: 4043
Flossy wrote:
So it seems that Dolphin is responding to inputs perfectly fine, which leads me to conclude that this is caused by the game.
Yup, some games have a 1 frame input delay due to how they process input. So what you would want in this case is some kind of TASEditor modification where when you put input into a frame, it puts it into the PREVIOUS frame instead. No idea how hard this is.
My Chiptune music, made in Famitracker: http://soundcloud.com/patashu My twitch. I stream mostly shmups & rhythm games http://twitch.tv/patashu My youtube, again shmups and rhythm games and misc stuff: http://youtube.com/user/patashu