[go: nahoru, domu]

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

Slow Composition and Unnecessary Recompositing of Google Maps with Custom Clusters #449

Open
binayshaw7777 opened this issue Oct 27, 2023 · 6 comments
Labels
triage me I really want to be triaged. type: question Request for information or clarification. Not an issue.

Comments

@binayshaw7777
Copy link

I've used Google Maps on XML (Views) with Cluster Manger with my customization. I decided to migrate to Compose Maps and Custom Clusters, I'm still using View-based Cluster Manager, but that doesn't affect my issue.

The issue is, that the map loads slowly on Composable Screen, one of the Bottom navigation screens.
Every navigation from another screen and coming back to the same map screen reloads the map, but the markers are loaded on time. I've already handled it. The map looks like a mesh grid some of the time, clustering markers take a couple of seconds and lag for second as well, and after that, it works smoothly.
Unlike Views, it's not caching the map and the markers well, is there any workaround?

@binayshaw7777 binayshaw7777 added triage me I really want to be triaged. type: question Request for information or clarification. Not an issue. labels Oct 27, 2023
@wangela
Copy link
Member
wangela commented Oct 27, 2023

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.

@binayshaw7777 Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@Anas304
Copy link
Anas304 commented Nov 2, 2023

I would also love to get insight about this as well. I request repo owner to give their feedback on this as soon as possible.

@yasintanriverdi
Copy link

Any update on this? I am also having the same problem

@Anas304
Copy link
Anas304 commented Jan 19, 2024 via email

@binayshaw7777
Copy link
Author

I don't know why it's happening but when I created a release build, the app got a lot smoother and less laggy. I'm not sure about recomposition count as Layout Inspector won't work on Release favour.

Maybe it's just in Debug mode, but still unlike XML based views which is still smoother in both favours, I was expecting Compose to be more or less the same.

@danprado
Copy link

I have the same issue. Tapping the tab in the bottom bar causes the map to recompose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants