collapse_all

expand_all

collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

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

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++

[TCheckBoxFormControlObj]Include Protected Members

[TCheckBoxFormControlObj]
Include Inherited Members
DPSF API Documentation
DPSFDefaultSettings Members
gradient

The DPSFDefaultSettings type exposes the following members.

collapse_allMethods

 

Name

Description

pubmethodstatic

ResetToDefaults

Resets all of the DPSFDefaultSettings' properties to their default values.

pubmethodstatic

SetGraphicsDeviceForSharedEffectsForAllParticleSystems

Reinitializes the shared BasicEffect and AlphaTestEffect using the GraphicsDevice provided.

NOTE: If you are using a Shared Effect For All Particle Systems and you change GraphicsDevices, you will need to call this function with the new Graphics Device.

collapse_allProperties

 

Name

Description

pubpropertystatic

AutoMemoryManagementSettings

Gets / Sets the default particle system memory management settings.

pubpropertystatic

PerformanceProfilingIsEnabled

Gets / Sets if particle system performance timings are Enabled by default or not. Performance profiling is not available on the Reach profile.

pubpropertystatic

ThrowDebugWarningExceptions

Get and set if DPSF Debug Warning Exceptions should be thrown or not.

These exceptions are typically thrown as a warning to the user that they do not have DPSF configured ideally.

This will only return true (default) if we are running in Debug mode (i.e. the DEBUG compilation symbol is defined) and a debugger is attached. This is done to prevent these exceptions from being thrown when software compiled in Debug mode is released.

pubpropertystatic

UpdatesPerSecond

Gets / Sets the default particle system updates per second.

NOTE: Zero means update as often as possible.

pubpropertystatic

UseSharedEffectForAllParticleSystems

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.

collapse_allSee Also

DPSFDefaultSettings Class

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com