Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
georeith
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
georeith
6y ago
but 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
2.
▲
by
georeith
6y ago
I see you saw the response on the issue, for anyone else this was the response: The golden rule is the less you have to clear() and redraw the insides of the graphics the faster it's going to be as pixi.js has to convert your draw com
3.
▲
by
georeith
6y ago
The comparison was unfair it was only moving the positions of the rectangles each frame for paper.js, and two.js but for pixi.js it was redrawing them from scratch which means it had to retesselate everything every frame. I made a PR to fix