Skip to content
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 #819

Closed

Conversation

felix-ht
Copy link
Collaborator

@felix-ht felix-ht commented Dec 16, 2021

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.

@felix-ht felix-ht added bug Something isn't working android labels Dec 16, 2021
@felix-ht felix-ht requested review from tobrun and m0nac0 December 16, 2021 12:05
@felix-ht felix-ht force-pushed the hotfix-android-performance branch from 5035f1f to f50097a Compare December 16, 2021 12:21
@felix-ht
Copy link
Collaborator Author

closed and changed to branch on this repo

@felix-ht felix-ht closed this Dec 16, 2021
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 16, 2021 12:34 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 16, 2021 12:34 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant