Replies: 1 comment
-
I'm not sure there is unfortunately, maybe a custom layer can help here, not sure though... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a proper way to control or optimize the rastering of layers when they are refreshed at a high rate to avoid display delays and lags?
I am trying to implement a map where some symbol layers are refreshed 20~60Hz with image position and rotation changes. The map user interaction starts getting sluggish, and the symbol updates and animations start lagging behind. Position is updated by calling setData() on the layer data source (a geojson point), and rotation is achieved updating the 'icon-rotate' property of the layer calling setLayoutProperty(). I have tried optimizing the updates hooking to map events such as 'rotatestart'/'rotateend', but still looks like the maplibre engine is spending time doing rotation interpolation and other smoothing functionality for the symbols.
Can I rely on maplibre's rendering engine for such high refresh rates, or it is better to bypass maplibre and implement that functionality in the WebGL context directly?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions