Live data from Hacker News

Two.js

jonobr1.github.io

21–30 of 64 posts

Re: Two.js

#22

This landing page and documentation is just beautiful. Simple hashtag nav, soft colors, great header, and good examples. Only suggestion would be to have a way to link to individual methods in the docs w/ hashes. I really commend the effort here.

duly noted, thanks!

Re: Two.js

#23
post #11

I'd be curious to see the performance differences between this drawing on 2d canvas, webgl and similar code in plain JS. Mostly curious at that webgl benchmark

I'd love to see some benchmarks if you make any.

From my gut, I'd say that the WebGL renderer is fast at rendering lots of shapes with only translation / rotation transformations applied to them. SVG is highly optimized on Webkit and handles shape morphing really well and so the SVG renderer handles that really well. Canvas sits somewhere in between the two.

This is a test of a lot of shapes morphing. It visualizes SoundCloud songs: http://jonobr1.github.io/Neuronal-Synchrony/?url=https://sou...

It may take awhile to load...

Re: Two.js

#24
post #17
post #15

Earlier quoted context omitted.

That's not a big surprise. jQuery's events use native browser events behind the scenes. Which is nice for dom-oriented plugins; you get bubbling for free and all the native event listeners just work. It's got a pretty fair amount of overhead though. Backbone's events are just a pure JS event emitter implementation. I'm curious, though, why they added an external dependency instead of just inlining a solution. There's…

I was not aware of these other event systems in JavaScript. Thanks for pointing these out!

Just to add to the list: https://github.com/necolas/emitter.js

:)

Re: Two.js

#25
The script looks looks great, but mostly I just want to say it rocks to see a library with this much work put into quality documentation already.

Gives me a heck of a lot more trust for the script and reason to try it out.

Re: Two.js

#27
I love the idea and it's a beautiful site...which quickly brings my browser (chrome) to a grinding halt.

Hopefully I'm just an edge case while the project is young?

Re: Two.js

#29
post #27

I love the idea and it's a beautiful site...which quickly brings my browser (chrome) to a grinding halt. Hopefully I'm just an edge case while the project is young?

What OS are you running on?

Re: Two.js

#30
post #11

I'd be curious to see the performance differences between this drawing on 2d canvas, webgl and similar code in plain JS. Mostly curious at that webgl benchmark

I'd also be curious to see how it performs with mass amounts of sprites, something like pixi's bunny demo:

http://www.goodboydigital.com/pixijs/bunnymark/

Post reply on HN