Example #1
0
        private void Apply()
        {
            Routine.Settings.DebugMode        = m_DebugMode;
            Routine.Settings.ProfilingEnabled = m_Profiling;
            Routine.Settings.SnapshotEnabled  = m_Snapshots;
            Routine.Settings.HandleExceptions = m_HandleExceptions;
            Routine.Settings.SetCapacity(m_Capacity);

            Routine.Initialize();

            Routine.Settings.DefaultPhase         = m_DefaultPhase;
            Routine.Settings.ThinkUpdateInterval  = m_ThinkUpdateInterval;
            Routine.Settings.CustomUpdateInterval = m_CustomUpdateInterval;
        }
Example #2
0
        private void Apply()
        {
            Routine.Settings.DebugMode        = m_DebugMode;
            Routine.Settings.ProfilingEnabled = m_Profiling;
            Routine.Settings.SnapshotEnabled  = m_Snapshots;
            Routine.Settings.HandleExceptions = m_HandleExceptions;
            Routine.Settings.SetCapacity(m_Capacity);

            if (m_TweenPool > 0)
            {
                Tween.SetPooled(m_TweenPool);
            }

            Routine.Initialize();

            Routine.Settings.DefaultPhase         = m_DefaultPhase;
            Routine.Settings.ThinkUpdateInterval  = m_ThinkUpdateInterval;
            Routine.Settings.CustomUpdateInterval = m_CustomUpdateInterval;

            if (m_FrameBudget > 0)
            {
                Routine.Settings.FrameDurationBudgetMS = m_FrameBudget;
                Routine.Settings.AsyncBudgetMinMS      = m_FrameBudget * Manager.DEFAULT_ASYNC_PERCENTAGE_MIN;
                Routine.Settings.AsyncBudgetMaxMS      = m_FrameBudget * Manager.DEFAULT_ASYNC_PERCENTAGE_MAX;
            }

            if (m_AsyncBudgetMin > 0)
            {
                Routine.Settings.AsyncBudgetMinMS = m_AsyncBudgetMin;
            }

            if (m_AsyncBudgetMax > 0)
            {
                Routine.Settings.AsyncBudgetMaxMS = m_AsyncBudgetMax;
            }

            Routine.Settings.ForceSingleThreaded = m_ForceSingleThreaded;
        }