]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Feb 2011 21:32:47 +0000 (21:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Feb 2011 21:32:47 +0000 (21:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10853 d7cf8633-e32d-0410-b094-e92efae38249

server.h

index 5df76bfbdf3e7383753cf9108cab07f1851d943f..a345d3bea630a7549fcf6f6d881b9f2d274681e5 100644 (file)
--- 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;