# SetParticlesFrequency

## Description

Sets the frequency of new particle generation. The freq value states how many particles should be produced per second, this is independant of frame rate. This is one of the two values that affects the number of particles generated, the other being SetParticlesLife. The maximum number of particles that can be on screen at any one time is freq*life, with life being the number of seconds a particle lives before it disappears. This value is independent of frame rate.

## Definition

SetParticlesFrequency( ID, freq )

void agk::SetParticlesFrequency( UINT ID, float freq )

## Parameters

- ID - The ID of the emitter to modify.
- freq - The rate of new particle production in particles per second.