Jump to content

phaser performance, particles vs atlas animation


kriket
 Share

Recommended Posts

How are they in any way the same thing?

 

A texture atlas is a way to pack textures together to reduce texture bindings on the graphics unit, while a particle emitter is a way to spawn sprites. It's like comparing how efficient it is to zip a movie compared to playing it in VLC or Quicktime. Two very different things, or am I missing something.

Link to comment
Share on other sites

I suppose what you're saying is whether it would be better to use an atlas frame-based animation vs a particle emitter. For example, maybe for something like a puff of smoke you might consider a 10-frame animation of a growing ball of smoke particles vs. actually spawning 10 growing balls of smoke?

 

Disclaimer: Just my thoughts, not 100% sure if it's true.

 

If this is what you mean, the frame-based animation will probably be a little bit faster compared  to the particle system (blitzing sequences of images vs computing positions and updating them). However, the particle-based system will give more flexibility in terms of how the puffs of smoke can move (and react with the environment). And if your smoke particles are all from the same texture (or part of a texture), I doubt you will find a big discrepancy in the performance if your particle count is low.

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