Profiled, optimized drawing for particles.

Also fixed the implementation of part_particles_count.