materialscloud-org / tools-phonon-dispersion

Visualize interactively phonon dispersions and their eigenvectors
https://www.materialscloud.org/work/tools/interactivephonon
Other
11 stars 4 forks source link

framerate #1

Closed ltalirz closed 3 years ago

ltalirz commented 5 years ago

as mentioned by @borellim , I think it is worth investigating a reduction of the framerate from what I can only imagine is the maximum supported by the machine it's running on.

although it does not stutter on my macbook, it is drawing a lot of energy from the battery

Here the original comment from @borellim :

I have a couple of performance-related suggestions. I see that the visualizer is relatively CPU-intensive (on Firefox more than on Chromium - tested on Ubuntu 16.04), and I think maybe something can be done to help:

  • Can we cap the refresh rate of the visualizer to something like 60 FPS? I think there's no need for more, and this would not only save CPU cycles and battery, but also (I suspect) improve framerate consistency (reduce stuttering).
  • The "pause" button apparently doesn't stop the visualization code from running every tick, as I keep seeing the same high CPU consumption. Is it possible to make is actually stop rendering?