/// <summary>
 /// Creates the Ultraviolet host core for this host process.
 /// </summary>
 private void InitializeUltravioletHostCore()
 {
     hostcore = new UltravioletHostCore(this);
     hostcore.IsFixedTimeStep   = this.IsFixedTimeStep;
     hostcore.TargetElapsedTime = this.TargetElapsedTime;
     hostcore.InactiveSleepTime = this.InactiveSleepTime;
 }
 /// <summary>
 /// Creates the Ultraviolet host core for this host process.
 /// </summary>
 private void InitializeUltravioletHostCore()
 {
     hostcore                   = new UltravioletHostCore(this);
     hostcore.IsFixedTimeStep   = this.IsFixedTimeStep;
     hostcore.TargetElapsedTime = this.TargetElapsedTime;
     hostcore.InactiveSleepTime = this.InactiveSleepTime;
 }
Beispiel #3
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(Boolean disposing)
        {
            if (disposing)
            {
                SafeDispose.Dispose(tickTimer);
                SafeDispose.Dispose(components);
                SafeDispose.Dispose(uv);

                hostcore = null;
            }
            base.Dispose(disposing);
        }