Example #1
0
 private void DeInitAdaptivePerformance()
 {
     if (m_AdaptivePerformanceManager != null && m_AdaptivePerformanceManager.activeLoader != null)
     {
         m_AdaptivePerformanceManager.DeinitializeLoader();
         m_AdaptivePerformanceManager = null;
         m_ProviderIntialized         = false;
     }
 }
Example #2
0
        private void InitAdaptivePerformance()
        {
            if (AdaptivePerformanceGeneralSettings.Instance == null || AdaptivePerformanceGeneralSettings.Instance.m_LoaderManagerInstance == null || AdaptivePerformanceGeneralSettings.Instance.m_InitManagerOnStart == false)
            {
                return;
            }

            m_AdaptivePerformanceManager = AdaptivePerformanceGeneralSettings.Instance.m_LoaderManagerInstance;
            if (m_AdaptivePerformanceManager == null)
            {
                Debug.LogError("Assigned GameObject for Adaptive Performance Management loading is invalid. No Adaptive Performance Providers will be automatically loaded.");
                return;
            }

            m_AdaptivePerformanceManager.automaticLoading = false;
            m_AdaptivePerformanceManager.automaticRunning = false;
            m_AdaptivePerformanceManager.InitializeLoaderSync();
            m_ProviderIntialized = true;
        }