Exemplo n.º 1
0
 /// <summary>
 /// Resets all of the DPSFDefaultSettings' properties to their default values.
 /// </summary>
 public static void ResetToDefaults()
 {
     AutoMemoryManagementSettings         = new AutoMemoryManagerSettings();
     UpdatesPerSecond                     = 0;
     PerformanceProfilingIsEnabled        = false;
     UseSharedEffectForAllParticleSystems = false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copies the given Auto Memory Manager Settings into this instance.
 /// </summary>
 /// <param name="settingsToCopy">The settings to copy from.</param>
 public void CopyFrom(AutoMemoryManagerSettings settingsToCopy)
 {
     this.MemoryManagementMode           = settingsToCopy.MemoryManagementMode;
     this.miAbsoluteMinNumberOfParticles = settingsToCopy.miAbsoluteMinNumberOfParticles;
     this.mfReduceAmount   = settingsToCopy.mfReduceAmount;
     this.mfIncreaseAmount = settingsToCopy.mfIncreaseAmount;
     mfSecondsMaxNumberOfParticlesMustExistForBeforeReducingSize = settingsToCopy.mfSecondsMaxNumberOfParticlesMustExistForBeforeReducingSize;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMemoryManagerSettings"/> class, copying all of the settings from the given Settings To Copy.
 /// </summary>
 /// <param name="settingsToCopy">The settings to copy from.</param>
 public AutoMemoryManagerSettings(AutoMemoryManagerSettings settingsToCopy)
 {
     this.CopyFrom(settingsToCopy);
 }