@octothorpe:
Since the particles are CONSTANTLY being re-arranged (its very random), I will have to resort the list every time, however I can get away with doing it once every 60 frames without anyone noticing.
@big10p:
Those are some great suggestions! I didn't even think about the sqrt thing and the fact that since everything is relative that I dont really need it to be sqrt'ed and just use the base formula for the comparrison. Excellet, that will same me some speed most definately!
Since the particles are CONSTANTLY being re-arranged (its very random), I will have to resort the list every time, however I can get away with doing it once every 60 frames without anyone noticing.
@big10p:
Those are some great suggestions! I didn't even think about the sqrt thing and the fact that since everything is relative that I dont really need it to be sqrt'ed and just use the base formula for the comparrison. Excellet, that will same me some speed most definately!