-
Notifications
You must be signed in to change notification settings - Fork 509
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
HOTFIX Add option to not use annotations - android performance #820
Conversation
@m0nac0 rotating works fine for my device - even with texture mode turned off |
@m0nac0 one thing i noticed is that gestures don't work as expected after a screen rotation - however this is the case regardless of the textureMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with patching this since it's a potential intermediate fix
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
Outdated
Show resolved
Hide resolved
@tobrun a new release would be great as there have been lots of bug fixed pushed to master since the last release. However i would like to wait until after https://github.com/mapbox/mapbox-gl-js releases 2.6.2 as this fixes some major web issues |
…android performance) https: //github.com/flutter-mapbox-gl/maps/pull/820 Co-Authored-By: Felix Horvat <24698503+felix-ht@users.noreply.github.com>
…android performance) (#93) Cherry-pick upstream#820 (HOTFIX Add option to not use annotations - android performance) flutter-mapbox-gl/maps#820 Co-Authored-By: Felix Horvat <24698503+felix-ht@users.noreply.github.com>
Android performance has been much worse than ios - even on good hardware. #632 #733 #525
The root cause for this are the annotation managers. It is listening to all map gestures - checking for drag events - causing a massive slow down even if no annotations are added. Why this causes such a massive slowdown is unknown.
This PR gives the option to pass an empty annotation order
annotationOrder: const []
. If this is done the performance on android should be perfect. However if one does so, using the annotations is no longer possible.But with the support of geojson layers, on can still have custom dynamic maps, as long as drag is not needed.
I will fully fix this in the future by implementing the annotation managers in dart #779
I also disabled textureMode - this should give a big boost in performance in android in general as it moves the processing out of the ui thread.