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-load while moving the mouse #4

Closed
acetous opened this issue Jun 16, 2011 · 3 comments
Closed

High CPU-load while moving the mouse #4

acetous opened this issue Jun 16, 2011 · 3 comments

Comments

@acetous
Copy link
Contributor

acetous commented Jun 16, 2011

While moving your mouse, plax can generate a high cpu-load. Having 3 or more moving elements at the same time can consume up to 40% CPU-load on my Q6600 using Chrome.
Maybe a maximum of rendered fps would limit the CPU-usage instead of reacting to every mousemove event.

@cameronmcefee
Copy link
Owner

What do you think would be a good strategy for that? Save coordinates on mousemove and only update element position ever n milliseconds?

@acetous
Copy link
Contributor Author

acetous commented Jun 16, 2011

See 1318dca for the changes I would consider. But it helps just a bit.

@acetous
Copy link
Contributor Author

acetous commented Jun 23, 2011

Pull request in #5.

@acetous acetous closed this as completed Jun 23, 2011
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