Skip to content
Permalink
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 6c17577fbe7717fb48061f81e64598c46602c707
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -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();

0 comments on commit 6c17577

Please sign in to comment.
You can’t perform that action at this time.