BIS fnc fps: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| arma2 \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Diagnostic | |gr1= Diagnostic | ||
|eff= local | |eff= local | ||
| 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. | |descr= 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. | |||
| [duration, sceneId, startDelay] call [[BIS_fnc_fps]] | |s1= [duration, sceneId, startDelay] call [[BIS_fnc_fps]] | ||
|p1= duration: [[Number]] - the FPS test duration | |p1= duration: [[Number]] - the FPS test duration | ||
Line 27: | Line 28: | ||
|p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement | |p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement | ||
| [[Script_(Handle)|Script handle]] | |r1= [[Script_(Handle)|Script handle]] | ||
|x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> | |x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> | ||
Line 33: | Line 34: | ||
|seealso= [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_tickTime]] | |seealso= [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_tickTime]] | ||
}} | }} | ||
Revision as of 18:01, 10 June 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