From: havoc Date: Fri, 2 Jul 2010 00:20:59 +0000 (+0000) Subject: grow svbsp allocation limit much faster (*16 rather than *2) to speed up X-Git-Tag: xonotic-v0.1.0preview~230^2~217 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=348bb3f9d788a3e1c606b501c612ef0716dbcb07;p=xonotic%2Fdarkplaces.git 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 --- 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;