Settimers = lag? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Settimers = lag? (
/showthread.php?tid=71219)
Settimers = lag? -
CTCCoco - 30.03.2009
My gamemode have a lot of lag and I dont know why. I host in delux-host and I test with another gamemode and dont have lag, ONLY MY GAMEMODE!
Why? Too many Settimers, If you dont kill a SetTimer when somebody use it do more lag?
Thanks for all, please help me its very urgent!
Re: Settimers = lag? -
ICECOLDKILLAK8 - 30.03.2009
1) Stop spamming the forums with this question, Stick to one thread
2) Yes a lot of SetTimers can cause lag
Re: Settimers = lag? -
CTCCoco - 30.03.2009
Quote:
Originally Posted by JeNkStAX
1) Stop spamming the forums with this question, Stick to one thread
2) Yes a lot of SetTimers can cause lag
|
Sorry but nobody give me a good reason. Sorry I stop it. Thanks for all.
Re: Settimers = lag? -
Dujma - 30.03.2009
If you have many timers set them with diference of 0.001 miliseconds. Like 1000, 1001, 1002. That give enough time for the server to handle the data. And loops can be a problem in timers. If you have like two loops in fast timer that will realy lag your server...
EDIT: And don't always use your timers under OnGameModeInIt. Set them only when you need them and kill them when you are finished with checking/action...