3 ms·
What's your browser & OS? RAM isn't the bottleneck here, it'll be the CPU via a poor JavaScript engine. Of course, it's open source, any optimisation suggestio
by jaffathecake 14y ago
What's your browser & OS? RAM isn't the bottleneck here, it'll be the CPU via a poor JavaScript engine.
Of course, it's open source, any optimisation suggestions will be gratefully received. The calculation of sprite boundaries happens in two steps, first a contraction https://github.com/jakearchibald/sprite-cow/blob/master/www/assets/8/script/SpriteCanvas.js#L57 https://github.com/jakearchibald/sprite-cow/blob/master/www/... then an expansion https://github.com/jakearchibald/sprite-cow/blob/master/www/assets/8/script/SpriteCanvas.js#L88 https://github.com/jakearchibald/sprite-cow/blob/master/www/...
- Produce 14y agoFirefox 14.0.1, Arch Linux (it's a rolling release distro, fully up to date). Solving these kinds of problems and optimizing things makes me happy. I'll take a look at this when I get home from work and see if I can speed it up.
- wamatt 14y agoAlso having big performance issues. Macbook Pro (2012), 16GB Ram, Chrome v20