8 ms·
> just draw a rectangle to a Texture once, and create a bunch of sprites using that Texture. But then all of your boxes are the same. Which is not what this be
by bufferoverflow 6y ago
> just draw a rectangle to a Texture once, and create a bunch of sprites using that Texture.
But then all of your boxes are the same. Which is not what this benchmark is.
We can conclude that Pixi.js is probably faster for drawing sprites, but is definitely slower than Two.js at drawing randomly sized rectangles.
- Aeolun 6y agoNot on my phone it isn’t. PixiJS is the only library that stays at 60fps, Two is at 30fps and Paper is at 15fps.
- georeith 6y agobut is definitely slower than Two.js at drawing randomly sized rectangles. I pushed a fix, the way it was drawing randomly sized rectangles was an unfair comparison. It is much faster than Two.js now (tried it at 10000 rectangles too) and initialises much faster also.