diag deltaTime: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{DISPLAYTITLE:diag_deltaTime}} {{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1....") |
Killzone Kid (talk | contribs) (example) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the duration of the previous frame in | | 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
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
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]]