BIS fnc fps: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Diagnostic(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 9: | Line 8: | ||
|eff= local|= Effect in MP | |eff= local|= Effect in MP | ||
| 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. |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. |DESCRIPTION= | ||
| [duration, sceneId, startDelay] call [[BIS_fnc_fps]] |SYNTAX= | | [duration, sceneId, startDelay] call [[BIS_fnc_fps]] |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Script_(Handle)|Script handle]] |RETURNVALUE= | | [[Script_(Handle)|Script handle]] |RETURNVALUE= | ||
|x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> |EXAMPLE1= | |x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> |EXAMPLE1= | ||
| [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_tickTime]] |SEEALSO= | | [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_tickTime]] |SEEALSO= |
Revision as of 23:05, 16 January 2021
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:
_scriptHandle = [10, "50 units on screen", 3] call BIS_fnc_fps;
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