Difference between revisions of "Core.frameStatistics"
From GiderosMobile
| m (Text replacement - "</source>" to "</syntaxhighlight>") | |||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
| === Description === | === Description === | ||
| − | Returns table  | + | Returns a table holding frame statistics. | 
| + | <syntaxhighlight lang="lua"> | ||
| + | (table) = Core.frameStatistics() | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | 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 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| === Return values === | === Return values === | ||
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
- Core
- Core.asyncCall
- Core.asyncThread
- Core.class
- Core.enableAllocationTracking
- Core.fileLoad
- Core.fileSave
- Core.findReferences
- Core.frameStatistics
- Core.getScriptPath
- Core.profilerReport
- Core.profilerReset
- Core.profilerStart
- Core.profilerStop
- Core.random
- Core.randomSeed
- Core.setAutoYield
- Core.signal
- Core.stopping
- Core.yield
- Core.yieldable
- Core.yieldlock
