You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Related to #1797 possibly, but when the map need to redraw as part of an update to the annotations, the main thread is blocked for an unusual amount of time resulting in paused UI rendering for other controls.
Just confirming here @parrots — "update" to annotations means adding or removing in this context? So #1688 covers the flickering and this ticket covers the UI thread blocking.
@parrots I'm seeing pretty satisfactory performance of rapid adds & removes of annotations as of current pre-release. Check out this branch of a sample project I've been working on:
This adds a single static path, but then in response to a UI slider, removes all others and adds a new, small, red segment representing the next sub-segment in the path.
Seems pretty snappy to me (keep in mind this is a GIF). We get a little annotation flashing still (#1688) but even MapKit does this IIRC. This is thousands of annotation removes and adds.
Could you try ios-v-2.1.0-pre.2 per this method and see how it fares in your project?
It's running quite a bit better on-device. Running my app using this build of MapBox I'm getting 54-59 FPS on an iPhone 6 (swift whole-module optimization, etc -- all the good stuff). I notice a hickup here and there, but dramatically better. Apple Maps is 57-59 using the same setup.
I'm seeing pretty similar characteristics on an iPhone 5 (just a tad lower, closer to 53 - 57 FPS).
I'm noticing that in the simulator with this build I get more hiccups than I'd expect, or than I see on-device (this includes your sample project above, too). Feels closer, but a bit better than, what the old version of the SDK was like in terms of performance. Mapkit and Google maps don't exhibit the same slow-down in the sim. This is a vastly secondary problem, IMO, and shouldn't prevent this issue from being marked as resolved.
Activity
incanus commentedon Sep 3, 2015
Just confirming here @parrots — "update" to annotations means adding or removing in this context? So #1688 covers the flickering and this ticket covers the UI thread blocking.
parrots commentedon Sep 4, 2015
That's correct.
incanus commentedon Sep 4, 2015
@parrots I'm seeing pretty satisfactory performance of rapid adds & removes of annotations as of current pre-release. Check out this branch of a sample project I've been working on:
https://github.com/incanus/UISyncedMap/tree/rapid-annotation-add-remove
This adds a single static path, but then in response to a UI slider, removes all others and adds a new, small, red segment representing the next sub-segment in the path.
Seems pretty snappy to me (keep in mind this is a GIF). We get a little annotation flashing still (#1688) but even MapKit does this IIRC. This is thousands of annotation removes and adds.
Could you try
ios-v-2.1.0-pre.2per this method and see how it fares in your project?parrots commentedon Sep 5, 2015
It's running quite a bit better on-device. Running my app using this build of MapBox I'm getting 54-59 FPS on an iPhone 6 (swift whole-module optimization, etc -- all the good stuff). I notice a hickup here and there, but dramatically better. Apple Maps is 57-59 using the same setup.
I'm seeing pretty similar characteristics on an iPhone 5 (just a tad lower, closer to 53 - 57 FPS).
I'm noticing that in the simulator with this build I get more hiccups than I'd expect, or than I see on-device (this includes your sample project above, too). Feels closer, but a bit better than, what the old version of the SDK was like in terms of performance. Mapkit and Google maps don't exhibit the same slow-down in the sim. This is a vastly secondary problem, IMO, and shouldn't prevent this issue from being marked as resolved.
incanus commentedon Sep 5, 2015
Awesome, glad to hear it. I have uncovered some root improvements that could be made, but I'm not sure if they'll go into this release yet or not.
incanus commentedon Sep 9, 2015
This should ultimately get better in #1688, so I'm going to close here. Thanks for the testing and feedback @parrots.
Gerz-inc commentedon Jan 24, 2017
I have block main thread problem on annotations adding (AnnotationView) in version 3.4