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
..UseSharedEffectForAllParticleSystems Property

Gets / Sets if a common BasicEffect and AlphaTestEffect should be used for all particle systems, rather than each particle system creating their own.

NOTE: Using a shared effect will decrease the time it takes to Initialize() each particle system.

NOTE: If using a shared Effect for all particle systems, if one particle system sets an Effect parameter, all other particle systems should also set that same parameter in their overridden SetEffectParameters() function so that each particle system guarantees that the Effect is using the parameters it expects it to be using. For example, if particle system 1 sets the Effect's Texture, that same Texture will be used for particle system 2 unless particle system 2 specifies the new Texture to use.

NOTE: The Graphics Device of the first particle system to be initialized will be used when creating the shared Effect. If you later require a different Graphics Device to be used, you must call the SetGraphicsDeviceForSharedEffectsForAllParticleSystems() function.

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version:



public static bool UseSharedEffectForAllParticleSystems { getset; }

Visual Basic

Public Shared Property UseSharedEffectForAllParticleSystems As Boolean



Visual C++


static property bool UseSharedEffectForAllParticleSystems {

 bool get ();

 void set (bool value);


Property Value

Type: Boolean

collapse_allSee Also

DPSFDefaultSettings Class

DPSFDefaultSettings Members

DPSF Namespace


Send comments on this topic to