コード例 #1
0
 public static void Postfix(string __state)
 {
     if (Active)
     {
         ProfileController.Stop(__state);
     }
 }
コード例 #2
0
        public static void Postfix()
        {
            if (GUIController.CurrentCategory == Category.Tick) // If we in Tick mode, finish our update (can happen multiple times p frame)
            {
                ProfileController.EndUpdate();
            }

            if (H_RootUpdate.Active)
            {
                ProfileController.Stop("Tick");
            }
        }
コード例 #3
0
ファイル: H_RootUpdate.cs プロジェクト: Skharr/Hardcore-SK
        public static void Postfix()
        {
            if (Active)
            {
                ProfileController.Stop("Frame times");
                ProfileController.Stop("Game Update");
            }

            if (GUIController.CurrentCategory != Category.Tick) // If we are tick, we will 'update' in the TickManager.DoSingleTick method
            {
                ProfileController.EndUpdate();
            }

            if (Active)
            {
                ProfileController.Start("Frame times");
            }
        }