allocate 32 MiB by default

This is for the zone memory and by today's standard still a conservative choice.
This commit is contained in:
Fabian Greffrath 2020-02-17 13:52:51 +01:00
parent 9658ece4f3
commit b281cf5fa2

View File

@ -71,6 +71,9 @@
// Minimum RAM machine is assumed to have
#define MIN_RAM (7*1024*1024)
// [FG] allocate 32 MiB by default
#define DEF_RAM (32*1024*1024)
// Amount to subtract when retrying failed attempts to allocate initial pool
#define RETRY_AMOUNT (256*1024)
@ -204,7 +207,7 @@ void Z_Init(void)
{
// haleyjd: -heapsize support
int p, mb_size;
size_t size = MIN_RAM;
size_t size = DEF_RAM; // [FG] allocate 32 MiB by default
p = M_CheckParm("-heapsize");