leron9999 Posted August 18, 2014 Share Posted August 18, 2014 Hi guys. Just wondering how heavy it is to use while loop as compared to single updates? I currently use while loops for repeating steps and utility.wait for just waiting for the script or magic effect to remove itself. Would that be preferable as compared to using single update? I used those since it essentially does the same thing under the assumption that it uses less script memory. Link to comment Share on other sites More sharing options...
NoiseBomb91 Posted August 22, 2014 Share Posted August 22, 2014 It depends on how many things you are initiating through. A script can run through a while loop 5 or 10 times incredibly fast but if you are running through it hundreds or thousands of time and doing a lot in the while loop it will lag down the game. Link to comment Share on other sites More sharing options...
Recommended Posts