hugo-geo icon indicating copy to clipboard operation
hugo-geo copied to clipboard

Globe rotation causes Chrome, Firefox to overload CPU

Open vietlq opened this issue 7 years ago • 4 comments

Hi, thanks for providing such a great theme! The globe rotation option is quite fun. However it causes lots of CPU usage on my side. It happens on both Firefox & Chrome. I did brief profiling on Chrome for you to see:

http://imgur.com/CgPtQGG

vietlq avatar Apr 30 '17 13:04 vietlq

I am using Ubuntu on my XPS 13 and this problem was also reproduced in Chrome.

CicoZhang avatar Aug 20 '17 15:08 CicoZhang

+1

zytek avatar Aug 23 '17 22:08 zytek

This became very noticable for me as well after I upgraded to a 4K monitor. I touched on some of the possible solutions for this in #20, but I think it's time to disable the spinning by default, and have a flag in the config.toml to enable it if a user so desires.

alexurquhart avatar Aug 24 '17 12:08 alexurquhart

One idea that I just "implemented" on my own blog is to do the rotation only once, on page load. So the globe is static, but different depending on time of day, which is a nice touch. ;-) This, preferably, could also be steered by config variable.

zytek avatar Aug 24 '17 22:08 zytek