Difference between revisions of "Core.frameStatistics"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2016.08<br/>
'''<translate>Available since</translate>:''' Gideros 2016.08<br/>
+
'''Class:''' [[Core]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Core|Core]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns table with fields:
+
Returns a table holding frame statistics.
*meanFrameTime* - the average duration of a frame (useful to get current fps),
+
<syntaxhighlight lang="lua">
*meanFreeTime* - the average free cpu time in a frame
 
*frameCounter* - frame's number</translate>
 
<source lang="lua">
 
 
(table) = Core.frameStatistics()
 
(table) = Core.frameStatistics()
</source>
+
</syntaxhighlight>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (table) <translate>table with data</translate><br/>
+
Returned table fields are:
 +
*meanFrameTime - the average duration of a frame (useful to get current fps)
 +
*meanFreeTime - the average free cpu time in a frame
 +
*frameCounter - frame's number
 +
 
 +
=== Return values ===
 +
'''Returns''' (table) table with data<br/>
 +
 
 +
{{Core}}

Latest revision as of 14:27, 13 July 2023

Available since: Gideros 2016.08
Class: Core

Description

Returns a table holding frame statistics.

(table) = Core.frameStatistics()

Returned table fields are:

  • meanFrameTime - the average duration of a frame (useful to get current fps)
  • meanFreeTime - the average free cpu time in a frame
  • frameCounter - frame's number

Return values

Returns (table) table with data