From e1ef3d7080d6c91c6f0dde4e63c1e0cacb4e254e Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 19 Mar 2007 14:10:19 +0000 Subject: [PATCH] added leaf culling using the shadow-caster frustum, this got a very small gain git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6999 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gl_rsurf.c b/gl_rsurf.c index 1510ffe8..b507c46a 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -601,6 +601,8 @@ void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t *node) node = node->children[sides - 1]; } } + if (!r_shadow_compilingrtlight && R_CullBoxCustomPlanes(node->mins, node->maxs, r_shadow_rtlight_numfrustumplanes, r_shadow_rtlight_frustumplanes)) + return; leaf = (mleaf_t *)node; if (info->svbsp_active) { -- 2.39.2