18.10.2015, 21:33
Hey ppl,
There is this question that is kinda stuck in my head and I can't really decide/findout which one is better
in general, for checks with a repetition of around ~1 sec, which one is more efficient ? checkin with OnPlayerUpdate and maybe using a timestamp variable to stop the madness of 30 updates a sec or timers ?
Examples of usage in question:
1- Speedometer
2- Usual hack checks (money/health/armour etc.)
3-Not totally related but: the SetPlayerCameraPos on OnPlayerConnect solution ?
4-Looking for a car crash
etc.
At this very moment I'm looking at a couple speedometers released on forums and some use timers, some use onplayerupdate, not sure which way I should go, all those experienced enough would love to hear your answers or even better, new suggestions on a 3rd option.
There is this question that is kinda stuck in my head and I can't really decide/findout which one is better
in general, for checks with a repetition of around ~1 sec, which one is more efficient ? checkin with OnPlayerUpdate and maybe using a timestamp variable to stop the madness of 30 updates a sec or timers ?
Examples of usage in question:
1- Speedometer
2- Usual hack checks (money/health/armour etc.)
3-Not totally related but: the SetPlayerCameraPos on OnPlayerConnect solution ?
4-Looking for a car crash
etc.
At this very moment I'm looking at a couple speedometers released on forums and some use timers, some use onplayerupdate, not sure which way I should go, all those experienced enough would love to hear your answers or even better, new suggestions on a 3rd option.