Universal Camera occasional rotation jitters

Hi there,
I’m trying to find the cause of a rotation jitter on the Universal Camera.

PG here: https://playground.babylonjs.com/#DWPQ9R#430

Please, scroll to the bottom to see where the camera is set up.
Disabling pointer lock seems to make the jitter go away.
Also seems like setting camera.inertia to zero may ‘help’ to make the jitter happen.
and that the jitter happens when rotating across certain angles.
Tested on chrome. To reproduce, move the camera around in the playground for a little while.
Sometimes it takes longer than others.

Does anyone know what causes this?
Or just confirm that they see it on their machine?
Thanks for any advice!

Adding @PolygonalSun

I’m not sure what specifically is going on with that but I suspect that it might be related to how the InputManager is handling deltas for horizontal/vertical mouse movements. I’ll try to take a look at it this week to see if I can determine the root cause.

1 Like

Thanks! Don’t know whether it helps but the jitter is very easy to see in this game:

https://morterra.com/

At least it looks like the same behavior.

Is it only jittering when not reaching 60 FPS or when the frame rate is not stable ? Asking as I am not able to repro.

FWIW, I can’t repro either.

1 Like