Hacker News new | past | comments | ask | show | jobs | submit login

This is really cool, but it is intensely consuming the 80% of my cpu resource (osx 10.7.3 intel dual core & 8gb ram).



Agreed – this is very cool. Probably using so much CPU because it actually updates a paragraph tag in the DOM with all of those characters. I bet a canvas tag with text fills would solve the speed problem. But then, the page would not be SEO friendly ;)


Canvas actually gave me disappointing results, believe it or not. The text rendering wasn't as fast or as pleasantly rendered compared to just using the DOM. It didn't seem worth it to me to try and optimize a canvas rendering routine, although I could have been overly naive with my initial tests.


Did you tried creating a imageData for every single character in the "ASCII gradient" and then using putImageData( imageData, x, y )?


First of all, I am a big fan of your work Mr. Doob.

Secondly, no! That's a good idea, I'll have to try it out.


Yeah i got ~2fps on WP7.5 omnia7


running about 25% on a 2.6GHz laptop i7 here. gnome/firefox


i7 is at 10% :P


My P4 3Ghz with HT is about 70% :P




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: