[OPU question] Which one is better?
#9

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
OnPlayerUpdate is called approximately 33 times per second.
Actually.. I decided to test this, as I was curious.

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;
}
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.
Reply


Messages In This Thread
[OPU question] Which one is better? - by newbienoob - 06.04.2013, 13:33
Re: [OPU question] Which one is better? - by iJumbo - 06.04.2013, 13:35
Re: [OPU question] Which one is better? - by MP2 - 06.04.2013, 13:45
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 13:53
Re: [OPU question] Which one is better? - by Threshold - 06.04.2013, 13:56
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 14:03
Re: [OPU question] Which one is better? - by SuperViper - 06.04.2013, 14:07
Re: [OPU question] Which one is better? - by newbienoob - 06.04.2013, 14:15
Re: [OPU question] Which one is better? - by MP2 - 06.04.2013, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)