Skip to content

Instantly share code, notes, and snippets.

@dedmen
Created October 1, 2021 14:44
Show Gist options
  • Save dedmen/f47a6dc8f1273c756bcba979e3b5b294 to your computer and use it in GitHub Desktop.
Save dedmen/f47a6dc8f1273c756bcba979e3b5b294 to your computer and use it in GitHub Desktop.
[]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