Mapbox-gl-native: Updating markers in real time causes major UI lag

Created on 29 Mar 2016  路  2Comments  路  Source: mapbox/mapbox-gl-native

When updating the position of a marker using marker.SetPosition(location) is done at a frequency < 1 second I noticed huge amounts of UI lag as well as the map panning slow. Using the Android Studios method tracer it shows that Marker.setPosition MapboxMap.updateMarker and Mapview.updateMarker take a significant amount of time.

Android

Most helpful comment

@shantanu-vyas thank you for reaching out and reporting your problem. Dynamically updating a Marker position/icon is something we recently added and are still finding ways to improve performance for making animation happen. At this point I'm confident to say an user can update a position of a marker but not in way it resembles an fluent animation.

All 2 comments

@shantanu-vyas thank you for reaching out and reporting your problem. Dynamically updating a Marker position/icon is something we recently added and are still finding ways to improve performance for making animation happen. At this point I'm confident to say an user can update a position of a marker but not in way it resembles an fluent animation.

This was optimized in #5385.

Was this page helpful?
0 / 5 - 0 ratings