-
Notifications
You must be signed in to change notification settings - Fork 122
On iOS 14 MGLAnnotationView slows down map significantly #350
Comments
In my experience, even building with Xcode 11 (iOS SDK 13) and installing the IPA on a device running iOS 14 causes the same issue. This functionality is also implemented in our app using Google Maps, which produces different results. It doesn't lag and freeze, but rendering annotations sort of falls behind the moves of the map and eventually catches up with rendering when user stops moving the map around. I'm going to cancel any outstanding requests to our backend whenever user quickly moves the app and see if it improves performance. (Yes I know we should've done it in the first place, but we never had such problem on iOS 13 and earlier) I'll post updates in this thread whenever I find more. |
Same here, I have a bad lag on iOS 14 devices when showing Annotation. We haven't any problem on iOS 13 or earlier. |
@flashspys can you provide your sample app (looks like you're using our mapbox-maps-swiftui-demo)? We have not been able to reproduce this yet, using the SwiftUI sample application, with many UIView annotations, and using your |
@julianrex Please have a look at this commit: flashspys/mapbox-maps-swiftui-demo@9c1963e This makes the map on my iPad Pro (10.5 inch) on iOS 14b5 unusable laggy. At the moment it got a bit better, but the panning and espacially the zooming is still horrible. |
@flashspys thanks - I just updated the device from beta 1 to beta 6, and now see the same issue. |
@flashspys can you confirm you first saw this with iOS 14 beta 2? |
This appears to be a continuation of an iOS stuttering issue first seen in iOS 12.2, related to synchronizing @flashspys @behdaad @mohammadz74 (or anyone else suffering), while we continue to investigate solutions, can you please try setting:
and let us know if you continue to see any stuttering? For reference:
|
The issue continues with beta 6. Setting |
Same issue here with iOS 14 Beta 6 and iPad Pro 2020. It seems a little better on my iPhone XS (same OS version), probably because of the lower framerate. Would be great to get this fixed before the iOS 14 release. |
Same issue here. IOS 14 Beta 6 (iphone XS Max) |
We have a PR (#411) that will land in the next release. We would appreciate it if you could test the release as soon as possible and let us know of any issues you see compared with |
Thanks @julianrex, will definitely test it as soon as it's available. |
6.2.0-beta.1 has been released. You'll need to use Xcode 12 beta 6 if you intend to submit an app to TestFlight. |
Great 👍 It seems like this issue has been fixed (for us at least, iPhone XS MAX) |
@julianrex Can this fix be done on the previous release |
The addition of even one custom MGLAnnotationView make the map unusable. The attached image shows the profiler where the mapbox rendering call is taking the most of the cpu. There is only a basic map showing one custom annotation. On iOS 13 this runs butter smooth. The Map is displayed via a UIViewRepresentable in SwiftUI.
Steps to reproduce
Expected behavior
Map runs smooth
Actual behavior
Map is unusable slow
Configuration
The used custom MGLAnnotationView:
Mapbox SDK version: 6.0.0
iOS versions: iPad OS 14 / iOS 13.6
Device/simulator models: iPad Pro 1st Gen (iOS 14 device) / iPhone Xs (iOS 13 device)
Xcode version: 12.0 b2
The text was updated successfully, but these errors were encountered: