06.04.2013, 14:58
Actually.. I decided to test this, as I was curious.
I ran this, alone on my local server:
Couldn't get more than 25 updates per second (while running around shooting Tec9's). Got max 23 while flying around in a hydra shooting rockets and shit. I managed to get to 35 by spamming a load of keys, but I doubt everyone runs around doing that.
I never realised it was called this much. I thought perhaps 10 or so. It's only ~2 when you're on foot and stationary.
I'd say it's 22 on average.
P.S. It's millisecond, not milasecond.
I ran this, alone on my local server:
pawn Код:
#include a_samp
#define DEBUG true
#include debug
new time;
new calls;
public OnPlayerUpdate(playerid)
{
if(time != gettime())
{
time = gettime();
Debug_SCMFORMAT("OPU calls this second: %i", calls); // This is a custom macro/function I made which acts like printf for SCMs
calls = 0;
}
calls++;
return 1;
}
I never realised it was called this much. I thought perhaps 10 or so. It's only ~2 when you're on foot and stationary.
I'd say it's 22 on average.
P.S. It's millisecond, not milasecond.