diff --git a/engine/net_chan.cpp b/engine/net_chan.cpp index dcd52929e3..de79734e41 100644 --- a/engine/net_chan.cpp +++ b/engine/net_chan.cpp @@ -44,7 +44,7 @@ static ConVar net_chokeloopback( "net_chokeloop", "0", 0, "Apply bandwidth choke static ConVar net_maxfilesize( "net_maxfilesize", "16", 0, "Maximum allowed file size for uploading in MB", true, 0, true, 64 ); static ConVar net_compresspackets( "net_compresspackets", "1", 0, "Use compression on game packets." ); static ConVar net_compresspackets_minsize( "net_compresspackets_minsize", "1024", 0, "Don't bother compressing packets below this size." ); -static ConVar net_maxcleartime( "net_maxcleartime", "4.0", 0, "Max # of seconds we can wait for next packets to be sent based on rate setting (0 == no limit)." ); +static ConVar net_maxcleartime( "net_maxcleartime", "0.0", 0, "Max # of seconds we can wait for next packets to be sent based on rate setting (0 == no limit)." ); static ConVar net_maxpacketdrop( "net_maxpacketdrop", "5000", 0, "Ignore any packets with the sequence number more than this ahead (0 == no limit)" ); extern ConVar net_maxroutable; @@ -1823,6 +1823,10 @@ int CNetChan::SendDatagram(bf_write *datagram) m_fClearTime = m_flLatestClearTime; } } + else if (net_maxcleartime.GetFloat() == 0.0f) + { + m_fClearTime = 0.0f; + } m_nChokedPackets = 0; m_nOutSequenceNr++; diff --git a/engine/net_ws.cpp b/engine/net_ws.cpp index ecb1fb90ae..26ae8708e2 100644 --- a/engine/net_ws.cpp +++ b/engine/net_ws.cpp @@ -28,7 +28,7 @@ static ConVar net_udp_rcvbuf( "net_udp_rcvbuf", NETSTRING( UDP_SO_RCVBUF_SIZE ), static ConVar net_showsplits( "net_showsplits", "0", 0, "Show info about packet splits" ); -static ConVar net_splitrate( "net_splitrate", "1", 0, "Number of fragments for a splitpacket that can be sent per frame" ); +static ConVar net_splitrate( "net_splitrate", "2", 0, "Number of fragments for a splitpacket that can be sent per frame" ); static ConVar ipname ( "ip", "localhost", FCVAR_ALLOWED_IN_COMPETITIVE, "Overrides IP for multihomed hosts" ); static ConVar hostport ( "hostport", NETSTRING( PORT_SERVER ) , FCVAR_ALLOWED_IN_COMPETITIVE, "Host game server port" );