From f714b6fbea441f94af304153c64aafeedeb5bc32 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 1 Feb 2022 12:45:18 +0900 Subject: [PATCH] [qwaq] Up qwaq progs heap to 2MB or 512kW (kilowatts? :P). Barely enough for vkgen to run (it runs out if auto release is run during scan_types, probably due to fragmentation). I imagine I need to look into better memory management schemes, especially since I want to make zone allocations 64-byte aligned (instead of the current 8). And it doesn't help that 16 words per allocation are dedicated to the zone management. Anyway, with this, vgken runs and produces sufficiently correct results for the rest of QF to build, so long as qfcc is not optimizing. --- ruamoko/qwaq/builtins/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/qwaq/builtins/main.c b/ruamoko/qwaq/builtins/main.c index 59080dd17..3a0561035 100644 --- a/ruamoko/qwaq/builtins/main.c +++ b/ruamoko/qwaq/builtins/main.c @@ -226,7 +226,7 @@ load_progs (progs_t *pr, const char *name) } pr->progs_name = name; pr->max_edicts = 1; - pr->zone_size = 1024*1024; + pr->zone_size = 2*1024*1024; pr->stack_size = 64*1024; PR_LoadProgsFile (pr, file, size); Qclose (file);