Don't update signals and measurements for each refresh.

We only need to do them on the final refresh.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15673
This commit is contained in:
Jeff Young 2023-09-20 17:34:16 +01:00
parent 1ff279bf72
commit 2f475d99dd
1 changed files with 8 additions and 6 deletions

View File

@ -2680,20 +2680,22 @@ void SIMULATOR_FRAME_UI::OnSimRefresh( bool aFinal )
updateTrace( traceInfo.first, traceInfo.second, plotTab );
}
rebuildSignalsGrid( m_filter->GetValue() );
updateSignalsGrid();
plotTab->GetPlotWin()->UpdateAll();
if( aFinal )
{
rebuildSignalsGrid( m_filter->GetValue() );
updateSignalsGrid();
for( int row = 0; row < m_measurementsGrid->GetNumberRows(); ++row )
UpdateMeasurement( row );
plotTab->ResetScales( true );
}
plotTab->GetPlotWin()->Fit();
updatePlotCursors();
for( int row = 0; row < m_measurementsGrid->GetNumberRows(); ++row )
UpdateMeasurement( row );
}
else if( simType == ST_OP && aFinal )
{