diag fps: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{DISPLAYTITLE:diag_fps}}
{{DISPLAYTITLE:diag_fps}}
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 10: Line 9:


|gr2= Performance Logging|GROUP2=
|gr2= Performance Logging|GROUP2=
____________________________________________________________________________________________


| Returns average framerate calculated over last 16 frames.  |DESCRIPTION=
| Returns average framerate calculated over last 16 frames.  |DESCRIPTION=
____________________________________________________________________________________________


| '''diag_fps''' |SYNTAX=
| '''diag_fps''' |SYNTAX=
Line 28: Line 25:
|x1= <code>diag_log diag_fps;</code>|EXAMPLE1=  
|x1= <code>diag_log diag_fps;</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[diag_fpsMin]], [[diag_frameNo]], [[diag_log]], [[diag_tickTime]], [[diag_deltaTime]] |SEEALSO=  
| [[diag_fpsMin]], [[diag_frameNo]], [[diag_log]], [[diag_tickTime]], [[diag_deltaTime]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:47, 17 January 2021


Hover & click on the images for description

Description

Description:
Returns average framerate calculated over last 16 frames.
Groups:
DiagnosisPerformance Logging

Syntax

Syntax:
diag_fps
Return Value:
Number

Examples

Example 1:
diag_log diag_fps;

Additional Information

See also:
diag_fpsMindiag_frameNodiag_logdiag_tickTimediag_deltaTime

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on November 19, 2014 - 23:56 (UTC)
DreadedEntity
The engine will always calculate the last 16 frames without caring if they are frames in which the loading screen was drawn, or actual mission frames.