]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
actually the culling in
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Mar 2011 09:25:55 +0000 (09:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Mar 2011 09:25:55 +0000 (09:25 +0000)
Mod_Q1BSP_TraceLineAgainstSurfacesFindTextureOnNode is a slight speed
loss compared to having it entirely disabled...  so disable it.

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

model_brush.c

index e7a922688e854e1252b02462e2aadc96205cf8f9..499a5941c4987b1ee27059aebca21a3da4215b0a 100644 (file)
@@ -1314,8 +1314,8 @@ static const texture_t *Mod_Q1BSP_TraceLineAgainstSurfacesFindTextureOnNode(Recu
        for (i = 0;i < node->numsurfaces;i++, surface++)
        {
                // skip surfaces whose bounding box does not include the point
-               if (!BoxesOverlap(mid, mid, surface->mins, surface->maxs))
-                       continue;
+//             if (!BoxesOverlap(mid, mid, surface->mins, surface->maxs))
+//                     continue;
                // skip faces with contents we don't care about
                if (!(t->trace->hitsupercontentsmask & surface->texture->supercontents))
                        continue;