Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -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 );
job->start();
Expand Down

0 comments on commit 6c17577

Please sign in to comment.