]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Increasing the values of 3 constants that control how much space is reserved
authorrambetter <rambetter>
Tue, 11 Jan 2011 09:49:45 +0000 (09:49 +0000)
committerrambetter <rambetter>
Tue, 11 Jan 2011 09:49:45 +0000 (09:49 +0000)
for the stack and/or static memory for holding arrays of structures.
MAX_ORIGINAL_EDGES changed from 0x10000 to 0x20000 (x2 increase).
MAX_MAP_BRUSHES changed from 0x8000 to 0x10000 (x2 increase).
MAX_MAP_DRAW_VERTS changed from 0x80000 to 0x100000 (x2 increase).
This is pertaining to q3map2 only.
There is a real-world case where increasing these constants is needed.
That case is when compiling Icy World for Urban Terror.
Besides that, increasing these does not hurt anything (other than requiring
more memory).

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@422 8a3a26a2-13c4-0310-b231-cf6edde360e5

tools/quake3/q3map2/q3map2.h
tools/quake3/q3map2/tjunction.c

index 534a9d0f249e04f54bedf84cb14d76e754d345c1..0199d65302302e7e19eb4e33410858ca705e56cf 100644 (file)
@@ -309,7 +309,7 @@ abstracted bsp file
 
 /* ok to increase these at the expense of more memory */
 #define        MAX_MAP_MODELS                  0x400
-#define        MAX_MAP_BRUSHES                 0x8000
+#define        MAX_MAP_BRUSHES                 0x10000
 #define        MAX_MAP_ENTITIES                0x1000          //%     0x800   /* ydnar */
 #define        MAX_MAP_ENTSTRING               0x80000         //%     0x40000 /* ydnar */
 #define        MAX_MAP_SHADERS                 0x800           //%     0x400   /* ydnar */
@@ -328,7 +328,7 @@ abstracted bsp file
 #define        MAX_MAP_VISIBILITY              0x200000
 
 #define        MAX_MAP_DRAW_SURFS              0x20000
-#define        MAX_MAP_DRAW_VERTS              0x80000
+#define        MAX_MAP_DRAW_VERTS              0x100000
 #define        MAX_MAP_DRAW_INDEXES    0x80000
 
 #define MAX_MAP_ADVERTISEMENTS 30
index 220e9fd660c9d3622b81d63b2b124cb02de44d16..d728c185b2611ad93b7f4fda7008eb860680139e 100644 (file)
@@ -63,7 +63,7 @@ typedef struct {
        bspDrawVert_t   *dv[2];
 } originalEdge_t;
 
-#define        MAX_ORIGINAL_EDGES      0x10000
+#define        MAX_ORIGINAL_EDGES      0x20000
 originalEdge_t originalEdges[MAX_ORIGINAL_EDGES];
 int                            numOriginalEdges;