]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
model_brush: Add a note for a performance deficit. No code changes.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:10 +0000 (19:19 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:10 +0000 (19:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12975 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index d20b70385bb0a1b6a33670227c2e2299383d3e37..f9cd4e295b52f7a0130cb100d27510a0624e910a 100644 (file)
@@ -6956,6 +6956,7 @@ static void Mod_CollisionBIH_TraceLineShared(dp_model_t *model, const frameblend
                        for (axis = 0;axis < BIH_MAXUNORDEREDCHILDREN && node->children[axis] >= 0;axis++)
                        {
                                leaf = bih->leafs + node->children[axis];
+                               // TODO: This is very expensive in Steel Storm. Framerate halved during even light combat.
                                if (!BoxesOverlap(sweepnodemins, sweepnodemaxs, leaf->mins, leaf->maxs))
                                        continue;
                                switch(leaf->type)