netgraph: change netgraph buffer size for low memory mode

This commit is contained in:
Alibek Omarov 2021-02-01 10:06:55 +03:00
parent 652a946e09
commit 8090db2e75
1 changed files with 4 additions and 2 deletions

View File

@ -16,9 +16,11 @@ GNU General Public License for more details.
#include "common.h"
#include "client.h"
#if XASH_LOW_MEMORY
#if XASH_LOW_MEMORY == 0
#define NET_TIMINGS 1024
#else
#elif XASH_LOW_MEMORY == 1
#define NET_TIMINGS 256
#elif XASH_LOW_MEMORY == 2
#define NET_TIMINGS 64
#endif
#define NET_TIMINGS_MASK (NET_TIMINGS - 1)