FPS Dropping while scrolling, zooming or idling
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:
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.
Maybe someone already knows how to solve this problem? Did I somehow configure the mapbox incorrectly?
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...