GameSDK optimized dedicated server config

#1
Hi guys!
We are now trying to create a multiplayer GameSDK with CryEngine. Only dedicated server (no singleplayer of local game, players can't create their own servers).
But we got a huge lags after 15+ players . And thanks to that project might be closed with publisher (no way to create the game from zero for now).

What we have:

server.cfg:

Code: Select all

sv_bandwidth= 25000 -- Bit rate on server, default = 50000, test 100000, max 2147483647
net_availableBandwidthServer = 3000 -- default = 750
-- Server optimize
--sv_DedicatedMaxRate = 0 -- 0 is no limits, max is 500 (Set the maximum update frequency (per second)if a dedicated server)
--sv_DedicatedCPUPercent = 90
--sv_DedicatedCPUVariance = 0
--sv_packetRate = 300
sv_DedicatedMaxRate 30 -- (Default: 50)
sv_packetrate 30 -- Default: 30


multiplayer.cfg

Code: Select all

-- Networking rates
cl_bandwidth = 50000 -- default = 50000
net_availableBandwidthClient = 300 -- default = 80, upstream bandwidth in kbit/s available to UDP traffic on the client
cl_packetRate = 30 -- default = 30
net_defaultPacketRate = 90 -- default = 30, default number of packets per second
net_defaultPacketRateIdle = 1 -- default = 1, default number of packets per second when idle

-- Interpolation optimize
p_net_extrapmax = 2 -- default = 0.5, The maximum amount of time the client is allowed to extrapolate the position based on last received packet.
p_net_interp = 0.25 -- default = 0.1, The amount of time which the client will lag behind received packet updates. High values result in smoother movement but introduces additional lag as a trade-off.
-- p_net_sequencefrequency = 255 -- default = 256, The frequency at which sequence numbers increase per second, higher values add accuracy but go too high and the sequence numbers will wrap round too fast


The game is lagging hard (players teleporting) with that configs or without it. Nothing helps and there is no fresh documentation about how to do it better.
But in the same time - server do not use more than 20% of system resources (8 cores, 12gb RAM).

Can anyone help with config files? And other tips, to optimize that part. I'll will really apreciate it.
I know that somewhere here exists Miscreated developer. Can some of them share their configs please? That will be just awesome.
Last edited by 3deverr on Tue Apr 04, 2017 3:26 pm, edited 1 time in total.

Re: GameSDK optimized dedicated server config

#2
Ok, suprising, but all lags was thanks to log_verbosity = 0. Set is to -1 on clients - and fps/lags gone.

Also we are fights with 32 players limit from the box. Here is the main things, that helps to break it:
- MAX_PLAYER_LIMIT at GameSDK source, by default it = 16, but in the core LOBBY limit is 64. So just change max players to 64 and its ok
- dedicated server will be crush after 32 players with that. we are fixed and post solution here https://github.com/CRYTEK/CRYENGINE/issues/174

Re: GameSDK optimized dedicated server config

#3
Updated actual configs at the first topic (it works well for now).

Also here is additional optimization for big map/players count:

Code: Select all

-- Actor visible optimize
g_actorViewDistRatio = 30 -- default = 127
e_ViewDistRatioCustom = 30 -- default = 100, bots and vehicles visible distance
g_playerLodRatio = 30 -- default = 80, players visible distance
g_corpseManager_maxNum = 5

-- Actors animations optimize
ca_ParametricPoolSize = 128 -- defaylt = 64, max animations pool size (256 good, but brakes fps)
g_distanceForceNoIk=5 -- defualt = 35
g_fpDbaManagementEnable = 0
g_hitDeathReactions_streaming = 2 -- Enables/Disables reactionAnims streaming. 0: Disabled, 1: DBA Registering-based, 2: Entity lifespan-based

-- World visible optimize
e_ViewDistRatio = 50 -- default = 75
e_ViewDistRatioDetail = 20 -- default = 35
e_TerrainLodRatio = 2 -- default = 1
e_ViewDistRatioVegetation = 30 -- default = 75

-- Physics optimize
es_MaxPhysDist = 30 -- default = 100
es_MaxPhysDistCloth = 30 -- default = 300

Who is online

Users browsing this forum: No registered users and 1 guest