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:
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
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.