So should I be using goto, while, spawn, or sleep?
Critical172 wrote:
So should I be using goto, while, spawn, or sleep? Goto is used in very rare occasions. If you are going to use a loop use a while loop. As a side note to performance I have a stat with nearly 10 procs placed inside of them, nearly all run each tick- with no slowdown or problems. Certain people would try to sway you from using that technique but the fact is, it's an option if you don't want to use a while loop. Ultimately which method you use to solve your problem will depend on your problem. |
I wasn't ever really debating, it was more of you telling me I didn't know what I was doing and that it would cause exccessive cpu usage- which it doesn't