]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
grow svbsp allocation limit much faster (*16 rather than *2) to speed up
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Jul 2010 00:20:59 +0000 (00:20 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 3 Jul 2010 14:47:08 +0000 (16:47 +0200)
rtlight compiling on large lights

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10261 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=348bb3f9d788a3e1c606b501c612ef0716dbcb07

model_shared.c

index a4417c9a2a21b3329aaa75cda27609daf58edc90..307dab5a821ec186a226092652e39c0d315fa919 100644 (file)
@@ -3383,8 +3383,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;