{"name":"BIS_fnc_fps","title":"BIS fnc fps","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_fps","revid":370886,"updated":"2025-02-21T10:44:04Z","groups":["Diagnostic"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"effect":"local"},"description":"Function to measure FPS. Spawns code running for given time and displays result on screen via titleText, globalChat **and** diag_log.\nVariable **BIS_fps_output** is filled with diag_log content too.","syntaxes":[{"syntax":"[duration, sceneId, startDelay] call BIS_fnc_fps","params":[{"name":"duration","type":"Number","description":"the FPS test duration","type_expr":"Number"},{"name":"sceneId","type":"String","optional":true,"default":"\"\"","description":"scene ID, used in outputs. Fills global variable **currentScene**","type_expr":"String","text":"sceneId: String - (Optional, default \"\") scene ID, used in outputs. Fills global variable **currentScene**"},{"name":"startDelay","type":"Number","optional":true,"default":"0","description":"delay before starting measurement","type_expr":"Number","text":"startDelay: Number - (Optional, default 0) delay before starting measurement"}],"returns":{"type":"Script Handle","type_expr":"Script Handle"}}],"examples":[{"code":["private _scriptHandle = [10, \"50 units on screen\", 3] call BIS_fnc_fps;"]}],"see_also":["diag_fps","diag_fpsMin","diag_frameNo","diag_tickTime"]}