Replies: 1 comment 3 replies
-
During the investigation, found that camera animation causes the same CPU usage (including test animation of polyline and the symbol of user puck on the symbol layer). Also, maplibreNavIosSdk has less CPU usage because of dropping framerate to 5 fps. Dropping to 5 fps on test project (camera animation + polyline animation + symbol animation) decreases CPU usage. But I have question, why UserPuck is UIView, not the symbol? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that in maplibre on Android for user puck is used layer (and it is updated by Animator), but for iOS user puck is used as uiview (and in maplibreNavIosSdk). When I'm trying to animate the layer (MLNSymbolStyleLayer or MLNLineStyleLayer or both) by using CADisplayLink, CPU usage is 40%, and high energy impact. Same is 5.13 Maplibre and in pre-6.
I found on the Internet, that Mapbox has (or had) the same type of issue because changing one layer cause rendering all of the layers. Can it be improved? Because animating passed route or polyline is used in many apps today. Also using the user puck as uiview has bugs like "moving" from its place during map pan/rotate.
Beta Was this translation helpful? Give feedback.
All reactions