A few fixes for particle emitters. Added duration calculation to
minimize time updated and drawn.