Beispiel #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;
 }
 /// <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;
 }
 /// <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);
 }