ColonelKernel 4 Posted August 31, 2017 Hi. I was wondering which one of these two commands has a bigger effect on performance: waitUntil { !cond }; or while {cond} do { sleep 0.5; }; Also, does the amount of sleep time matter? What about the condition? For example, if we have to check a series of conditions (e.g {alive _x} foreach Allunits) which one is better? Share this post Link to post Share on other sites
davidoss 550 Posted August 31, 2017 waitUntil {sleep 1; !cond }; 3 Share this post Link to post Share on other sites
das attorney 857 Posted August 31, 2017 Lots of discussion over the years.. https://community.bistudio.com/wiki/Code_Optimisation#Loops https://community.bistudio.com/wiki/waitUntil http://www.armaholic.com/forums.php?m=posts&q=9373 https://community.bistudio.com/wiki/sleep (read comments) 2 Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 31, 2017 @das attorney Thank you. Share this post Link to post Share on other sites