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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CPU Usage (/showthread.php?tid=171789)



CPU Usage - Scarface~ - 27.08.2010

My script is using to much CPU and the host is getting conserned, whats the best way to lower the ammount of CPU i use, is it timers that cause it ?


Re: CPU Usage - Adil - 27.08.2010

Yes, it can be timers, depending on interval timings of the Timer, but there are many more things that can cause over usage of the CPU. Make your arrays accurate to the memory actually needed for the function. Finish the bugs in your script. Take a look at this: https://sampforum.blast.hk/showthread.php?tid=55261


Re: CPU Usage - Scarface~ - 27.08.2010

Yup, i've use that by ****** and reduced some timers but theres still problems