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

Eats a lot of resources, especially when multiple instances #24

Open
Furerito opened this issue Aug 28, 2018 · 1 comment
Open

Eats a lot of resources, especially when multiple instances #24

Furerito opened this issue Aug 28, 2018 · 1 comment

Comments

@Furerito
Copy link

I found out that it eats my CPU if there are about 10 instances or more.

Made a workaround like this:

Changed Line 87 to:
Runner.prototype.updating = 20;

Changed Line 132 to:
if (this.updating >= 20) {

Changed Line 133 to:
this.updating = 0;

Added on Line 154:
this.updating++;

This saves a lot of CPU Power.

Thank you for this wonderful jQuery Plugin!

@bholdman
Copy link

Just ran across this searching for a way to optimize multiple instances. I tested it locally and it does seem to decrease CPU usage significantly. I typically have a page with up to 40-50 timers running.

Would you mind explaining what this is doing?

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