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

Updating multiple markers every second causes lag based on number of markers. #57

Open
foxy17 opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@foxy17
Copy link

foxy17 commented Jun 17, 2024

Describe the bug
So I have a usecase where the user can see a bunch of other user's live locations which keeps on updating every second. The issue is that when I have more than (n) users like 100, the maps page starts lagging with updates. I was able to recreate this in a barebones flutter app as well using the package. Looking at the debugger performance logs I can see that update#map is getting called in parallel multiple times.
To Reproduce
Steps to reproduce the behavior:
Make a recursive update map function that updates the annotations every seconds with different lattitue and longitude.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
This screenshot is an initial screenshot when first few markers are updated.
Screenshot_2024-06-16_at_4 05 31_PM
This is after few more updates. There were almost 50+ calls to update#map.
Screenshot_2024-06-16_at_4 04 01_PM

Smartphone (please complete the following information):

  • Device: Iphone 15
  • Version 17

flutter doctor
Please add the flutter doctor output.

@foxy17 foxy17 added the bug Something isn't working label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants