mapbox-navigation-android
mapbox-navigation-android copied to clipboard
Optimize visibility calls on the maps SDK
While doing an customer assessment of the navigation SDK from a Maps SDK POV and taking a sample of an ongoing route. We are seeing layer property calls to the arrow head/shaft layers around visibility:
For example, in a 1 minute time frame, we will get 105 calls for one layer:
From which 99 calls set it to visible and 5 to none.
There are 2 optimizations that we could be doing:
- hide/showing of these layers is faster using opacity property instead of visibility
- only call into native code to set to visible when needed (manage the state more closely on the platform level).