SA-MP Forums Archive
CPU Usage - ... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CPU Usage - ... (/showthread.php?tid=346510)



CPU Usage - ... - Kyle - 28.05.2012

How can I identify where the issue of my CPU usage is. My CPU usage on Volt-Host is 18%.










Re: CPU Usage - ... - milanosie - 28.05.2012

Probably a script issue


Re: CPU Usage - ... - Kyle - 28.05.2012

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Probably a script issue
Fuck off posting crap, you did this with my other thread! READ THE QUESTION!


Re: CPU Usage - ... - MP2 - 28.05.2012

Check OnPlayerUpdate. Too much crap in there (especially things that take a while to execute such as queries and file writing/reading) can cause an increase in CPU usage.

- Mike from CnR \o


Re: CPU Usage - ... - milanosie - 28.05.2012

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Fuck off posting crap, you did this with my other thread! READ THE QUESTION!
I did what with your other thread?

And seriously, whats wrong?
How are we suposed to know WHERE in the script it is wrong,
but yeah, it is probably a script issue,

And may I ask you not to talk to me like that? I'm just trying to help.

And since your question is "where could I " and not "where in the script could I" I gave you a little tip,


Thanks for your nice response please,


Re: CPU Usage - ... - ViniBorn - 28.05.2012

The larger CPU use always happen at the same time?


Re: CPU Usage - ... - Kyle - 28.05.2012

Quote:
Originally Posted by milanosie
Посмотреть сообщение
I did what with your other thread?

And seriously, whats wrong?
How are we suposed to know WHERE in the script it is wrong,
but yeah, it is probably a script issue,

And may I ask you not to talk to me like that? I'm just trying to help.

And since your question is "where could I " and not "where in the script could I" I gave you a little tip,


Thanks for your nice response please,
I asked how can I identify where the issue is.. Not asking is it a scripting issue..

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
The larger CPU use always happen at the same time?
Yes happens all the time, even when 0 players online.

Quote:
Originally Posted by MP2
Посмотреть сообщение
Check OnPlayerUpdate. Too much crap in there (especially things that take a while to execute such as queries and file writing/reading) can cause an increase in CPU usage.

- Mike from CnR \o
This is all I got in it:




Re: CPU Usage - ... - MP2 - 28.05.2012

Show the Update(playerid) function.

Also, I think the performance profiler plugin may help: https://sampforum.blast.hk/showthread.php?tid=271129


Re: CPU Usage - ... - ViniBorn - 28.05.2012

Contact your host, can be an automated attack programmed for the same time.

I think the problem isn't OnPlayerUpdate


Re: CPU Usage - ... - Kyle - 28.05.2012

There is nothing on update apart from setting a variable, this is from profiler, the server was running for about 10 seconds...