hugo-geo
hugo-geo copied to clipboard
Globe rotation causes Chrome, Firefox to overload CPU
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:
I am using Ubuntu on my XPS 13 and this problem was also reproduced in Chrome.
+1
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.
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.