bemky / mapbox-gl-draw-freehand-mode

Mode for Mapbox GL Draw that simplifies UI to only free drawing
https://github.com/mapbox/mapbox-gl-draw
ISC License
70 stars 43 forks source link

Performance optimizations #5

Closed tomasdev closed 3 years ago

tomasdev commented 5 years ago

Moving the created area around re-renders the border every frame. This results in a very laggy experience. It shouldn't re-calculate the border dashes if zoom hasn't changed and the user is just moving it (same shape)

You can really see this behavior when dragging a created polygon vertically

bemky commented 3 years ago

Can we get a recheck on this? I pushed some updates today, that may have helped. Please reopen if you still notice issue. I tried myself and was unable to recreate.