Timer Efficency
#10

Quote:
Originally Posted by Jay_
Посмотреть сообщение
Do not use OnPlayerUpdate. OnPlayerUpdate gets called 10x a second, per player. Use a timer, it's much more efficient. OnPlayerUpdate shouldn't contain ANY code or VERY little.
Actually it gets called way more than 10x a second what do you think the send rate is for? From my tests an accurate way of finding out how often its called is like this....take your *_rate (onfoot, incar, weapon) from server config and divide that by 1000, for example default rate is 40 so on average its called every 25 milliseconds the only time this isn't true is when a player is standing still the rate lowers. (something I wish was never changed....in 0.2x it was called standing still just as often as running/moving) Also if you use it correctly its much more efficient.
Reply


Messages In This Thread
Timer Efficency - by BP13 - 27.08.2010, 16:29
Re: Timer Efficency - by RoBo - 08.09.2010, 18:35
Re: Timer Efficency - by BP13 - 08.09.2010, 18:51
Re: Timer Efficency - by RoBo - 08.09.2010, 19:15
Re: Timer Efficency - by nemesis- - 08.09.2010, 19:40
Re: Timer Efficency - by Jay_ - 08.09.2010, 19:51
Re: Timer Efficency - by nemesis- - 08.09.2010, 19:53
Re: Timer Efficency - by Westie - 08.09.2010, 19:53
Re: Timer Efficency - by nemesis- - 08.09.2010, 19:56
Re: Timer Efficency - by cyber_punk - 08.09.2010, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)