diag deltaTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:diag_deltaTime}}
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.96


|1.96|Game version=
|gr1= Diagnostic


|gr1= Diagnosis |GROUP1=
|gr2= Time
|gr2= Time |=GROUP1
____________________________________________________________________________________________


| Returns the duration of the previous frame in seconds |DESCRIPTION=
|descr= Returns the duration of the previous frame in seconds
____________________________________________________________________________________________


| [[diag_deltaTime]] |SYNTAX=
|s1= [[diag_deltaTime]]


| [[Number]] |RETURNVALUE=
|r1= [[Number]]
____________________________________________________________________________________________


|x1= <code>_frameTime = [[diag_deltaTime]];</code> |EXAMPLE1=
|x1= <sqf>private _frameTime = diag_deltaTime;</sqf>


|x2= <code>_fps = 1 / [[diag_deltaTime]];</code> |EXAMPLE2=
|x2= <sqf>private _fps = 1 / diag_deltaTime;</sqf>


____________________________________________________________________________________________
|seealso= [[diag_tickTime]] [[diag_fps]] [[diag_fpsMin]] [[diag_frameNo]] [[diag_log]] [[time]]
 
| [[diag_tickTime]], [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_log]], [[time]] |SEEALSO=
 
|  |MPBEHAVIOUR=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:08, 3 May 2022

Hover & click on the images for description

Description

Description:
Returns the duration of the previous frame in seconds
Groups:
DiagnosticTime

Syntax

Syntax:
diag_deltaTime
Return Value:
Number

Examples

Example 1:
private _frameTime = diag_deltaTime;
Example 2:
private _fps = 1 / diag_deltaTime;

Additional Information

See also:
diag_tickTime diag_fps diag_fpsMin diag_frameNo diag_log time

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