Timer and CPU/RAM Load statistic
#1

Hi all!

The timers, use more CPU or more RAM? I imagine CPU..

So..

If i would run a cycle like the following (is an example written now):

Код:
DoCheck(playerid)
{
    new Float:x, Float:y, Float:z;
    new Float:m, Float:n, Float:o;
    GetPlayerPos(playerid, x, y, z);

    foreach(Player, i)
    {
        GetPlayerPos(i,m,n,o)
        if (m <= x)
        {
    	    // DO SOMETHING //
        }
    }
}
each 500ms or 1s...

How many this would impact on the server resources?

Regardsss
Reply
#2

It depends from server to server. Every script is different and there will be a different CPU, RAM usage for everything.
Run the code and see it yourself.
Reply
#3

Is just an idea now.. I need a lot of code to reach this point.. Let's see when i do it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)