From 348bb3f9d788a3e1c606b501c612ef0716dbcb07 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 2 Jul 2010 00:20:59 +0000 Subject: [PATCH] grow svbsp allocation limit much faster (*16 rather than *2) to speed up rtlight compiling on large lights git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10261 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_shared.c b/model_shared.c index 2de4897a..1b3fc50c 100644 --- a/model_shared.c +++ b/model_shared.c @@ -3471,8 +3471,8 @@ static void Mod_GenerateLightmaps_CreateLights_ComputeSVBSP(dp_model_t *model, l Mod_GenerateLightmaps_CreateLights_ComputeSVBSP_InsertSurfaces(model, &svbsp, mins, maxs); if (svbsp.ranoutofnodes) { - maxnodes *= 2; - if (maxnodes >= 1<<22) + maxnodes *= 16; + if (maxnodes > 1<<22) { Mem_Free(nodes); return; -- 2.39.2