One "global" timer or "Per-player" timer?
#3

I suggest making a global timer for the one reason you mentioned - less total of timers. Server doesn't have to struggle to keep 100+ (assuming 100 players connected) timers in a queue and you have shorter function(s) execution time, leaving you with enough "processing power" to make some heavy calculations, if you must.
As for the "conversion" I think you're covered here, just make sure not to define variables in a loop.
Reply


Messages In This Thread
One "global" timer or "Per-player" timer? - by Kyance - 15.11.2014, 06:39
Re: One "global" timer or "Per-player" timer? - by Bakr - 15.11.2014, 08:23
Re: One "global" timer or "Per-player" timer? - by Virtual1ty - 15.11.2014, 08:25
Re : One "global" timer or "Per-player" timer? - by S4t3K - 15.11.2014, 09:13
Re: One "global" timer or "Per-player" timer? - by Bakr - 15.11.2014, 09:44
Re: One "global" timer or "Per-player" timer? - by Kyance - 15.11.2014, 11:47
Re: One "global" timer or "Per-player" timer? - by Bakr - 15.11.2014, 12:35
Re: One "global" timer or "Per-player" timer? - by Threshold - 15.11.2014, 14:31
Re: One "global" timer or "Per-player" timer? - by Kyance - 15.11.2014, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)