Thread: Client Looping
View Single Post
Author Message
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 05-21-2018 , 06:03   Client Looping
Reply With Quote #1

Hi Team,

Just looking for some solid input from devs around client index looping.

I loop clients like (depending on needs):

Code:
for (int client=1; client <= MaxClients; client++)
or

Code:
 for (int client=1; client < MAXPLAYERS; client++)
I see people adding +1 to MaxClients and MAXPLAYERS which seems like a waist of CPU cycles as I would assume MaxClients and MAXPLAYERS already do +1 for optimisation.
__________________

Last edited by Neuro Toxin; 05-21-2018 at 06:10.
Neuro Toxin is offline