Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPS Dropping while scrolling, zooming or idling #2138

Open
ghfghfg23 opened this issue Mar 5, 2024 · 1 comment
Open

FPS Dropping while scrolling, zooming or idling #2138

ghfghfg23 opened this issue Mar 5, 2024 · 1 comment
Labels
bug 🪲 Something is broken!

Comments

@ghfghfg23
Copy link

ghfghfg23 commented Mar 5, 2024

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 ghfghfg23 added the bug 🪲 Something is broken! label Mar 5, 2024
@ghfghfg23 ghfghfg23 changed the title FPS Dropping while scrolling, zooming or idleing FPS Dropping while scrolling, zooming or idling Mar 5, 2024
@ghfghfg23
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

1 participant