PNS: even more free performance

If this doesn't work, we have bigger problems
This commit is contained in:
Jon Evans 2021-04-18 09:50:06 -04:00
parent 2d9bac804c
commit ec6995697d
1 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ public:
PNS::CONSTRAINT* aConstraint ) override;
virtual wxString NetName( int aNet ) override;
int ClearanceEpsilon() const { return m_clearanceEpsilon; }
private:
int holeRadius( const PNS::ITEM* aItem ) const;
int matchDpSuffix( const wxString& aNetName, wxString& aComplementNet, wxString& aBaseDpName );
@ -1363,7 +1365,7 @@ void PNS_KICAD_IFACE_BASE::SyncWorld( PNS::NODE *aWorld )
m_ruleResolver = new PNS_PCBNEW_RULE_RESOLVER( m_board, this );
aWorld->SetRuleResolver( m_ruleResolver );
aWorld->SetMaxClearance( 1.5 * worstClearance );
aWorld->SetMaxClearance( worstClearance + m_ruleResolver->ClearanceEpsilon() );
}