-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
I am animating the appearance and disappearance of ~2000 circles over 10 seconds using a data driven circle-layer. In version 1.2.1, this was running fine at ~35fps, with the circles updating continuously. In version 1.3.0 the circles no longer update continuously - they update in batches only about once every 2 seconds, giving a very sluggish/jerky experience. (NB: If you just look at the fps, it's now reporting ~50fps, so by that metric it's faster than before, but that's because it's no longer doing the hard work of actually updating the circles. As soon as you look at the map as opposed to the fps meter, you see how bad the performance is now.)
mapbox-gl-js version: 1.3.0
browser: Chrome 76
Steps to Trigger Behavior
- Add a data-driven circle layer.
- Animate the underlying data so that, say, 2000 circles appear randomly with a lifetime of 1 second each, over a 10 second interval.
- Watch how extremely sluggish it is compared to MapboxGL version 1.2.1.
Expected Behavior
Animation at least as smooth as version 1.2.1.
Actual Behavior
Animation dramatically less smooth than version 1.2.1.