NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.59k stars 286 forks source link

GlobeControls: Understand why controls seem less responsive / slower depending on framerate #656

Open gkjohnson opened 2 months ago

gkjohnson commented 2 months ago

Even though pointer events are being used.

gkjohnson commented 2 months ago

This may be specifically when the framerate is lower due to low battery meaning even events are fired less frequently and therefore (should) have larger values since more motion has happened between events. I've noticed this only with zoom and it's likely due to this zoom speed normalization function:

https://github.com/NASA-AMMOS/3DTilesRendererJS/blob/b3206619ea2a9b20f8aa40c6db8842e69ef89349/src/three/controls/EnvironmentControls.js#L432

which attempts to normalize zoom speeds by using a logarithmic scale. That means that larger movements will be scaled down causing a difference in apparent speed.

Not exactly sure what to do here.