Raised This Month: $32 Target: $400
 8% 

Client Looping


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode