Best way to optimize (i < MAX_PLAYERS )
#5

Redefining MAX_PLAYERS is a good way to start. I reckon that a plain player loop would be faster than foreach if the server is full or nearly full all the time because there is no additional processing overhead from foreach in that case. But if your server isn't always full then foreach is probably the way to go. The poolsize loop is a viable alternative if you do not want to use foreach.
Reply


Messages In This Thread
Best way to optimize (i < MAX_PLAYERS ) - by iulicxd - 09.01.2016, 21:32
Re: Best way to optimize (i < MAX_PLAYERS ) - by lucamsx - 09.01.2016, 21:35
Re: Best way to optimize (i < MAX_PLAYERS ) - by Akbaig - 09.01.2016, 21:44
Re: Best way to optimize (i < MAX_PLAYERS ) - by ikey07 - 09.01.2016, 21:52
Re: Best way to optimize (i < MAX_PLAYERS ) - by Vince - 09.01.2016, 21:52
Re: Best way to optimize (i < MAX_PLAYERS ) - by AbyssMorgan - 10.01.2016, 05:16
Re: Best way to optimize (i < MAX_PLAYERS ) - by Mencent - 10.01.2016, 09:56

Forum Jump:


Users browsing this thread: 2 Guest(s)