AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is many set_task make server lag? (https://forums.alliedmods.net/showthread.php?t=162499)

DSASDFGH 07-19-2011 16:24

is many set_task make server lag?
 
:)hi, my steam friends tells many use the set_task is make server lag.

is it true?

fysiks 07-19-2011 16:56

Re: is many set_task make server lag?
 
It depends on the situation.

Diegorkable 07-19-2011 17:33

Re: is many set_task make server lag?
 
Nope, if the lags are made it's probably because of the function it is being sent to.

HBxander 07-20-2011 20:22

Re: is many set_task make server lag?
 
Depends on if you remake it every 0.1 seconds, if you do that with 100 set_tasks, it will make you lagg alot, but if its with 4 or 5 set_tasks, that is only once / round or activated on something, it doesnt matter. Not making your server lagg at all :).

Bugsy 07-20-2011 21:05

Re: is many set_task make server lag?
 
set_task isn't the most efficient means of looping/delaying code to begin with. Whether or not a lag is experienced really depends on the function being called and the interval used.


All times are GMT -4. The time now is 00:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.