Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Slow animation for markers #4401

Closed
leye0 opened this issue Mar 21, 2016 · 1 comment
Closed

Slow animation for markers #4401

leye0 opened this issue Mar 21, 2016 · 1 comment

Comments

@leye0
Copy link

leye0 commented Mar 21, 2016

I've spent the last couple of days analyzing the java and native code to find a way to improve the performance when an Annotation position changes (I'm in a context where around 10 to 15 annotations are moving, think about an usage similar to Uber), without any success. I previously had GoogleMap, which was incredibly fast with 20+ annotations (probably more than 30 fps), and currently, having more than 1 or 2 animated pins in our respectably big application results in pins flickering a lot.

I've tried different approaches, like relying on timers, ObjectAnimator, ValueAnimator, checked to just linearly modify the value in a loop in another thread, and I always got the same bad performances when animating 10-15 pins.

Do you plan to add native animation functionalities or some optimizations?

Thanks,
Leon

@tobrun
Copy link
Member

tobrun commented Mar 21, 2016

@leye0 Thank you for reaching out and reporting your problem. We aware that current setup isn't performant, note that we just recently allowed changing the position of the marker dynamically in b395302 and need to iterate on the implementation details to make it work in the way you are currently requesting. I created #4402 as a feature request that should make this solution workable.

Another approach would be to implement a View Marker API as mentioned in #3276, at this point it's unsure if this solution would scale as requested above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants