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

Performance issue with adding geodata at high rates #185

Open
skazemi opened this issue Jun 9, 2020 · 3 comments
Open

Performance issue with adding geodata at high rates #185

skazemi opened this issue Jun 9, 2020 · 3 comments

Comments

@skazemi
Copy link
Contributor

skazemi commented Jun 9, 2020

Hi,
I encounter performance issues with the map when adding/updating geodata at a high rate to the map using the following methods:
1-Adding geodata as a freelayer: In this case when the number of layers grows, map becomes very slow until out of memory occurs (probably caused by layers workers)
2-Rendering geodata with dynamic rendering (onCustomRender) without adding freelayer: in this case, onCustomRender slows down with an increasing number of items to be rendered.
I wonder if there is a better way to do this?
Thanks

@davidmtech
Copy link
Member

davidmtech commented Jun 16, 2020

Unfortunately there are no other methods provided by API. You can try to extend existing rendering methods used by "CustomRender". For example make them render more points in one draw call.

@skazemi
Copy link
Contributor Author

skazemi commented Jul 8, 2020

@davidmtech Thanks for your guidance.
I tried to simplify paths to speedup onCustomRender.
Is there a way to change free layer geodata and style properties without removing/adding the whole layer (partial updates)?

@jrjdavidson
Copy link

I am wondering the same thing- is there a way to dynamically change the style object, once the freelayer has been created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants