Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanishing route line is not animated #3214

Closed
LukasPaczos opened this issue Jun 22, 2020 · 10 comments
Closed

Vanishing route line is not animated #3214

LukasPaczos opened this issue Jun 22, 2020 · 10 comments
Assignees
Labels
UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.

Comments

@LukasPaczos
Copy link
Member

When testing 1.0.0-qa.2020.w25 I'm noticing that the vanishing route line's progress change is not animated:
ezgif com-optimize (42)

/cc @cafesilencio @abhishek1508 @Guardiola31337

@LukasPaczos LukasPaczos added the UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. label Jun 22, 2020
@cafesilencio
Copy link
Contributor

This is confusing. When I run the basic activity from master this is what I see:

20200622_125020

@cafesilencio
Copy link
Contributor

I can see on a longer route it looks a bit more choppy. The animation duration is 900ms. Each animation 'tick' will make 3 calls to update the gradient for the shield line, the route line and the traffic line. There are many 'ticks' in every 900ms animation window. @LukasPaczos do you have any insight into what happens on the map side? Could some of the calls be getting ignored because there are too many in short period of time?

@LukasPaczos
Copy link
Member Author

Could some of the calls be getting ignored because there are too many in short period of time?

The map render will most likely coalesce the calls if they are coming in faster than we are able to render, but it would not result in a jump. It would still be animated as smoothly as possible, but missing a couple of frames.

@cafesilencio cafesilencio self-assigned this Jun 23, 2020
@cafesilencio
Copy link
Contributor

I see the value animator updating all three route lines about 90 times per second. That's about every 11 ms.

@Guardiola31337
Copy link
Contributor

This is easily reproducible running the ReplayActivity from the examples test app 👀

replay_location_engine_activity_vanishing_route_line_not_animated

cc @cafesilencio @LukasPaczos

@cafesilencio
Copy link
Contributor

cafesilencio commented Jun 24, 2020 via email

@cafesilencio cafesilencio added the blocked Blocked by dependency or unclarity. label Jun 24, 2020
@LukasPaczos
Copy link
Member Author

Yes, looks like this also depends on mapbox/mapbox-gl-js#9694.

/cc @1ec5 @captainbarbosa

@Guardiola31337
Copy link
Contributor

Cross-posting from #3284 (review) so these comments don't get lost

Noting a couple interesting things that I found though:

  • We keep vanishing the route line when off-route is happening 👀

examples_test_app_vanishing_when_offroute

  • When putting the app in the background and bringing it back to the foreground the vanishing line is not updated - note how it catches up quickly 👀

examples_test_app_vanishing_catches_up_after_background_foreground

It seems that route progress updates are stopped when in the background.

Also noticed that in that example (FragmentNavigationActivity) the route line is not re-drawn after putting the app in the background and bringing it back to the foreground but that may be the specific setup from that example.

Feel free to merge here and cut separate tickets to investigate ☝️ further.

cc @LukasPaczos @cafesilencio

@cafesilencio
Copy link
Contributor

This should be resolved since getting the maps GL update.

@cafesilencio cafesilencio removed the blocked Blocked by dependency or unclarity. label Jul 9, 2020
@cafesilencio
Copy link
Contributor

Closing this issue as I believe it's resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

No branches or pull requests

3 participants