]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
increased bih traceline speed by nearly 50% by enabling an additional
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Mar 2011 07:08:25 +0000 (07:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Mar 2011 07:08:25 +0000 (07:08 +0000)
AABB overlap check

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

model_brush.c

index b643aa4a8e8f9c7ba2266bdea035dca9ea119a85..2ac04cdf060d707a41e515fd5538994f234dc9fb 100644 (file)
@@ -6047,7 +6047,7 @@ static void Mod_CollisionBIH_TraceLine_RecursiveBIHNode(trace_t *trace, dp_model
        for (;;)
        {
                node = bih->nodes + nodenum;
-#if 0
+#if 1
                if (!BoxesOverlap(segmentmins, segmentmaxs, node->mins, node->maxs))
                        return;
 #endif