HIGH CPU usage
#1

I really need to know what to do, I'm using 127% CPU usage on Volt.

I need to know where to start what to look for etc.

I'm converting everything into zcmd atm (I was told to do).

Removed everything under onplayerupdate but
pawn Code:
public OnPlayerUpdate(playerid)
    {
        new strings[15];
        format(strings, 15, "%d/100",GetOnLinePlayers());
        TextDrawSetString(players, strings);
        TextDrawShowForPlayer(playerid, players);
        return 1;
    }
I was also told this might be the reason, but I'm unsure how to fix this.

pawn Code:
forward ChipsUpdate(playerid);

OnPlayerConnect
SetTimerEx("ChipsUpdate",2000,1,"i",playerid);

public ChipsUpdate(playerid)
{
    ResetPlayerMoney(playerid);
        GivePlayerMoney(playerid,jChips[playerid]);
    return 1;
}
Can anyone lead me to a direction to what I could to decrease CPU usage?

It gets really high, like objects start to not stream players start to get lagged out with about 90 players online. Under 90 it works fine.
Reply


Messages In This Thread
HIGH CPU usage - by Oh - 02.01.2012, 18:42
Re: HIGH CPU usage - by DarkKillerWithPride<3 - 02.01.2012, 18:49
Re: HIGH CPU usage - by Oh - 02.01.2012, 18:52
Re: HIGH CPU usage - by Thunderbolt - 02.01.2012, 19:21
Re: HIGH CPU usage - by Babul - 02.01.2012, 19:25
Re: HIGH CPU usage - by woot - 02.01.2012, 19:27
Re: HIGH CPU usage - by Bakr - 02.01.2012, 19:41
Re: HIGH CPU usage - by Steven82 - 02.01.2012, 19:49
Re: HIGH CPU usage - by Bakr - 02.01.2012, 19:51
Re: HIGH CPU usage - by BlackWolf120 - 02.01.2012, 20:03

Forum Jump:


Users browsing this thread: 2 Guest(s)