02.01.2012, 18:42
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
I was also told this might be the reason, but I'm unsure how to fix this.
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.
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;
}
pawn Code:
forward ChipsUpdate(playerid);
OnPlayerConnect
SetTimerEx("ChipsUpdate",2000,1,"i",playerid);
public ChipsUpdate(playerid)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,jChips[playerid]);
return 1;
}
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.