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

Optimize visibility calls on the maps SDK

Open tobrun opened this issue 3 years ago • 0 comments

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).

tobrun avatar May 13 '22 06:05 tobrun