From b2a6f126451b68e1476fd01263ee2cfcff804ca5 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 23 Jan 2023 10:27:27 -0800 Subject: [PATCH] Don't do a full connection database reset on HardRedraw() Only update the intersheet references to avoid the penalty of connectivity re-calculations on each redraw Cherry-picked from b8ee588a767d2b43a2dc720e365ee0b0cc37d22c and 08c2828bd38a2066350638ec1325d9439f1bb1ec --- eeschema/sch_edit_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index dc69bba3f7..7c26ae216e 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -614,7 +614,8 @@ void SCH_EDIT_FRAME::SetCurrentSheet( const SCH_SHEET_PATH& aSheet ) void SCH_EDIT_FRAME::HardRedraw() { - RecalculateConnections( LOCAL_CLEANUP ); + if( Schematic().Settings().m_IntersheetRefsShow ) + RecomputeIntersheetRefs(); FocusOnItem( nullptr );