BIS fnc fps: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
Line 32: | Line 32: | ||
|x1= <code>[[private]] _scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> | |x1= <code>[[private]] _scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> | ||
|seealso= [[diag_fps]] [[diag_fpsMin]] [[diag_frameNo]] | |seealso= [[diag_fps]] [[diag_fpsMin]] [[diag_frameNo]] [[diag_tickTime]] | ||
}} | }} |
Revision as of 12:58, 1 July 2022
Description
- Description:
- Function to measure FPS. Spawns code running for given time and displays result on screen via titleText, globalChat and diag_log. Variable BIS_fps_output is filled with diag_log content too.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [duration, sceneId, startDelay] call BIS_fnc_fps
- Parameters:
- duration: Number - the FPS test duration
- sceneId: String - (Optional, default "") scene ID, used in outputs. Fills global variable currentScene
- startDelay: Number - (Optional, default 0) delay before starting measurement
- Return Value:
- Script handle
Examples
- Example 1:
private _scriptHandle = [10, "50 units on screen", 3] call BIS_fnc_fps;
Additional Information
- See also:
- diag_fps diag_fpsMin diag_frameNo diag_tickTime
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