From: divverent Date: Sun, 20 Feb 2011 21:32:47 +0000 (+0000) Subject: CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per... X-Git-Tag: xonotic-v0.5.0~425^2~48 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=6757b5f44c13c1ab0d103ea4f9aba35d5756fba3 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 --- 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;