]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
increased maxtempentities from 512 to 4096, this affects how many csqc
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 03:44:55 +0000 (03:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 03:44:55 +0000 (03:44 +0000)
entities can be renderable at once (need to make this grow instead)

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

cl_main.c

index 4bd3308704319876ed1bf2f35580838cd2580d78..7e25568b15ba83cf2af04dd892868aa45744b655 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -2216,7 +2216,7 @@ void CL_Init (void)
        r_refdef.scene.maxentities = MAX_EDICTS + 256 + 512;
        r_refdef.scene.entities = (entity_render_t **)Mem_Alloc(cls.permanentmempool, sizeof(entity_render_t *) * r_refdef.scene.maxentities);
 
-       r_refdef.scene.maxtempentities = 512;
+       r_refdef.scene.maxtempentities = 4096; // FIXME: make this grow
        r_refdef.scene.tempentities = (entity_render_t *)Mem_Alloc(cls.permanentmempool, sizeof(entity_render_t) * r_refdef.scene.maxtempentities);
 
        CL_InitInput ();