Created
October 1, 2021 14:44
-
-
Save dedmen/f47a6dc8f1273c756bcba979e3b5b294 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[]spawn { | |
fps_sum = 0; | |
fps_count = 0; | |
[[],{ | |
for "_i" from 1 to 3 do { | |
[diag_fps,{ | |
fps_sum = fps_sum + _this; | |
fps_count = fps_count + 1; | |
}] remoteExec ["call", remoteExecutedOwner]; | |
sleep 1; | |
}; | |
}] remoteExec ["spawn", -2]; | |
sleep 5; | |
private _avgFps = fps_sum / fps_count; | |
systemChat format ["Avg fps: %1 with %2 points", _avgFps, fps_count]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment