Jump to content

Lagging in simple navigation


SebastianMtl
 Share

Recommended Posts

Did you try to profile it with devtools? Look at which functions consume the most time.

I think its because its re-calculating bounds  of all those graphics objects on screen.

Btw why are you using graphics for tiles? You can try Sprites with PIXI.Texture.WHITE and "sprite.tint" that you want, it'll be faster for interaction in your case, but still very heavy because interaction will iterate and check every item. There's no quadtree in pixi, so its your job to provide InteractionManager with better search algorithm

Edited by ivan.popelyshev
Link to comment
Share on other sites

How can I do if I using Particle Container to make each sprite interactive ?

Because it doesn't work now

 

Edit: I read this :

Quote

Particles Container is specifically container for indentical elements, without interaction, alpha blending, tinting, scaling, anchors, position changing by default.

But How can display 250000 sprite and make it interactive at same time ?

Edited by SebastianMtl
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...