Browse Source

Remove references to Performance singleton.

Will Nations 6 years ago
parent
commit
37acedc2ac
1 changed files with 4 additions and 4 deletions
  1. 4 4
      getting_started/workflow/best_practices/godot_notifications.rst

+ 4 - 4
getting_started/workflow/best_practices/godot_notifications.rst

@@ -106,8 +106,8 @@ default). In contrast, ``*_input`` callbacks will trigger only on frames in
 which the engine has actually detected the input.
 
 One can check for input actions within the input callbacks just the same.
-If one wants to use delta time, one can fetch it from the
-:ref:`Performance <class_Performance>` singleton as needed.
+If one wants to use delta time, one can fetch it from the related
+deltatime methods as needed.
 
 .. tabs::
   .. code-tab:: gdscript GDScript
@@ -122,7 +122,7 @@ If one wants to use delta time, one can fetch it from the
         match event.get_class():
             "InputEventKey":
                 if Input.is_action_just_pressed("ui_accept"):
-                    print(Performance.get_monitor(Performance.TIME_PROCESS))
+                    print(get_process_delta_time())
 
   .. code-tab:: csharp
 
@@ -139,7 +139,7 @@ If one wants to use delta time, one can fetch it from the
         public void _UnhandledInput(InputEvent event) {
             switch (event.GetClass()) {
                 case "InputEventAction":
-                    GD.Print(string(GD.Performance.GetMonitor(GD.Performance.TIME_PROCESS)));
+                    GD.Print(string(GetProcessDeltaTime());
                     break;
                 default:
                     break;