Skip to content

[v3.0.0-beta.3] flyTo Animation Drops frames and stutters #12919

Open
@garydevenay

Description

@garydevenay

When triggering the flyTo animation, the map drops frames and the console fills with 'requestAnimationFrame' handler took Xms warnings. This is happening on the basemap but also legacy styles.

I've tried simplifying the animation and removing things like pitch, explicitly enabling WebGL2, etc. Still, the issue persists to the same level.

mapbox-gl-js version: 3.0.0-beta.3

browser: Chrome, Firefox, Safari

Steps to Trigger Behavior

  1. Load the map
  2. Click a button to zoom from level 5 to 16
  3. Check the console to see requestAnimationFrame warnings

Link to Demonstration

https://jsfiddle.net/garydevenay/1dgu5jh2/23/

Expected Behavior

Smooth zoom transition without dropped frames

Actual Behavior

Stuttery animation and lots of dropped frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performance ⚡Speed, stability, CPU usage, memory usage, or power usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions