nark0t1k 16 Posted November 21, 2016 Hi everyone,I'm looking to optimize my script according with https://community.bistudio.com/wiki/Code_OptimisationBut get some trouble for testing script with BIS_fnc_codePerformanceAnybody can explain how can i test some different script ? _handle = ["Coucou",false,5,0.01,0.26,"AinvPknlMstpSnonWnonDnon_medic_1"] spawn life_fnc_handleProgressBar; waitUntil {scriptDone _handle;}; or _handle = ["Coucou",false,5,0.01,0.26,"AinvPknlMstpSnonWnonDnon_medic_1"] spawn life_fnc_handleProgressBar; waitUntil {sleep 0.2;scriptDone _handle;}; VS _handle = ["Coucou",false,5,0.01,0.26,"AinvPknlMstpSnonWnonDnon_medic_1"] spawn life_fnc_handleProgressBar; for "_i" from 0 to 1 step 0 do { if(scriptDone _handle)exitWith {}; sleep 0.2; }; ???and can i test somethink like full script (like life_fnc_handleProgressBar) ?I try to test with ["[""Coucou"",false,5,0.01,0.26,""AinvPknlMstpSnonWnonDnon_medic_1""] spawn life_fnc_handleProgressBar;"] call BIS_fnc_codePerformance; But resultLook like .... doesn't take time :/Any help or tips are welcome :-) Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted November 21, 2016 Doesn't work with spawn, obviously. Cheers 1 Share this post Link to post Share on other sites
nark0t1k 16 Posted November 21, 2016 (edited) ThanksAny other way to test performance about "spawn" script?waitUntil with sleep 0.2orfor "_i" from 0 to 1 step 0 with sleep 0.2 :/ ?EDIT:I'm looking about wich method use lower CPU for client :) Edited November 21, 2016 by nark0t1k Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted November 21, 2016 Any other way to test performance about "spawn" script? Since you already seem to know about it, I suggest reading this part of the optimization page again. Cheers 1 Share this post Link to post Share on other sites