diag deltaTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:diag_deltaTime}} {{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1....")
 
(example)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Line 23: Line 23:


|x1= <code>_frameTime = [[diag_deltaTime]];</code>|EXAMPLE1=  
|x1= <code>_frameTime = [[diag_deltaTime]];</code>|EXAMPLE1=  
|x2= <code>_fps = 1 / [[diag_deltaTime]];</code>|EXAMPLE2=


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 19:25, 17 July 2019


-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.95|1.95]]
Hover & click on the images for description

Description

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

Syntax

Syntax:
diag_deltaTime
Return Value:
Number

Examples

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

Additional Information

See also:
diag_tickTimediag_fpsdiag_fpsMindiag_frameNodiag_logtime

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

[[Category:Introduced with arma3dev version 1.95]][[ Category: arma3dev: New Scripting Commands | DIAG DELTATIME]][[ Category: arma3dev: Scripting Commands | DIAG DELTATIME]]

Notes

Bottom Section