shithub: qk1

Download patch

ref: 25db248ec7c939aff2ebb68311f8bfa170728bad
parent: d7e016b552696b8f5581f5093f82a598bc0033d6
author: qwx <qwx@sciops.net>
date: Thu Jul 22 13:47:10 EDT 2021

increase default memsize to 64mb

it is unlikely that qk1 would actually be run on a machine
with constrained resources at this point.  in fact, people
often suggest a memsize of 192, but it's unclear whether
these mods *actually* need that much memory.  in any case
this avoids stupid errors people could have at first
contact.

--- a/README
+++ b/README
@@ -56,13 +56,16 @@
 Memory limit
 ------------
 
-By default, qk1 allocates 12 MB of memory for its internal heap.  This amount
+By default, qk1 allocates 64 MB of memory for its internal heap.  This amount
 can be controlled via the -m command line parameter like so:
 
-	; quake -m 16
+	# same for games/qwcl, games/qwsv
+	; games/quake -m 192
 
 It is necessary to increase it when playing on larger resolutions, else qk1
-might crash with errors such as 'Hunk_Alloc: failed on 548512 bytes'.
+might crash with errors such as 'Hunk_Alloc: failed on 548512 bytes'.  Mods
+may require more memory as well.  The old default was 12 MB, so it can also
+be lowered in the unlikely case that it's necessary.
 
 
 Mouse usage
@@ -117,7 +120,7 @@
 A simple way to benchmark is to play a demo with an uncapped framerate (one
 must be provided for quakeworld beforehand):
 
-	] timedemo demo2
+	] timedemo demo3
 
 
 Audio and music
--- a/qk1.c
+++ b/qk1.c
@@ -13,7 +13,7 @@
 
 enum{
 	KB = 1024*1024,
-	Nmem = 12 * KB
+	Nmem = 64 * KB
 };
 
 static int debug;
--- a/qw/sys.c
+++ b/qw/sys.c
@@ -127,7 +127,7 @@
 	memset(q, 0, sizeof *q);
 	q->argc = com_argc;
 	q->argv = com_argv;
-	q->memsize = 16*1024*1024;
+	q->memsize = 64*1024*1024;
 
 	if(i = COM_CheckParm("-mem"))
 		q->memsize = atoi(com_argv[i+1]) * 1024*1024;