Settimers = lag?
#1

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!
Reply
#2

1) Stop spamming the forums with this question, Stick to one thread
2) Yes a lot of SetTimers can cause lag
Reply
#3

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.
Reply
#4

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...
Reply


Forum Jump:


Users browsing this thread: