Document `Engine.get_idle/physics_frames` methods

This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-01-14 22:13:03 +02:00
parent 562bc1941d
commit 42567bffb9
1 changed files with 15 additions and 1 deletions

View File

@ -41,7 +41,7 @@
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the total number of frames drawn. Returns the total number of frames drawn. If the render loop is disabled with [code]--disable-render-loop[/code] via command line, this returns [code]0[/code]. See also [method get_idle_frames].
</description> </description>
</method> </method>
<method name="get_frames_per_second" qualifiers="const"> <method name="get_frames_per_second" qualifiers="const">
@ -51,6 +51,13 @@
Returns the frames per second of the running game. Returns the frames per second of the running game.
</description> </description>
</method> </method>
<method name="get_idle_frames" qualifiers="const">
<return type="int">
</return>
<description>
Returns the total number of frames passed since engine initialization which is advanced on each [b]idle frame[/b], regardless of whether the render loop is enabled. See also [method get_frames_drawn].
</description>
</method>
<method name="get_license_info" qualifiers="const"> <method name="get_license_info" qualifiers="const">
<return type="Dictionary"> <return type="Dictionary">
</return> </return>
@ -72,6 +79,13 @@
Returns the main loop object (see [MainLoop] and [SceneTree]). Returns the main loop object (see [MainLoop] and [SceneTree]).
</description> </description>
</method> </method>
<method name="get_physics_frames" qualifiers="const">
<return type="int">
</return>
<description>
Returns the total number of frames passed since engine initialization which is advanced on each [b]physics frame[/b].
</description>
</method>
<method name="get_physics_interpolation_fraction" qualifiers="const"> <method name="get_physics_interpolation_fraction" qualifiers="const">
<return type="float"> <return type="float">
</return> </return>