Optimizing MAX_PLAYERS?
#8

Quote:
Originally Posted by oMa37
Посмотреть сообщение
And what's wrong with using foreach or GetPlayerPoolSize?
As stated, I got no clue about the foreach structure, however, on the "GetPlayerPoolSize" wiki - according to the description:


Quote:

Description:
Gets the highest playerid currently in use on the server.

Taking the previous example into consideration, if IDs (0,1,2,3) join the server, and then ID(0,1) leave, the GetPlayerPoolSize (if I'm not mistaken) would return a value of 3.
Meaning you'd run your loop an extra 2 times for nothing and my aim is to get the best possible optimization.
Reply


Messages In This Thread
Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 18:58
Re: Optimizing MAX_PLAYERS? - by Konstantinos - 19.12.2016, 19:02
Re: Optimizing MAX_PLAYERS? - by BloodMaster - 19.12.2016, 19:02
Re: Optimizing MAX_PLAYERS? - by PrO.GameR - 19.12.2016, 19:04
Re: Optimizing MAX_PLAYERS? - by iLearner - 19.12.2016, 19:06
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:07
Re: Optimizing MAX_PLAYERS? - by oMa37 - 19.12.2016, 19:10
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:14
Re: Optimizing MAX_PLAYERS? - by Konstantinos - 19.12.2016, 19:22
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)