Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I'm currently getting to know the Aurora theme. The aurora borealis effect on the documentation page at github.io is really CPU intensive! Chrome gets unresponsive and Firefox totally freezes and warns about unresponsive script. Both use CPU ~100%.
This makes using of the documentation a pain. Could somebody please fix this?
Best regards,
Juho Viitasalo
Comment | File | Size | Author |
---|---|---|---|
#1 | Screen Shot 2013-06-24 at 3.12.00 PM.png | 256.23 KB | robcolburn.nu |
Comments
Comment #1
robcolburn.nu CreditAttribution: robcolburn.nu commentedI would love to work on/provide a patch. Who can I contact, about wor
Protip: If you know your way around the JS Console, the following command will kill the animation
animate=function(){}
The problem is that animation creating several short-lived objects on every pass through the animate function. So, the objects are cleaned on every free moment between frames. This can be solved by allocating all the memory in advance, and re-using the same memory on animation frames.
The Chrome Team/Platform Evangelists have been talking about these kinds of issues a lot lately.
http://www.html5rocks.com/en/tutorials/speed/static-mem-pools/
http://www.html5rocks.com/en/tutorials/memory/effectivemanagement/
Comment #2
Snugug CreditAttribution: Snugug commentedWould love some help optimizing the animation. The doc source is available on GitHub. Feel free to issue a pull request if you can optimize it at all!
Comment #3
iamcarrico CreditAttribution: iamcarrico commented@robcolburn.nu The docs are completely up @snugug's alley. However, they are hosted in an open repo on Github, and can be accessed here. https://github.com/Snugug/Aurora/tree/docs
Feel free to update / change it. I would love to harass @snugug more about fixing this as well ^_^.
Comment #4
Snugug CreditAttribution: Snugug commentedRemoved the Canvas animation in favor of a static image, thus fixing this issue.
If you'd like to try and make the canvas animation performant, you're free to try. Would love to have it back if it worked in a performant manner.