BIS fnc fps: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>\[\[private\]\] (_?[a-zA-Z0-9_]+) = \[([^\[]*)\] \[\[(call|spawn)\]\] \[\[(BI(N|S)_fnc_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>private $1 = [$2] $3 $4;</sqf>")
m (Text replacement - "Script handle" to "Script Handle")
 
Line 28: Line 28:
|p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement
|p3= startDelay: [[Number]] - (Optional, default 0) delay before starting measurement


|r1= [[Script Handle|Script handle]]
|r1= [[Script Handle]]


|x1= <sqf>private _scriptHandle = [10, "50 units on screen", 3] call BIS_fnc_fps;</sqf>
|x1= <sqf>private _scriptHandle = [10, "50 units on screen", 3] call BIS_fnc_fps;</sqf>

Latest revision as of 19:17, 9 August 2022

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