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

the first method, i.e. one 1000ms timer running + doing a plain MAX_PLAYERS loop, is far more efficient than having 500 timers, where the overhead is needless to mention.
may i suggest to change one part into: (2nd edit, there needs to be >0, not >1 lol)
pawn Код:
if(CuffTime[i] > 0)
        {
            CuffTime[i] --;
        }
        else //this wont change any result nor behavior here, but its stable and easier to read
        {
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: 5 Guest(s)