Keyboard camera rotation. Initial jerk

Hi, everyone. I have a following problem. I try to rotate the camera with cameraRotation via keyboard. But when I hold the button down rotation starts with an initial jerk and only after half a second starts to rotate smoothly. What I’m doing wrong? Here is basic PG link Babylon.js Playground

Do not think you are doing anything wrong, per se. That is just kind of the way it is for typing. Hold down a key, and you get an immediate character, then a pause before it goes into rapid repeat mode. This is to avoid accidental multiple characters, which would get people out with pitch forks.

This is done at a very low level.

You can use the keydown/keyup events to get rid of the auto-repeat delay:

https://www.babylonjs-playground.com/#0ZVLJQ#1

1 Like

I would say this inspired my solution. And it totally works in playground.