yojimbo Posted March 4, 2016 Share Posted March 4, 2016 I was just wondering ig pixi.js would be useful to simply draw 100k+ circles on a canvas. When I just use graphics.drawCircle() only a few thousand items get drawn. Also it is significantly slower than using the normal HTML5 canvas. is it possible to draw so many items? Or is pixi.js just not made to do this? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 4, 2016 Share Posted March 4, 2016 PIXI is made for sprites. If you make a texture for your circle and spawn 100k sprites in ParticleContainer - it will work fine. If you make custom shader to handle circles then it will be much faster. When you add 100k circles into a graphics, they will be drawn every frame, and every circle has difficult geometry, it wont be fast. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.