[sldev] Re: Reviewing/Fixing the Particle System

Nicholaz Beresford nicholaz at blueflash.cc
Fri May 25 14:57:35 PDT 2007


Here is something that got deleted some time after
1.13.3

   // Start at a random particle system so the same
   // particle system doesn't always get first pick at the
   // particles.  Theoretically we'd want to do this in distance
   // order or something, but sorting particle sources will be a big
   // pain.
   S32 i;
   S32 count = (S32) mViewerPartSources.size();
   S32 start = (S32)ll_frand((F32)count);
   S32 dir = 1;
   if (ll_frand() > 0.5f)
   {
       dir = -1;
   }


That could explain why the old version did a better job allowing
all particle sources to get a chance at creation if it was operating
near the limit.


More information about the SLDev mailing list