Forum

> > CS2D > General > Will my server lag if there are too much scripts?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Will my server lag if there are too much scripts?

7 replies
To the start Previous 1 Next To the start

old Re: Will my server lag if there are too much scripts?

DC
Admin Off Offline

Quote
the simple answer to this questions is: yes, your server will lag with a big number of scripts.

however it's actually much more complicated. here are some facts:

• the size of your script does NOT really matter. there can be a 1 kb script which leads to horrible lags and a 1 mb script which runs smoothly without any lags!

• it depends on the actions you perform. every Lua or CS2D command which does something which is directly visible to clients like showing text, playing sounds, killing players, giving money or health, changing positions etc. will cause additional traffic! you can easily cause high lags by using these commands too frequently!

• the other thing which can cause lags is a long Lua script execution time. this can happen when you execute very long or complicated scripts or scripts with long loops.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview