Matthijs 40 Posted February 17, 2004 I'm wondering, what would have the least impact on the CPU while running... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyVar=false @MyVar This? Or: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyVar=false :LOOP ~(1+random 1) if (!MyVar) then { goto "LOOP" } this? Can anyone tell me? Can anyone tell me how often the "@" function runs? Share this post Link to post Share on other sites
John_Q 0 Posted February 17, 2004 Quote[/b] ]MyVar=false:LOOP ~(1+random 1) if (!MyVar) then { goto "LOOP" } Why are you using a random number? It's just extra stuff for the script to do . Share this post Link to post Share on other sites
Matthijs 40 Posted February 17, 2004 It has to do with the application of the script. Anyway, that was not the question. Question is: which script would be easier on the CPU while MyVar is false? Share this post Link to post Share on other sites
John_Q 0 Posted February 17, 2004 The second one is more efficient . Share this post Link to post Share on other sites
bn880 5 Posted February 17, 2004 Heh, maybe you should try this thread http://www.flashpoint1985.com/cgi-bin....;hl=the Err, or this one http://www.flashpoint1985.com/cgi-bin....;hl=you Share this post Link to post Share on other sites
Matthijs 40 Posted February 17, 2004 Heh, maybe you should try this thread http://www.flashpoint1985.com/cgi-bin....;hl=theErr, or this one http://www.flashpoint1985.com/cgi-bin....;hl=you Heh... Thanks. Share this post Link to post Share on other sites