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:
parent
1ff279bf72
commit
2f475d99dd
|
@ -2680,20 +2680,22 @@ void SIMULATOR_FRAME_UI::OnSimRefresh( bool aFinal )
|
||||||
updateTrace( traceInfo.first, traceInfo.second, plotTab );
|
updateTrace( traceInfo.first, traceInfo.second, plotTab );
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuildSignalsGrid( m_filter->GetValue() );
|
|
||||||
updateSignalsGrid();
|
|
||||||
|
|
||||||
plotTab->GetPlotWin()->UpdateAll();
|
plotTab->GetPlotWin()->UpdateAll();
|
||||||
|
|
||||||
if( aFinal )
|
if( aFinal )
|
||||||
|
{
|
||||||
|
rebuildSignalsGrid( m_filter->GetValue() );
|
||||||
|
updateSignalsGrid();
|
||||||
|
|
||||||
|
for( int row = 0; row < m_measurementsGrid->GetNumberRows(); ++row )
|
||||||
|
UpdateMeasurement( row );
|
||||||
|
|
||||||
plotTab->ResetScales( true );
|
plotTab->ResetScales( true );
|
||||||
|
}
|
||||||
|
|
||||||
plotTab->GetPlotWin()->Fit();
|
plotTab->GetPlotWin()->Fit();
|
||||||
|
|
||||||
updatePlotCursors();
|
updatePlotCursors();
|
||||||
|
|
||||||
for( int row = 0; row < m_measurementsGrid->GetNumberRows(); ++row )
|
|
||||||
UpdateMeasurement( row );
|
|
||||||
}
|
}
|
||||||
else if( simType == ST_OP && aFinal )
|
else if( simType == ST_OP && aFinal )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue