25.08.2010, 22:29
Quote:
Why is there a timer? What purpose does that serve? Firstly why do you need a looping function at all? Why not use OnPlayerUpdate?
|
A lot of people appear to be confused about OnPlayerUpdate (I'm not criticising you directly, I'm aware of your views on optimization). The callback is called approximately 10 times per second, per-player. I really don't think it would be a good idea to include ANYTHING in this callback, let alone anything as intense as this. I really think implementing this callback in the first place was an awful idea -- it's ruined many scripts and even bottlenecked servers. I've seen people posting scripts which included MySQL / SQLite queries in the callback.
Use timers people!