Skip to content

Animations of circle layer extremely sluggish in version 1.30 #8701

@thunderkid

Description

@thunderkid

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

  1. Add a data-driven circle layer.
  2. Animate the underlying data so that, say, 2000 circles appear randomly with a lifetime of 1 second each, over a 10 second interval.
  3. 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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions