Hi, I’m using a camera with an input to pan the view with the mouse similar to Google Maps.
The movement is working fine, but for lower spec devices, there is a noticeable delay between moving the mouse and the camera moving in the scene, making the navigation not very responsive.
Playground with the camera: https://playground.babylonjs.com/#LU1XUJ#2
Bellow is a small video showing the delay (it’s in slow motion). You can see that the mouse cursor moves to a new position and only after a little while that the camera moves (and the mouse event is logged in the console).
To compare, navigating on Google Maps site, with satellite view and the 3d view enabled, on the same device, the delay is almost not noticeable, and it’s very responsible.
Recording in slow motion, Google Maps also doesn’t respond immediately to the mouse movement, but it’s seems to have a lower delay. On the video when the cursor reaches about 70% of the destination, you can see that the map already started to move, and a few frames next it’s already positioned.
So, I was thinking if there is something to make the mouse event to be triggered with some higher priority, or any other thoughts on how to make the camera more responsible to the mouse movement?