]> git.rm.cloudns.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)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Jul 2010 00:20:59 +0000 (00:20 +0000)
rtlight compiling on large lights

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10261 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 2de4897a6094762e745ab253578de56c1b588d3e..1b3fc50cdda85fd38b173eabb0be975ffe3fad7c 100644 (file)
@@ -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;