mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

FPS Dropping while scrolling, zooming or idling

Open ghfghfg23 opened this issue 1 year ago • 2 comments

Environment

  • Xcode version: 15.2.0
  • iOS version: 17.3.1
  • Devices affected: iPhone 12
  • Maps SDK Version: 11.2.0

I've encountered an issue where the map rendering behaves unstably. Upon launching the application, during scrolling, the frame rate can drop for 3-5 seconds, then recover to a stable 60 fps. Then, if zooming or scrolling, it may drop again to 20-30 frames (or it may not). This affects the entire application; some UIKit animations will also drop frames along with the map (or work at 60 frames if there are no drops at the moment).

Here's the result of tracing: mapbox_fps_dropping as you can see, the draw method sometimes takes 16ms and sometimes 33ms during scrolling. I suspect the problem lies within it, but I can't inspect it since its implementation is not open source.

That's occurring with predefined mapbox style, without drawing any annotations or routes (just map with tiles and glyphs). Additionally, I'd like to note that this issue has been occurring for quite some time, starting from MapBox version 10.5.x at least.

ghfghfg23 avatar Mar 05 '24 13:03 ghfghfg23

Maybe someone already knows how to solve this problem? Did I somehow configure the mapbox incorrectly?

ghfghfg23 avatar Feb 20 '25 11:02 ghfghfg23

I'm having the same issue, for me the frame rate drops after idling for a little bit, when I leave the app and come back (while it's still running in the background) it resolves the issue but then it comes back. This definitely feels like a config issue or something deeper that we cannot see. Hope this gets bumped...

Brandonsmith738 avatar Mar 23 '25 22:03 Brandonsmith738