Jump to content

Drawing Buffer


yahiko
 Share

Recommended Posts

I would like to know if by default drawing graphics (PIXI.Graphics) with pixi.js implicitly uses a buffer or if we have to do that explicitly. If so, is there a way to do that natively with pixi.js?

For the moment, I have implemented a small class for this purpose, but maybe this feature already exists in the core library.

Thanks for your replies :)

Link to comment
Share on other sites

That's absolutely true, I know this feature in Phaser which is based on Pixi.js until v3, but I forgot to mention that my graphics' lifetimes (not only rectangle in fact) are limited, and I produce new ones constantly, like a particule system in fact.

Say differently, I really need to draw them programmatically at every frame.

Link to comment
Share on other sites

18 hours ago, yahiko said:

Good and quick discussion. I am going to stay with my home made implementation, but I will keep in mind what you have said guys. That could be a way to optimize my project :)

Some people have inventors mind and find it difficult to use things they dont understand. Good luck to you!

Link to comment
Share on other sites

As a matter of fact, I keep my home made implementation for the moment because it is satisfaying enough, performance wise, tt is also because I need to finish more important stuffs before optimization, and because of some lazyness of course! :)

But what you and the others have written will surely inspire myself when I will be forced to optimize thouroughly with increasing objects and computations.

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...