From: <Kha...@us...> - 2008-05-17 16:45:32
|
Revision: 1521 http://planeshift.svn.sourceforge.net/planeshift/?rev=1521&view=rev Author: Khakilord Date: 2008-05-17 08:53:41 -0700 (Sat, 17 May 2008) Log Message: ----------- Increased MTU to 1400 from 515, assumes that most of our players are no longer on dialup. - Halved the packet resend timeout to 1.5 seconds. This should improve network lag. Modified Paths: -------------- trunk/src/common/net/netpacket.h Modified: trunk/src/common/net/netpacket.h =================================================================== --- trunk/src/common/net/netpacket.h 2008-05-17 15:36:03 UTC (rev 1520) +++ trunk/src/common/net/netpacket.h 2008-05-17 15:53:41 UTC (rev 1521) @@ -29,11 +29,11 @@ enum { PKTSIZE_ACK = 0, // 0 pktsize means ACK pkt - PKTMAXLATENCY = 3000, // 500 mseconds till packet resent + PKTMAXLATENCY = 1500, // 1500 mseconds till packet resent FLAG_RESEND = 0x04, // this is a resent packet, so must not be merged FLAG_MULTIPACKET = 0x08, // priority bit 8 is multipacket /// MAXPACKETSIZE includes header length ( sizeof(struct psNetPacket) ) - MAXPACKETSIZE = 515 // 515 bytes is max size of network packet + MAXPACKETSIZE = 1400 // 1400 bytes is max size of network packet }; /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |