0 Members and 2 Guests are viewing this topic.
Labels can also be handy if your gameplay loop is at the very start of your program and needs no variable to increment by the same value every loop iteration. In such case, Lbl is actually faster than While/Repeat. If you have a variable to increment every loop, though, then For is faster. Normally, loops made of Lbl/Goto are much slower than normal ones, but the higher the Lbl in the code, the faster the looping, and it gets to the point where at the top of the code, it can actually be faster.
Quote from: DJ Omnimaga on November 14, 2013, 10:52:26 pmLabels can also be handy if your gameplay loop is at the very start of your program and needs no variable to increment by the same value every loop iteration. In such case, Lbl is actually faster than While/Repeat. If you have a variable to increment every loop, though, then For is faster. Normally, loops made of Lbl/Goto are much slower than normal ones, but the higher the Lbl in the code, the faster the looping, and it gets to the point where at the top of the code, it can actually be faster.Oh, so for each goto it has to re-look through the whole code for the label? (Why doesn't TI look through the code before running it )
Most people don't feel like manually copy-pasting the code in SourceCoder, let alone typing it manually on their calc, then creating a 8xp file, when the author could have provided a 8xp himself.