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

Adding a single MLNAnnotationView to an MLNMapView results in laggy map rendering #2117

Closed
cgalvan opened this issue Feb 15, 2024 · 5 comments
Labels
bug Something isn't working iOS

Comments

@cgalvan
Copy link
Collaborator

cgalvan commented Feb 15, 2024

Describe the bug
Adding a single MLNAnnotationView to an MLNMapView results in laggy map rendering.

To Reproduce
Steps to reproduce the behavior:

  1. Run the attached sample app on iOS 15.
  2. Try swiping on the map to pan.
  3. Note the slow response to touch. Sometimes it will freeze for more than a second.

Expected behavior
The map should not freeze or be laggy with a single UIView annotation.

Screenshots
Sample application and video attached.

Platform information (please complete the following information):
Version: ios-v6.0.0
OS: iOS 15
Platform: iOS 15 running on iPhone 12

Additional context
Upgraded the iPhone 12 to iOS 17, and the issue is not reproducible.

@cgalvan cgalvan added the bug Something isn't working label Feb 15, 2024
@cgalvan
Copy link
Collaborator Author

cgalvan commented Feb 15, 2024

HelloMapLibre.zip

IMG_3131.MOV

@louwers louwers added the iOS label Feb 15, 2024
@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Feb 15, 2024

Wow, that's weird. But it almost looks like a gesture delay to me.

@funclosure
Copy link

Encounter this issue as well,
seems like it's related to https://github.com/mapbox/mapbox-gl-native-ios/issues/350

adding
mapView.preferredFramesPerSecond = .lowPower helps
mapbox/mapbox-gl-native-ios#350 (comment)

stefankarschti added a commit that referenced this issue Mar 7, 2024
@louwers louwers closed this as completed Mar 7, 2024
@louwers
Copy link
Collaborator

louwers commented Mar 7, 2024

@stefankarschti Do we have an issue for the potential follow-up?

What new construct would be needed again? Sorry, I forgot the name.

@stefankarschti
Copy link
Collaborator

@louwers #2181 marks the remaining work to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS
Projects
None yet
Development

No branches or pull requests

5 participants