too much CPU usage!? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: too much CPU usage!? (
/showthread.php?tid=363475)
too much CPU usage!? -
Oscii - 27.07.2012
Hello.
I have recently been told by my house that i am abusing CPU or the usage is too high, but i dont understand what an earth could be making my script use very high usage.
Its a ravens roleplay edit,
Anyone know most causes of High CPU usage?
AW: too much CPU usage!? -
CamP Lopez - 27.07.2012
No sorry i have no idea, whats the name of the script?
AW: too much CPU usage!? -
CamP Lopez - 27.07.2012
Maybe Screenshots of what you are seeing could help us?
Re: too much CPU usage!? -
Oscii - 27.07.2012
Screenshots of what?
A CPU overloading?
Re: too much CPU usage!? -
Jake187 - 28.07.2012
Quote:
Originally Posted by Oscii
Screenshots of what?
A CPU overloading?
|
lol don't listen to him hes just ... Anyways timers are number one key for CPU usage, so if you have to many timers it's going to cause a lot of CPU. Another is saving, you need to set up your gamemode to save only during certain points like a payday, when somebody is given money theirs and the person who gave the money saves, buying a property etc. Because the issue is each time you have a account saving ever second it add's up to quite a big of over usage.
Another is I would avoid edit's and make your own scratch made, no matter what edit's have lots of issues regarding bad scripting causing CPU usage. I remember when we used PR-RP 9.5 it was basically all done by us but the things left in from penLS caused our CPU to jump to 50-75% on a Duel Core 3.2GHz when 250 players online. Now on our scratch made if 250 players are online it hits 4% on a Duel Core 3.0GHz.
Hope it helps.
Re: too much CPU usage!? -
Oscii - 28.07.2012
I see, thank you very much Jake for the explanation i will look into these things.
+1 rep for you.