mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Improve performance when creating multiple plots
This commit is contained in:
1 parent
04799e044e
commit
77c789a179
3 files changed
+53
-2
No files matched your search
@@ -146,11 +146,33 @@ void RiaPlotWindowRedrawScheduler::performScheduledUpdatesAndReplots()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaPlotWindowRedrawScheduler::blockScheduledUpdatesAndReplots()
|
||||
{
|
||||
m_blockScheduledUpdatesAndReplots = true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaPlotWindowRedrawScheduler::unblockScheduledUpdatesAndReplots()
|
||||
{
|
||||
m_blockScheduledUpdatesAndReplots = false;
|
||||
startTimer( 0 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaPlotWindowRedrawScheduler::slotUpdateAndReplotScheduledItemsWhenReady()
|
||||
{
|
||||
if ( m_blockScheduledUpdatesAndReplots )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( caf::ProgressState::isActive() )
|
||||
{
|
||||
startTimer( 100 );
|
||||
|
||||
Reference in new issue
Block a user