Need help with server.cfg

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
mavericks
New to forums
New to forums
Posts: 7
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jun 08, 2015 5:40 pm

Need help with server.cfg

Post by mavericks »

Currently have a full machine and run about 3 servers, only 2 of them get a lot of players up to 50+ usually around 57-61 and it starts getting these lag spikes and right when you spawn into the server it lags for like 20 seconds and says server connection timed out or whatever, i asked NFO and they told me to change this

sv_maxrate 35000
sv_minrate 0
sv_maxupdaterate 20
sv_maxcmdrate 20

That is also what i currently have along with 33 tickrate.

I need this to be configured to the best as possible so theres a lot less lag, if theres any way of doing that, thanks :)! I also dont have many addons and run the base DarkRP gamemode on both servers. If you own a large community and want to help me out that would be great!
mavericks
New to forums
New to forums
Posts: 7
Joined: Mon Jun 08, 2015 5:40 pm

Re: Need help with server.cfg

Post by mavericks »

This is also a garrysmod server
stickz

Re: Need help with server.cfg

Post by stickz »

Is there any reason why you're not forcing higher values and packets to be in-sync with the tick-rate?

Code: Select all

sv_maxrate 0
sv_minrate 10000
sv_minupdate 33
sv_mincmdrate 33
sv_maxupdaterate 34
sv_maxcmdrate 34
mavericks
New to forums
New to forums
Posts: 7
Joined: Mon Jun 08, 2015 5:40 pm

Re: Need help with server.cfg

Post by mavericks »

could you tell me the settings if i use 16 tickrate ? shouldn't i keep minrate 0 ..
stickz

Re: Need help with server.cfg

Post by stickz »

mavericks wrote:could you tell me the settings if i use 16 tickrate ? shouldn't i keep minrate 0 ..
You should never use lower than a 30-33 tick-rate on the source engine. I think you got it backwards; Higher tick-rates mean better performance, assuming your hosting has enough resources to accommodate it. By personal preference, I never use lower than a 60 tickrate, but some people have a legitimate purpose for using 30-33 ie. with higher player counts.

The settings you posted are forcing your clients to run lower networking specifications; specially interms of the max values. You can keep minrate at zero at if you like, which I believe goes to some sort of default setting. I was just stating a personal preference for forcing clients to run higher networking specifications. (which has pros and cons)

Edit: It's best to set your maxcmd and maxupdate to the tickrate + 1.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Need help with server.cfg

Post by soja »

stickz wrote:
mavericks wrote:could you tell me the settings if i use 16 tickrate ? shouldn't i keep minrate 0 ..
You should never use lower than a 30-33 tick-rate on the source engine. I think you got it backwards; Higher tick-rates mean better performance, assuming your hosting has enough resources to accommodate it. By personal preference, I never use lower than a 60 tickrate, but some people have a legitimate purpose for using 30-33 ie. with higher player counts.

The settings you posted are forcing your clients to run lower networking specifications; specially interms of the max values. You can keep minrate at zero at if you like, which I believe goes to some sort of default setting. I was just stating a personal preference for forcing clients to run higher networking specifications. (which has pros and cons)

Edit: It's best to set your maxcmd and maxupdate to the tickrate + 1.
Setting tickrates as low as 16 is common practice for large GMOD servers.

@OP, I recommend 22 tick for RP servers. I run a 90 slot Purge server on the E3-1271v3 here at 22-tick, and it performs well.

Here are the recommended config settings for a 22-tick server:

sv_minrate 100000
sv_maxrate 0
net_splitpacket_maxrate 150000
sv_mincmdrate 22
sv_minupdaterate 22
sv_maxcmdrate 22
sv_maxupdaterate 22
Not a NFO employee
Post Reply