pcbnew: Adjust default update rate to 100ms

10ms was too fast to update the progress reporter and actually slowed
the process down for many machines.
This commit is contained in:
Seth Hillbrand 2018-11-05 21:11:12 -07:00
parent 7c77b92cd8
commit a24bd9baa1
1 changed files with 2 additions and 2 deletions

View File

@ -251,14 +251,14 @@ void CN_CONNECTIVITY_ALGO::searchConnections()
for( size_t ii = 0; ii < parallelThreadCount; ++ii ) for( size_t ii = 0; ii < parallelThreadCount; ++ii )
{ {
// Here we balance returns with a 10ms timeout to allow UI updating // Here we balance returns with a 100ms timeout to allow UI updating
std::future_status status; std::future_status status;
do do
{ {
if( m_progressReporter ) if( m_progressReporter )
m_progressReporter->KeepRefreshing(); m_progressReporter->KeepRefreshing();
status = returns[ii].wait_for( std::chrono::milliseconds( 10 ) ); status = returns[ii].wait_for( std::chrono::milliseconds( 100 ) );
} while( status != std::future_status::ready ); } while( status != std::future_status::ready );
} }
} }