Difference between revisions of "Core.frameStatistics"

From GiderosMobile
m
Line 3: Line 3:
  
 
=== Description ===
 
=== Description ===
Returns table with fields:  
+
Returns a table holding frame statistics.
 +
<source lang="lua">
 +
(table) = Core.frameStatistics()
 +
</source>
 +
 
 +
Returned table fields are:
 
*meanFrameTime - the average duration of a frame (useful to get current fps)
 
*meanFrameTime - the average duration of a frame (useful to get current fps)
 
*meanFreeTime - the average free cpu time in a frame
 
*meanFreeTime - the average free cpu time in a frame
 
*frameCounter - frame's number
 
*frameCounter - frame's number
 
<source lang="lua">
 
(table) = Core.frameStatistics()
 
</source>
 
  
 
=== Return values ===
 
=== Return values ===
 
'''Returns''' (table) table with data<br/>
 
'''Returns''' (table) table with data<br/>
 
  
 
{{Core}}
 
{{Core}}

Revision as of 19:39, 18 January 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