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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robcolburn.nu’s picture

I 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/

Snugug’s picture

Would 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!

iamcarrico’s picture

Assigned: Unassigned » Snugug

@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 ^_^.

Snugug’s picture

Status: Active » Closed (fixed)

Removed 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.