Jump to content

Low FPS when using large textures


Recommended Posts

I need to display a large number (for example 400) of high resolution textures at the same time, for this I used the ParticleContainer from the example - https://pixijs.io/examples/#/demos-basic/particle-container.js.

But in the end, I get FPS = 10-15, the more sprites, the lower the FPS, even if you turn off the animation - there is no difference, the image in idle mode also heavily loads the browser, which is why the page scroll is very freezing.

I could not find a solution anywhere, so I will be grateful for your help.

Link to comment
Share on other sites

  • 2 weeks later...

Use compressed textures & spritesheets would be the solution.

If you have for example 400 1024x1024 32 bit png images then uncompressed that would require 13.4 gigabits of video memory assuming my calculations were right (might not be, but large amount of memory anyways). Also 400 is such a high number that no gpu currently can hold that many texture slots so batching is not possible -> no benefit in using particle-container, it might even be decremental to performance as it's intended for cases where a single texture is used for lots of sprites.

For some reason I couldnt see the example running so dont know what the resolutions were. But if they are small enough you can get it working with just spritesheets. If it's still sluggish then try compressed textures. If it's still slow then things get much harder and I know of no simple solutions.

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.

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.


  • Recently Browsing   0 members

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