I programmed my game initially for ios at 30fps.
However now that I’m building the game for Desktop, I’m noticing that when it’s running at higher frame rates like 60fps, there is a super noticeable lag in the keyboard response. The higher the frame rate, the worse the lag. If I plug in the joystick, this lag instantly disappears, so I know it’s not my code.
If I use:
Input.GetAxis(“Keyboard Vertical”)
the lag is there. Even when fiddling around with the sensitivity option. Nothing makes a difference.
however, if I use:
Input.GetKey(KeyCode.UpArrow)
the lag seems to disappear.
I know what you’re saying is…then use the second one, but isn’t it bad practice not to let people map their own controls? I can set it up for arrows and wasd, but isn’t that ultimately kind of bad? What do you think and is there something missing in the input?