gnykka
|
5 years ago
|
on: Show HN: I made a Chrome extension to add flying snowflakes to all the webpages
Thanks! Yes, you are right. Whitelist or blacklist option is a good idea
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
I simply loved the examples on paper.js webpage and just wanted to try it
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
Actually I made a switch at first as I started with Two.js and there are 3 types (svg, canvas and webgl). But then there was Paper.js which only had simple canvas so I removed the switch at all and used the fastest renderers for every engine (webgl or canvas).
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
I wasn't thinking about this as a menu, this are just links to switch between renderers.
Count saving is a good point, I'll add this feature
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
I made a change to loops to use for() cycle, thanks
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
Good point. Usually I like to use map or reduce for arrays but here simple for is easier.
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
My point was more to compare libraries than to create the best canvas performance. But you are right: simple plain canvas is usually pretty fast.
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
WebGL is the fastest for now. But not all libraries and browsers support it
gnykka
|
5 years ago
|
on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
Yes, I agree. I also found out that Two.js redraws 5k elements even a little bit faster but it takes a couple of seconds to render them for the first time.