Posts: 31
Threads: 12
Joined: Nov 2009
Reputation:
0
I have a timer running every 700 milli seconds to update 4 textdraws for a vehicle's speedo, would it be faster to use onplayerupdate as in this timer of 700 milli seconds it loops through all players to check if there in vehicles speed etc.. what would be more efficent could some one reply that knows what there on about.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
I wouldn't use OnPlayerUpdate for something like this because it checks so fast. It wouldn't be necessary. I would have it set a timer for each player whenever they enter a vehicle.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Well, what type of server do you have and what is your max alloted players?
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
There really isn't a max amount of timers as far as I know. It's just kind of discouraged to use too many because it can cause server lag. It just kinda depends on the amount of timers, the speed at which they get called, and what the timers are doing.