Quote:
Originally Posted by nergal
is there even a performance difference between incrementing of decrementing?
plus, is there more performance speed to pre or post inc/dec-rement?
|
No not really mainly because the index's can be spread out like so
0 - Console
1 - Player 1
2 -
3 - Player 4
4 - Player 8
So if you continue on until you find an empty slot and cancel the loop it will stop at index 2 and skip 3 and 4. So it's a good idea to keep going through the loop as normal.
Unless for some reason you want to keep track of the highest known client index that you have had connected to the server.