Lag settings

Post here if you need help setting up your server, etc.
Post Reply
User avatar
-=VcL.Rajinn
Round Winner
Posts: 242
Joined: Fri Aug 29, 2008 9:35 pm

Lag settings

Post by -=VcL.Rajinn »

I was wondering if you guys could help me explain server settings that make the server more stable/lag free. right now i have lag_credit set to 0 (from what i read on a topic posted by z-man, this setting makes anyones bad connection their own problem instead of lagging the rest of the people)

I also have dedicated_fps set to 100, from what i understood on the wiki, this makes the server not miss a beat.

and i also deleted max_in/out_rate to disable bandwidth limitations...

so far so good, servers are quite stable and smooth, but im wondering what else i can do to make them a little bit nicer. thanks for the help!
Image
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Lag settings

Post by Z-Man »

-=VcL.Rajinn wrote:I was wondering if you guys could help me explain server settings that make the server more stable/lag free. right now i have lag_credit set to 0 (from what i read on a topic posted by z-man, this setting makes anyones bad connection their own problem instead of lagging the rest of the people)
While that is correct, it's IMHO the opposite of what a nice lag-free server would be. Every connection has hickups every once in a while, and lag credit protects against lag slides caused by that.
-=VcL.Rajinn wrote:I also have dedicated_fps set to 100, from what i understood on the wiki, this makes the server not miss a beat.
That setting has more to do with simulation accuracy than lag compensation. The server processes packets from the client the moment they arrive either way (unless it's busy simulating at that point).
-=VcL.Rajinn wrote:and i also deleted max_in/out_rate to disable bandwidth limitations...
You mean, you set them really high? Deleting them from the configuration puts them at the default values. Those are your main settings affecting actual lag caused by packets hanging around in the outbound queue for too long. The other settings all only shift lag around.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Indeed, if you "make someone else's lag their own problem", you've just made lag everybody's problem, because everybody experiences it. :) High pings generally don't affect other people, at least not with default settings.

Also, if dedicated_fps is too low, lag becomes more of a problem due to simulation inaccuracy. The recommendation on the wiki is about getting a more stable server under hardware limitations (I know because I wrote it :) ). In that case, reducing server simulation steps improves performance for a computer with limited CPU speeds. If you have a fast CPU, you get a better server by allowing the server to run as much as it can. In fact, the ideal situation is the server is allowed to consume all CPU time, but the CPU is so fast that the server never needs more than 10% CPU time for its periodic spikes, but hovers around 2-5% all the time.

Bandwidth limitations are similar. You're safe to limit them a little more than the default limits, but again, if you limit too much, you prevent enough information from being sent, and therefore lag becomes more of a problem.

Other settings that affect lag that you should consider: RUBBER. :) It's no coincidence that most of the lag complainers are also high rubber fans. Rubber is one of those settings where, when set too high, creates lag problems that don't need to be there, and when set to low, exacerbates existing lag problems. The ideal rubber setting is somewhere in between. Keep in mind that rubber is all about allowing people to get close enough to a wall that they can turn and accelerate (since that's how the game works), but kills them if they take too long to turn. Any use of rubber to accomplish something different is an abuse of rubber, and you should expect consequences. Since rubber exists as a tool to deal with lag, your best bet is to use it that way.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
-=VcL.Rajinn
Round Winner
Posts: 242
Joined: Fri Aug 29, 2008 9:35 pm

Post by -=VcL.Rajinn »

Thanks luci, and z-man.

You're in a good mood luci :)

that helped a bunch actually

btw, can dedicated_fps be set to anything above 100?
Image
Post Reply