collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++


[TCheckBoxFormControlObj]Visual Basic

Visual C++

DPSF API Documentation

AutoMemoryManagerModes Enumeration
The possible Modes the Automatic Memory Manager can be in

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version:




public enum AutoMemoryManagerModes

Visual Basic


Public Enumeration AutoMemoryManagerModes

Visual C++


public enum class AutoMemoryManagerModes


Member name





Do not use the Automatic Memory Manager. The Number Of Particles Allocated In Memory will not be changed dynamically at run-time. This is the best option if performance is critical, as it can be expensive to allocate and release large chunks of memory at run-time. If using this mode you should be sure that the Number Of Particles Allocated In Memory is large enough to accommodate the particle system, but small enough that it does not waste large amounts of memory.



This is the same as Disabled, except that if a particle is trying to be added and there is no more memory available for a new particle, the particle at the end of the ActiveParticleList will be hard-killed and recycled and used for the new particle.

NOTE: If using Disabled mode instead of this mode, if a new particle tries to be added and no more memory is available, the new particle simply will not be added.

NOTE: If trying to add a new particle, but the number of Active Particles has already hit the MaxNumberOfParticlesAllowed, the particle will not be added. This setting only takes effect when trying to add a new particle and we have reached the NumberOfParticlesAllocatedInMemory, but not the MaxNumberOfParticlesAllowed. This means that in order for this setting to be effective, the MaxNumberOfParticlesAllowed must be greater than the NumberOfParticlesAllocatedInMemory.

NOTE: When a particle is hard-killed, no more processing at all is performed on it. For example, if the particle is supposed to trigger some other event to happen when it dies (e.g. by using a NormalizedTimedEvent), that event will not be triggered.

NOTE: Typically the oldest particles are at the end of the ActiveParticleList and the youngest ones are at the front, so the oldest particles (i.e. the ones with the greatest ElapsedTime and a Lifetime greater than zero) will be recycled first.



Allow the Automatic Memory Manager to allocate more memory when needed, and reduce it when not needed.



Only allow the Automatic Memory Manager to allocate more memory when needed (cannot reduce space).



Only allow the Automatic Memory Manager to reduce the amount of memory allocated when it is not needed (cannot increase space).

collapse_allSee Also

DPSF Namespace


Send comments on this topic to