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

use less CPU for animations #784

Open
mhellstr opened this issue May 3, 2024 · 3 comments
Open

use less CPU for animations #784

mhellstr opened this issue May 3, 2024 · 3 comments

Comments

@mhellstr
Copy link

mhellstr commented May 3, 2024

This page https://3dmol.org/doc/index.html uses 400% CPU on my machine which seems a bit excessive. The same happens for any animation, which means I'm not comfortable putting them on my website.

It would be nice if there was a way to use less CPU for animations.

@dkoes
Copy link
Contributor

dkoes commented May 3, 2024

Are you sure the issue is with that page? It has close to zero cpu utilization on my laptop. What browser and operating system are you using?

@mhellstr
Copy link
Author

mhellstr commented May 7, 2024

On Linux using chrome or brave the CPU utilization is 400% (on an 8-core machine), with Firefox it is 100%.

On Windows the CPU utilization is much smaller.

It really is that page (or any of my own custom 3dmol animations), since switching away from that tab drops the CPU usage to 0.

@dkoes
Copy link
Contributor

dkoes commented May 7, 2024

The render update is consistently taking a millisecond or less while the interval is 50ms, so I am at a loss as to why there is high cpu overhead. Very open to any suggestions.

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

No branches or pull requests

2 participants