title: particle system: particle generation
body: <p>I have a system that generates particles from sources and updates their positions. Currently, I have written a program in OpenGL which calls my <code>GenerateParticles(...)</code> and <code>UpdateParticles(...)</code> and displays my output. One functionality that I would like my system to have is being able to generate <code>n</code> particles per second. In my <code>GenerateParticles(...)</code> and <code>UpdateParticles(...)</code> functions, I accept 2 important parameters: <code>current_time</code> and <code>delta_time</code>. In <code>UpdateParticles(...)</code>, I update the position of my particle according to the following formula: <code>new_pos = curr_pos + delta_time*particle_vector</code>. How can I use these parameters and global variables (or other mechanisms) to produce <code>n</code> particles per second?</p>