HOTFIX Add option to not use annotations - android performance #819
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.