Optimizing the shit out of my server

Alright, so I run a DarkRP server, ( I know… DarkRP ) it seems as though I get some lag when my server reaches above 40 players because of the CPU % going above 100. I’m currently with NFO on one of their game servers ( which i’m sure is loaded with at least 6 - 10 other people) , but I recently just bought a dedicated machine from them. Would this dedicated machine increase the performance of my server? How would I optimize my server to the best it can possibly be? What is the best tickrate ( mine is set at 22 ) ?

If you have any suggestions or want me to give more information, just ask :wink:

Thanks so much!

Maybe do you have too many addons installed

3D Car Dealer 2
Case Carry
Climb Swep 2
Cuffs
Custom HQ Boom box, stungun, ballistic
darkrp bank robbery system
darkrp fire system
darkrp government vehicle station
darkrp tow truck driver
darkrp vehicle upgrades
darkrp news cameraman
emining
driveby system
playermodel pack 1
playermodel pack 2
playermodel pack 3
growing weed plants
hitmarkes
hoverboard
itemstore
org
car pack 1
car pack 2
weapon pack 1
weapon pack 2
radio addon
rphone
secret agent addon
pointshop 2
pac 3
libk
teamsradio
ghost mod
bunch of tools
ulib
ulx
urs
vc mod
vc mod els

Holy shit…

But having a server with a bunch of addons is pretty much a must. I see huge communities with like 80 players have more than me.

Can you post your server.cfg?

Sure,

// Edit this to your liking. These values are very close to what I use
// for my own servers.

// Make sure the right people are banned
exec banned.cfg
exec banned_user.cfg
sv_kickerrornum 0 //THIS STOPS THE SERVER FROM KICKING YOU FROM ERRORS

// Name Of Server
hostname “”

// General HL Cvars
mp_fraglimit 0
mp_footsteps 1
mp_flashlight 1
sv_contact “your@email.address”
decalfrequency 60
mp_decals 100
mp_falldamage 1
sv_cheats 0
sv_maxrate 0
sv_minrate 100000
sv_maxupdaterate 99
sv_maxcmdrate 99
sv_timeout 120
sv_allowupload 0
sv_allowdownload 1
mp_falldamage 0
sv_loadingurl “”
M9KClientGasDisable 1
M9KDisablePenetration “0”
sv_ya3dmg_smoke_enabled 0
hm_enabled 1
hm_hitsound 1
zinv_maxspawn 3
con_filter_enable 1
con_filter_text_out mod_studio: MOVETYPE_FOLLOW with no model

// Rcon Stuff
rcon_password “”

//files
mapcyclefile mapcycle.txt

// disable lag compensation
//sv_unlag 1

heartbeat

// important settings inserted by NFo
sv_stats 0
sv_region 0
fps_max 0

sv_parallel_packentities 0
sv_parallel_sendsnapshot 1
net_queued_packet_thread 1
net_splitpacket_maxrate 100000

writeid
sv_password “”
log 1
tv_enable 0
sv_downloadurl “”
sbox_noclip “0”
sbox_godmode “0”
sbox_weapons “0”
sbox_plpldamage “0”
sbox_maxprops “50”
sbox_maxragdolls “0”
sbox_maxnpcs “0”
sbox_maxballoons “0”
sbox_maxeffects “0”
sbox_maxdynamite “0”
sbox_maxlamps “0”
sbox_maxthrusters “0”
sbox_maxwheels “0”
sbox_maxhoverballs “0”
sbox_maxvehicles “2”
sbox_maxbuttons “10”
sbox_maxkeypads “10”
sbox_maxemitters “0”
sbox_maxspawners “0”
sbox_maxturrets “0”
sbox_maxtextscreens “5”
M9KGasEffect “0”
sv_minupdaterate 10
sv_max_queries_sec 3
sv_max_queries_sec_global 150

Set your tickrate to 33 then get rid of all your rate settings and use these.

// Network and performance Convars
sv_maxrate 500000
sv_minrate 500000
sv_minupdaterate 10
sv_maxupdaterate 33
sv_mincmdrate 10
sv_maxcmdrate 33

Don’t fucking put anything other than ZERO ( 0 ) in your minimum settings.

Why? My settings work very well lol… No one lags on my servers. I use similar settings on all of them.

I went through every single one of my server’s addons and ‘optimized the shit’ out of them by hand. ScriptFodder addons are usually the worst perpetrators.
(rewriting net.WriteTable, rewrote entities use SetNW{type}, etc. )

So basically this?

// Network and performance Convars
sv_maxrate 500000
sv_minrate 0
sv_minupdaterate 0
sv_maxupdaterate 33
sv_mincmdrate 0
sv_maxcmdrate 33

Is the tickrate 33 okay, or would 66 be better?

only use 33 tickrate for DarkRP. You want higher tickrates for shooter gamemodes mostly.

How much impact does these actually have?
sv_minupdaterate 0
sv_maxupdaterate 33
sv_mincmdrate 0
sv_maxcmdrate 33

I’m just curious as I found out mine were set to 66. When my server has ~30 players the net_graph also shows quite high usermessages.

I’ve never really noticed much of a difference. Though I’m sure the lack of 200 ScriptFodder addons help… a lot.

Some add-ons that were coded on tick-rate of 66 will probably not work if server had set it to 33. Add-ons like WAC and GBombs 5 will need 66 specifically it in order for them to retain their functionality.

Enjoy chokes then.