mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

Jittery location puck animation

Open ericrwolfe opened this issue 8 years ago • 2 comments

The animation of the location puck along the route line can be jittery on certain devices, especially those with older hardware.

2017-12-15 09_54_59

@danesfeder is going to do some CPU profiling and dig in more, but we suspect this could be related to the runtime-styling based location puck not being performant with the Maps SDK.

@tobrun @zugaldia any thoughts on how best to debug this?

cc @willwhite

ericrwolfe avatar Dec 15 '17 18:12 ericrwolfe

I wouldn't spend too much time profiling this. We need to change the way navigation mode works in location layer. We need to take the same approach as iOS, when navigating we need to replace the runtime-style setup with a fixed ImageView at the bottom. Besides a better user experience this also improves battery consumption as we don't waste cpu cycles animating something in place. This issue has been ticketed in https://github.com/mapbox/mapbox-plugins-android/issues/179 and I would love to see this landing with the upcoming 0.3.0 release https://github.com/mapbox/mapbox-plugins-android/issues/149

cc @cammace

tobrun avatar Dec 16 '17 17:12 tobrun

See https://github.com/mapbox/mapbox-plugins-android/issues/215

devotaaabel avatar Feb 19 '18 16:02 devotaaabel