Difference between revisions of "Core.frameStatistics"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 6: Line 6:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(table) = Core.frameStatistics()
 
(table) = Core.frameStatistics()
</source>
+
</syntaxhighlight>
  
 
Returned table fields are:
 
Returned table fields are:

Latest revision as of 15: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