fixed performance problems in particle system