mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ Performance
|
||||
===========
|
||||
|
||||
**Inherits:** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -27,7 +28,7 @@ Enumerations
|
||||
|
||||
.. _enum_Performance_Monitor:
|
||||
|
||||
enum **Monitor**
|
||||
enum **Monitor**:
|
||||
|
||||
- **TIME_FPS** = **0** --- Frames per second.
|
||||
- **TIME_PROCESS** = **1** --- Time it took to complete one frame.
|
||||
@@ -59,7 +60,6 @@ enum **Monitor**
|
||||
- **AUDIO_OUTPUT_LATENCY** = **27**
|
||||
- **MONITOR_MAX** = **28**
|
||||
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -70,7 +70,7 @@ Many of these monitors are not updated in real-time, so there may be a short del
|
||||
Method Descriptions
|
||||
-------------------
|
||||
|
||||
.. _class_Performance_get_monitor:
|
||||
.. _class_Performance_get_monitor:
|
||||
|
||||
- :ref:`float<class_float>` **get_monitor** **(** :ref:`Monitor<enum_Performance_Monitor>` monitor **)** const
|
||||
|
||||
@@ -80,4 +80,3 @@ Returns the value of one of the available monitors. You should provide one of th
|
||||
|
||||
print(Performance.get_monitor(Performance.TIME_FPS)) # Prints the FPS to the console
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user