Quote:
Originally Posted by Jeroen52
I'm already familiar with the backwards for loop, but I still have to do a performance test between the two before I'll change all my code.
|
It's not the backwards loop that matters the most. I didn't want to initialize an extra variable which is why I avoided the forward loop. What matters the most is that my loop calls GetPlayerPoolSize() once only where as yours till the highest player ID connected. So basically, mine works faster.
PS : Using a list of connected players or foreach works even faster.