Question about which is faster and less cpu usage?
#8

Quote:
Originally Posted by pds2012
Посмотреть сообщение
what do you mean "They both do different things !" ? i know its different but. if you we're me. which method are you gonna use? or if there is a code much better than the one i have

EDIT

talking about the first one i did undef MAX_PLAYERS and define it again so i do have this at top of my script

pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYESR (32)
If you're not expecting more than 32 players on your server, the second one is okay. The first one might not be that useful, as you're calling this function every second with little profit. I also don't expect there will be 32 cuffed players each 25 seconds. Probably not more than 5? 5 timers are not that big of a deal.
Reply


Messages In This Thread
Question about which is faster and less cpu usage? - by Patrick - 22.03.2013, 21:27
Re: Question about which is faster and less cpu usage? - by park4bmx - 22.03.2013, 21:50
Re: Question about which is faster and less cpu usage? - by Patrick - 22.03.2013, 21:54
Re: Question about which is faster and less cpu usage? - by Rock - 22.03.2013, 21:58
Re: Question about which is faster and less cpu usage? - by Babul - 22.03.2013, 22:27
Re: Question about which is faster and less cpu usage? - by MP2 - 22.03.2013, 22:28
Re: Question about which is faster and less cpu usage? - by Patrick - 22.03.2013, 22:32
Re: Question about which is faster and less cpu usage? - by Basssiiie - 22.03.2013, 23:07
Re: Question about which is faster and less cpu usage? - by DarkPower - 22.03.2013, 23:12
Re: Question about which is faster and less cpu usage? - by Patrick - 22.03.2013, 23:14

Forum Jump:


Users browsing this thread: 4 Guest(s)