Quote: "In which case, it's a good idea to form good habits now. While n works on small pieces of code, imagine nested loops that span hundreds of lines of code. Then, imagine that code being passed to somebody else to maintain. You'll soon realise what is best practise"
I never though of that, excellent point BatVink.
Quote: "What's more important is where the data is derived from."
And when as demonstrated in your snippets.
Quote: "I don't think this is far off topic as we are discussing methods of speeding our games up here. I hope you all agree."
Well, kind of began as off topic as it was related to programming in general but has become on topic.
Here is a question about speed
is this:
for n = 1 to 10
x = x + 1
y = y + 1
next n
faster than this?:
for n = 1 to 10
x = x + 1
next n
for n = 1 to 10
y = y + 1
next n
I think the answer is yes but because two individual loops are called but I would like confirmation.
Quote: "BTW. Like my new avatar?"
Very nice! I like how all of the guns look like they're going to shoot through the trumpet in your valued member badge