BIS fnc fps: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (template:command argument fix)
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=


|p1= duration: [[Number]] - the FPS test duration |= Parameter 1
|p1= duration: [[Number]] - the FPS test duration |PARAMETER1=


|p2= sceneId: [[String]] - (Optional, default "") scene ID, used in outputs. Fills global variable '''currentScene''' |= Parameter 2
|p2= sceneId: [[String]] - (Optional, default "") scene ID, used in outputs. Fills global variable '''currentScene''' |PARAMETER2=


|p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement |= Parameter 3
|p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement |PARAMETER3=


| [[Script_(Handle)|Script handle]] |= Return value
| [[Script_(Handle)|Script handle]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> |= Example 1
|x1= <code>_scriptHandle = [10, "50 units on screen", 3] [[call]] [[BIS_fnc_fps]];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[diag_fps]], [[diag_fpsmin]], [[diag_frameno]], [[diag_tickTime]] |= See also
| [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_tickTime]] |SEEALSO=
}}
}}



Revision as of 15:30, 7 April 2019

Hover & click on the images for description

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:
Uncategorised

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

See also:
diag_fpsdiag_fpsMindiag_frameNodiag_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

Notes

Bottom Section