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

High CPU usage of chrome GPU #130

Open
2 of 6 tasks
cojalvo opened this issue Apr 11, 2020 · 1 comment
Open
2 of 6 tasks

High CPU usage of chrome GPU #130

cojalvo opened this issue Apr 11, 2020 · 1 comment

Comments

@cojalvo
Copy link

cojalvo commented Apr 11, 2020

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Mac OS
  • Browser: Chrome
  • Library Version:

I'm going to open a PR:

  • yes
  • no

Description:
Hi, leaflet-ant-path cause a high CPU usage of Chrome any idea why?

@cojalvo cojalvo changed the title High GPU usage High CPU usage of chrome GPU Apr 11, 2020
@Wotuu
Copy link

Wotuu commented Oct 8, 2020

I want to bump this issue. This issue is a bit lackluster in details, but I too notice a lot of CPU usage while using this plugin. So much that I'm considering replacing it or getting rid of it entirely.

I'm using the plugin on https://keystone.guru/. Demo -> https://keystone.guru/bbzlbOX. CPU usage is 40 on my machine (according to Chrome Task Manager). I tinkered with it and most CPU usage is caused by the animated lines. If you for example check https://keystone.guru/yry94O3 you can see that without the animated lines it takes up a whole lot less CPU.

I can also notice it from your example site where CPU usage spikes up the moment you unpause the animated line https://rubenspgcavalcante.github.io/leaflet-ant-path/.

If you have any idea on how to further improve performance I'd be very happy to see them implemented! Thank you.

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

2 participants