diag deltaTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Some wiki formatting)
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:diag_deltaTime}}
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


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


|1.95|= Game version
|gr1= Diagnostic
____________________________________________________________________________________________


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


| '''diag_deltaTime''' |SYNTAX=
|descr= Returns the duration of the previous frame in seconds


|p1= |PARAMETER1=  
|s1= [[diag_deltaTime]]


|p2= |PARAMETER2=  
|r1= [[Number]]


|p3= |PARAMETER3=  
|x1= <sqf>private _frameTime = diag_deltaTime;</sqf>


| [[Number]] |RETURNVALUE=  
|x2= <sqf>private _fps = 1 / diag_deltaTime;</sqf>


 
|seealso= [[diag_tickTime]] [[diag_fps]] [[diag_fpsMin]] [[diag_frameNo]] [[diag_log]] [[time]]
|x1= <code>_frameTime = [[diag_deltaTime]];</code>|EXAMPLE1=
|x2= <code>_fps = 1 / [[diag_deltaTime]];</code>|EXAMPLE2=
 
____________________________________________________________________________________________
 
| [[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