A Few Questions About Timers Memory Usage
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Any function uses memory, but really not a lot! The real question is why is this so important?
Well, there's something I am working on which updates some data every so often for each player.
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
Reply


Messages In This Thread
A Few Questions About Timers Memory Usage - by Maxips2 - 27.07.2013, 18:30
Re: A Few Questions About Timers Memory Usage - by MellowHammer - 27.07.2013, 18:31
Re: A Few Questions About Timers Memory Usage - by Maxips2 - 27.07.2013, 18:35
Re: A Few Questions About Timers Memory Usage - by Maxips2 - 27.07.2013, 20:13
Re: A Few Questions About Timers Memory Usage - by Maxips2 - 27.07.2013, 20:38
Re: A Few Questions About Timers Memory Usage - by Maxips2 - 27.07.2013, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)