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 issues with a lot of curves #68

Open
benb545 opened this issue May 18, 2023 · 5 comments
Open

Performance issues with a lot of curves #68

benb545 opened this issue May 18, 2023 · 5 comments

Comments

@benb545
Copy link

benb545 commented May 18, 2023

image

When having a lot of curves animating, by adding/removing them from the map every time, the javascript heap size always increases along with the amount of nodes in the DOM.

I am not sure why, but it's definitely not in how I handle the curves. If I remove all layers in the map, the heap size/amount of nodes does not decrease, it's something in the library and I am unsure why.

@mvrozanti
Copy link

Hi @benb545 did you fix this or find an alternative?

@benb545
Copy link
Author

benb545 commented Sep 8, 2024

@mvrozanti nope still having it. What are you experiencing?

@mvrozanti
Copy link

The same, pretty much. I tried using canvas as renderer to see if it made a difference performance-wise and it crashed, I probably did something wrong. I wouldn't mind some examples on how to set it up. I have to draw 30k curves every 2 seconds or so

@benb545
Copy link
Author

benb545 commented Sep 8, 2024

I see. I've tried canvas too with the same issue.
I think it's a memory leak with the curves plugin itself, didn't have issues with the map without curves. Might write your own curves plugin, or fix it or write your own map with your own rendering

@elfalem
Copy link
Owner

elfalem commented Sep 9, 2024

@benb545 have you tried adding and removing the curves without animating them? That would help us narrow down the possible cause of the possible memory leak.

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