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:
parent
00ed75b891
commit
7f56ff4d42
|
@ -263,6 +263,10 @@ public:
|
||||||
actual = curActual;
|
actual = curActual;
|
||||||
pos = curPos;
|
pos = curPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop looking after we have a true collision
|
||||||
|
if( actual <= 0 )
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue