mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Make the -mem suggestion a little more realistic.
16M hasn't been enough for a long time.
This commit is contained in:
parent
a87ba3d0ea
commit
9b9a60aa89
1 changed files with 5 additions and 2 deletions
|
@ -451,10 +451,13 @@ Hunk_AllocName (int size, const char *name)
|
||||||
Cache_FreeLRU ();
|
Cache_FreeLRU ();
|
||||||
}
|
}
|
||||||
if (hunk_size - hunk_low_used - hunk_high_used < size) {
|
if (hunk_size - hunk_low_used - hunk_high_used < size) {
|
||||||
|
int mem = hunk_size / (1024 * 1024);
|
||||||
|
mem += 8;
|
||||||
|
mem &= ~7;
|
||||||
Cache_Profile ();
|
Cache_Profile ();
|
||||||
Sys_Error
|
Sys_Error
|
||||||
("Not enough RAM allocated. Try starting using \"-mem 16\" on "
|
("Not enough RAM allocated. Try starting using \"-mem %d\" on "
|
||||||
"the %s command line. (%d - %d - %d < %d)",
|
"the %s command line. (%d - %d - %d < %d)", mem,
|
||||||
PACKAGE_NAME, hunk_size, hunk_low_used, hunk_high_used, size);
|
PACKAGE_NAME, hunk_size, hunk_low_used, hunk_high_used, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue