Skip to content
Browse files
Use a QgsMapRendererSequentialJob for rendering preview maps
Means that at most the preview jobs will use a single thread
instead of hammering all available threads.
  • Loading branch information
nyalldawson committed Aug 17, 2017
1 parent a369c9b commit 6c17577
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2160,7 +2160,7 @@ void QgsMapCanvas::startPreviewJob( int number )
jobSettings.setExtent( jobExtent );
jobSettings.setFlag( QgsMapSettings::DrawLabeling, false );

QgsMapRendererQImageJob *job = new QgsMapRendererParallelJob( jobSettings );
QgsMapRendererQImageJob *job = new QgsMapRendererSequentialJob( jobSettings );
mPreviewJobs.append( job );
connect( job, &QgsMapRendererJob::finished, this, &QgsMapCanvas::previewJobFinished );

0 comments on commit 6c17577

Please sign in to comment.