Minor performance improvement

Don't keep searching the DRC RTree for collisions after we detect a true
(not clearance-based) collision
This commit is contained in:
Seth Hillbrand 2021-06-02 08:15:37 -07:00
parent 00ed75b891
commit 7f56ff4d42
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,10 @@ public:
actual = curActual;
pos = curPos;
}
// Stop looking after we have a true collision
if( actual <= 0 )
return false;
}
return true;