Make the -mem suggestion a little more realistic.

16M hasn't been enough for a long time.
This commit is contained in:
Bill Currie 2010-12-13 19:11:48 +09:00
parent a87ba3d0ea
commit 9b9a60aa89

View file

@ -451,10 +451,13 @@ Hunk_AllocName (int size, const char *name)
Cache_FreeLRU ();
}
if (hunk_size - hunk_low_used - hunk_high_used < size) {
int mem = hunk_size / (1024 * 1024);
mem += 8;
mem &= ~7;
Cache_Profile ();
Sys_Error
("Not enough RAM allocated. Try starting using \"-mem 16\" on "
"the %s command line. (%d - %d - %d < %d)",
("Not enough RAM allocated. Try starting using \"-mem %d\" on "
"the %s command line. (%d - %d - %d < %d)", mem,
PACKAGE_NAME, hunk_size, hunk_low_used, hunk_high_used, size);
}