Jump to content

Many small objects or one large?


Mamow
 Share

Recommended Posts

Hi,

 

I need to place a lot of small statics images in front of my scene, so.. should I marge all of this objects into one full screen image with alpha and put it on stage or just make spritesheet and individually place each object on its place? What is the better solution nad why? Thanks

Link to comment
Share on other sites

 I predict that it will be slow for CanvasRenderer , but WebGLRenderer will work just fine.

 

You can put objects in PIXI.Container , and if it will be too slow, make container.cacheAsBitmap=true .

 

Also, I have solution for that kind of things, but there are no docs yet: https://github.com/ivanpopelyshev/pixi-tilemap 

Link to comment
Share on other sites

I would say, that PIXI.ParticleContainer and rendering many small sprites (from the same spritesheet) is what you are looking for in terms of performance.

If you are targeting mobile devices, you can easily get into problems with one large texture: GPU fill rate, max. supported texture size, etc

 

Depends on case : how many individual sprites you want to render / how big will be mentioned full screen image.

If you are going to do some tests on this, please share your results.

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