mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-02-02 05:32:14 +00:00
increased the zone buffer size because of temp image space
This commit is contained in:
parent
9a7ab19245
commit
ba199c4de1
1 changed files with 6 additions and 8 deletions
|
@ -44,12 +44,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define MIN_DEDICATED_COMHUNKMEGS 8
|
#define MIN_COMHUNKMEGS_DED 8 // for the dedicated server
|
||||||
#define MIN_COMHUNKMEGS 56
|
#define MIN_COMHUNKMEGS 56
|
||||||
#define DEF_COMHUNKMEGS 64
|
#define DEF_COMHUNKMEGS 64
|
||||||
#define DEF_COMZONEMEGS 24
|
#define DEF_COMZONEMEGS 32
|
||||||
#define DEF_COMHUNKMEGS_S XSTRING(DEF_COMHUNKMEGS)
|
|
||||||
#define DEF_COMZONEMEGS_S XSTRING(DEF_COMZONEMEGS)
|
|
||||||
|
|
||||||
|
|
||||||
static jmp_buf abortframe; // an ERR_DROP occured, exit the entire frame
|
static jmp_buf abortframe; // an ERR_DROP occured, exit the entire frame
|
||||||
|
@ -1355,7 +1353,7 @@ static void Com_InitHunkMemory()
|
||||||
}
|
}
|
||||||
|
|
||||||
// allocate the stack based hunk allocator
|
// allocate the stack based hunk allocator
|
||||||
const cvar_t* cv = Cvar_Get( "com_hunkMegs", DEF_COMHUNKMEGS_S, CVAR_LATCH | CVAR_ARCHIVE );
|
const cvar_t* cv = Cvar_Get( "com_hunkMegs", XSTRING(DEF_COMHUNKMEGS), CVAR_LATCH | CVAR_ARCHIVE );
|
||||||
if (com_dedicated && com_dedicated->integer)
|
if (com_dedicated && com_dedicated->integer)
|
||||||
Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_DEDICATED_COMHUNKMEGS), "256" );
|
Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_DEDICATED_COMHUNKMEGS), "256" );
|
||||||
else
|
else
|
||||||
|
@ -1364,7 +1362,7 @@ static void Com_InitHunkMemory()
|
||||||
int nMinAlloc;
|
int nMinAlloc;
|
||||||
const char* s;
|
const char* s;
|
||||||
if (com_dedicated && com_dedicated->integer) {
|
if (com_dedicated && com_dedicated->integer) {
|
||||||
nMinAlloc = MIN_DEDICATED_COMHUNKMEGS;
|
nMinAlloc = MIN_COMHUNKMEGS_DED;
|
||||||
s = "Minimum com_hunkMegs for a dedicated server is %i, allocating %i megs.\n";
|
s = "Minimum com_hunkMegs for a dedicated server is %i, allocating %i megs.\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue