Code Snippets SQF

Short texts SQF 🧑‍💻 Code snippets SQF ✍️ Reading lists SQF 👀

MeasureFPS.sqf

[]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”, […]