I need some help with speed of codes
#1

hi people,
i need some help with speed of codes, i don't know much about this but i really want to learn.
By speed of code I mean which code(loop) will go faster, which would go slower and for example which one will lag your game more.
so anyone got any tut.?
Thanks :P
Reply
#2

I tested some weeks ago and while loop was slower than for loop.

pawn Код:
new
    i
;
while(i != MAX_PLAYERS)
{
    // Your code inside the loop
    i++;
}
pawn Код:
for(new i; i != MAX_PLAYERS; i++)
{
    // Your code inside the loop
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)