From d2c85ebb65156d36b29281407f0ed64625fa0ce9 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 20 Feb 2011 21:32:47 +0000 Subject: [PATCH] CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per frame; to compensate, increase max frames from 64 to 256. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10853 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6757b5f44c13c1ab0d103ea4f9aba35d5756fba3 --- server.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.h b/server.h index 5df76bfb..a345d3be 100644 --- a/server.h +++ b/server.h @@ -163,7 +163,7 @@ typedef struct server_s unsigned char csqcentityversion[MAX_EDICTS]; // legacy } server_t; -#define NUM_CSQCENTITIES_PER_FRAME 1024 +#define NUM_CSQCENTITIES_PER_FRAME 256 typedef struct csqcentityframedb_s { int framenum; @@ -247,7 +247,7 @@ typedef struct client_s unsigned char csqcentityscope[MAX_EDICTS]; unsigned int csqcentitysendflags[MAX_EDICTS]; -#define NUM_CSQCENTITYDB_FRAMES 64 +#define NUM_CSQCENTITYDB_FRAMES 256 unsigned char csqcentityglobalhistory[MAX_EDICTS]; // set to 1 if the entity was ever csqc networked to the client, and never reset back to 0 csqcentityframedb_t csqcentityframehistory[NUM_CSQCENTITYDB_FRAMES]; int csqcentityframehistory_next; -- 2.39.2