]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 25 Mar 2011 21:07:31 +0000 (22:07 +0100)
AABB overlap check

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10956 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=afe0fd7999c486e0699fefb64ffcad97536a6dd8

model_brush.c

index 71c55bcccc7eed2ac3b0c4e2b3a543cfda68fd4b..d28fbb05857cb8fdfe5878a83a6559a6d805eba9 100644 (file)
@@ -6069,7 +6069,7 @@ static void Mod_CollisionBIH_TraceLine_RecursiveBIHNode(trace_t *trace, dp_model
        while (nodenum >= 0)
        {
                node = bih->nodes + nodenum;
-#if 0
+#if 1
                if (!BoxesOverlap(segmentmins, segmentmaxs, node->mins, node->maxs))
                        return;
 #endif