View Single Post
Author Message
Xiaminou
Junior Member
Join Date: Apr 2017
Old 10-19-2018 , 08:26   Empires: Buffer Overflow Optimizations?
Reply With Quote #1

I own a server on Empires which uses Source Engine. We've recently come across a problem which occurs when there's too much data being sent at once which causes clients to get disconnected with a Buffer Overflow error.
This occurs most often when people use voice, but not only, as Empires is a game that uses a lot of entities and complex interactions between them.

I would like to know if there are any server side optimizations that I could apply in order to limit the amount of Buffer Overflows. Disabling voice is not an option as it is required to play the game properly.
How do other games deal with the Buffer Overflows problems?

Here's what I have so far:
Code:
sv_maxrate 0					//The maximum bytes/sec the server will send to the client.
sv_minrate 1000000				//value is in bytes/sec. Overrides the client's rate setting if it is less than sv_minrate.
sv_minupdaterate 33				//The minimum amount of updates the server will send to the client. Change this to what your tickrate is.
sv_maxupdaterate 66				//The maximum amount of updates the server will send to the client. Change this to what your tickrate is.
sv_mincmdrate 33				//The minimum amount of updates the client can send to the server. Change this to what your tickrate is. 
sv_maxcmdrate 66				//The maximum amount of updates the client can send to the server. Change this to what your tickrate is.
net_splitpacket_maxrate 1048576			//
net_splitrate 2					//Maximum number of fragments per frame.
fps_max 0
net_maxcleartime 0.01 				//Max # of seconds we can wait for next packets to be sent based on rate setting (0 == no limit).
sv_parallel_sendsnapshot 1			//controls whether the sending of network data is done on the main thread (when set to zero) or on worker threads (when set to one).

Last edited by Xiaminou; 11-08-2018 at 19:11.
Xiaminou is offline