Łukasz Paczos

Results 77 comments of Łukasz Paczos

Adding a more detailed profile screenshot: ![Screenshot from 2021-05-24 13-15-47](https://user-images.githubusercontent.com/16925074/119340788-480da400-bc93-11eb-82db-d8fb384b7e7e.png)

Property values are one thing (that I didn't measure) and it does make sense to always ask GL-Native for that since it's the source of truth. The concern here is...

We could also use `styleLayerExists`/`styleSourceExists` before returning the cached reference since those methods seem to be much faster.

@pengdev happy to take it for a spin whenever you think it's ready :+1:

My benchmarks integrating the snapshot into the Nav SDK are even more promising given the frequency with which we call all the methods. _Before_ ![Screenshot from 2021-06-25 12-33-49](https://user-images.githubusercontent.com/16925074/123412647-1e0d1180-d5b2-11eb-8b7d-589c37f573bb.png) ![Screenshot from...

And then the generated expression is set here: https://github.com/mapbox/mapbox-navigation-android/blob/6d041e3f11ef0ae200aa97a57ae02f26b49ff658/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineView.kt#L328-L334

@pengdev you can try updating the gradient every time the `OnIndicatorPositionChangedListener` fires. We do that for 3 line layers in the Nav SDK.

That makes sense to me - we can inject an additional generic `"Proceed to route start"` instructions when `INITIALIZED` state is detected with usage of `MapboxManeuverApi#getManeuvers(RouteProgress)`. We should also add...