17.02.2010, 20:42
what would you say's less lag two timers with doing its own function in each of them or one timer with both function in the one callback?
Originally Posted by Joe Staff
For less lag towards the players, 2 timers that 'DO NOT' intersect eachother (or otherwise execute at the same time) so run one at '1000' ms and the other at '999' ms.
|
Originally Posted by Joe Staff
****** has made an entire tutorial and function for this kind of thing, go searching through his stuff.
|
Originally Posted by $ЂЯĢ
If you are processing functions for players then definitely OnPlayerUpdate with ticks. Otherwise one timer, two functions from my side.
|
Originally Posted by //exora
Unless you expect 500 players on your server, or you suck at scripting that you can't optimize your code, it should not be any noticable difference.
|