From 098fe8f8d5812e922f106c25aa6a60eddba805b4 Mon Sep 17 00:00:00 2001 From: rambetter Date: Tue, 11 Jan 2011 09:49:45 +0000 Subject: [PATCH] Increasing the values of 3 constants that control how much space is reserved 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 | 4 ++-- tools/quake3/q3map2/tjunction.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/quake3/q3map2/q3map2.h b/tools/quake3/q3map2/q3map2.h index 534a9d0f..0199d653 100644 --- a/tools/quake3/q3map2/q3map2.h +++ b/tools/quake3/q3map2/q3map2.h @@ -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 diff --git a/tools/quake3/q3map2/tjunction.c b/tools/quake3/q3map2/tjunction.c index 220e9fd6..d728c185 100644 --- a/tools/quake3/q3map2/tjunction.c +++ b/tools/quake3/q3map2/tjunction.c @@ -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; -- 2.39.2