27.07.2013, 20:13
Quote:
Any function uses memory, but really not a lot! The real question is why is this so important?
|
I wasn't sure if it should be done with 1 timer for all players, or 1 timer per player.
I read your thread about timers again (I read it once before) and figured it would probably be best to have 1 timer per player to let the server sync.
But then I thought that it might be bad because it may drastically increase memory usage (worst case 500 timers running at once, actually 800 or 1000).
All of this got me to the thinking again that even if it will take quite a bit of memory, its better than letting the server hang for some time every 1 second.
EDIT: I was referring to this thread: https://sampforum.blast.hk/showthread.php?tid=61322