lewisje / renderengine

Automatically exported from code.google.com/p/renderengine
MIT License
0 stars 0 forks source link

Particles need to be sorted better #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The original intention was to sort particles so that empty (available particle) 
slots would be at the end of the list.  The algorithm is sorting empty slots to 
the front of the list which causes issues when forcing new particles into the 
execution list.

Particles should be sorted with shortest lifespan to longest so that particles 
which are about to expire anyways are force-destroyed instead of long-running 
particles.

Original issue reported on code.google.com by bfatt...@gmail.com on 15 Jul 2010 at 5:34

GoogleCodeExporter commented 8 years ago
In addition to fixing the sorting of particles, an optimized particle engine 
was introduced.  The particles are now better managed when no slots are 
available to insert new particles.  Additionally, particle addition has been 
sped up by providing a method to bulk add particles to the system.  Finally, 
the addition of particles to the system is using more native methods to speed 
the execution and manage the lifespan of the particles.

Original comment by bfatt...@gmail.com on 16 Jul 2010 at 5:20

GoogleCodeExporter commented 8 years ago
Resolved in revision 1127

Original comment by bfatt...@gmail.com on 16 Jul 2010 at 5:22

GoogleCodeExporter commented 8 years ago

Original comment by bfatt...@gmail.com on 9 Nov 2010 at 2:40