[Include] OnVehicleRespray for pay 'n' spray
#10

Quote:
Originally Posted by CaptainMactavish
Посмотреть сообщение
So you used this in OnPlayerUpdate being conscious that this callback is called around 30 times per second and per player?
All it does is check vehicle health - it's not 'damaging'. It's probably more efficient than a timer and loop.

People have it drilled in to their heads that using OnPlayerUpdate is BAD. It's not. Having a loop through 2000 vehicles in there is bad yes, but a single statement is not. It was added to be used, not to just sit there un-used. People complain when they use memory, and when they use CPU, but they're there to be used. I'm not saying efficiency is bad, I just think people go over the top.
Reply


Messages In This Thread
OnVehicleRespray for pay 'n' spray - by MP2 - 19.07.2012, 08:55
Re: OnVehicleRespray for pay 'n' spray - by FireCat - 19.07.2012, 09:41
Re: OnVehicleRespray for pay 'n' spray - by Vince - 19.07.2012, 09:58
Re: OnVehicleRespray for pay 'n' spray - by Glint - 19.07.2012, 10:07
Re: OnVehicleRespray for pay 'n' spray - by Kyle - 19.07.2012, 10:22
Re: OnVehicleRespray for pay 'n' spray - by Hanger - 19.07.2012, 11:41
Re: OnVehicleRespray for pay 'n' spray - by MP2 - 19.07.2012, 11:48
Re: OnVehicleRespray for pay 'n' spray - by Niko_boy - 19.07.2012, 16:23
Respuesta: OnVehicleRespray for pay 'n' spray - by CaptainMactavish - 20.07.2012, 05:10
Re: Respuesta: OnVehicleRespray for pay 'n' spray - by MP2 - 20.07.2012, 11:52
Re: OnVehicleRespray for pay 'n' spray - by Kyle - 28.07.2012, 17:48
Re: OnVehicleRespray for pay 'n' spray - by FireCat - 28.07.2012, 17:58
Re: OnVehicleRespray for pay 'n' spray - by Kyle - 29.07.2012, 11:38
Re: OnVehicleRespray for pay 'n' spray - by MP2 - 30.07.2012, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)