Browse Source

lowmemory: remove datagram limit

pull/2/head
mittorn 5 years ago
parent
commit
a1db6c6a9b
  1. 2
      engine/common/net_ws.h
  2. 6
      engine/common/netchan.h

2
engine/common/net_ws.h

@ -32,8 +32,6 @@ typedef enum @@ -32,8 +32,6 @@ typedef enum
#define MAX_INIT_MSG 0x20000 // max length of possible message
#if XASH_LOW_MEMORY == 2
#define MAX_INIT_MSG 0x8000
#define MAX_DATAGRAM 1024
#define MAX_MULTICAST 1024
#endif
// net packets type
#define NET_HEADER_OUTOFBANDPACKET -1

6
engine/common/netchan.h

@ -89,9 +89,9 @@ GNU General Public License for more details. @@ -89,9 +89,9 @@ GNU General Public License for more details.
#define NETSPLIT_HEADER_SIZE 18
#if XASH_LOW_MEMORY == 2
#define MULTIPLAYER_BACKUP 4 // how many data slots to use when in multiplayer (must be power of 2)
#define SINGLEPLAYER_BACKUP 4 // same for single player
#define NUM_PACKET_ENTITIES 32 // 170 Mb for multiplayer with 32 players
#define MULTIPLAYER_BACKUP 4 // breaks protocol in legacy mode, new protocol status unknown
#define SINGLEPLAYER_BACKUP 4
#define NUM_PACKET_ENTITIES 32
#define MAX_CUSTOM_BASELINES 8
#define NET_MAX_FRAGMENT 32768
#endif

Loading…
Cancel
Save