Jump to content

Large amount of circles


yojimbo
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...