13

So I'm making a music game, and I've been struggling to fend off this large sound latency issue. There is like a ~80ms of latency, which is a total deal-breaker for music games.
So I've been polling everything using a profiler, but nothing came up... Until just now, I realized:
IS IT MY F*<KING KEYBOARD THAT IS LAGGING?

I pulled my iPhone out, opened the Notes app, and recorded the screen as I smacked the keyboard.

Whaddaya know, exactly after 5 frames (in 60fps) of the sound of me punching the keyboard, the letter shows up.

Now I need to take *this* lag into account :facepalm:

Comments
  • 7
    Input lag is a jerkface.

    A lot of rhythm games have a slider for input lag that shifts the allowed beat window. Seems to work well.
  • 5
    That's always been my problem with music games. You can't do stuff in sync with the music because then you're not in sync with what's on the screen.

    Well, TBH is rather just play or listen to music anyway.
  • 0
Add Comment