This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Map updates are slow when using a Feature Collection with many features iOS 12 beta #12385
Labels
Core
The cross-platform C++ core, aka mbgl
iOS
Mapbox Maps SDK for iOS
performance
Speed, stability, CPU usage, memory usage, or power usage
We are periodically updating a source's shape with a GeoJSON Feature Collection containing 750+ features. When running on iOS 11 there is a slight stutter while the map updates but on iOS 12 it freezes the main thread for up to a couple seconds and sometimes longer depending on how many of those features are visible at the time of the update.
Most of the time is spent in
GLKView _display/glDrawElements
Steps to reproduce
Expected behavior
The map pans/zooms smoothly while updating a source's shape.
Actual behavior
The app freezes and becomes unusable for up to a couple seconds depending on how many features are in the collection.
Configuration
Mapbox SDK versions: 4.0.3 and built from master
iOS/macOS versions: 10.13.4
Device/simulator models: iOS 12, iPhone 7 Plus
Xcode version: xcode 10 beta
The text was updated successfully, but these errors were encountered: