public void Tick(double delta) { ops += delta; if (ops > 1) { ops = 0; OncePerSecondActions(); } Schedule.RunAllSyncTasks(delta); MainRegion.Tick(delta); }
/// <summary> /// Ticks the world and all regions. /// Called automatically by the standard run thread. /// </summary> /// <param name="delta">How much time has passed since the last tick.</param> public void Tick(double delta) { tpsc++; Delta = delta; GlobalTickTime += delta; ops += delta; if (ops > 1) { ops = 0; OncePerSecondActions(); } Schedule.RunAllSyncTasks(delta); MainRegion.Tick(); }