Skip to content

Commit

Permalink
Speed up point layer rendering - don't calculate unused label obstacles
Browse files Browse the repository at this point in the history
Cuts render time by ~60%. Fix #15752.

(cherry-picked from 5798a82)
  • Loading branch information
nyalldawson committed Oct 28, 2016
1 parent fa7491f commit 68cbf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerrenderer.cpp
Expand Up @@ -333,7 +333,7 @@ void QgsVectorLayerRenderer::drawRendererV2( QgsFeatureIterator& fit )
}
}
// new labeling engine
if ( mContext.labelingEngineV2() )
if ( mContext.labelingEngineV2() && ( mLabelProvider || mDiagramProvider ) )
{
QScopedPointer<QgsGeometry> obstacleGeometry;
QgsSymbolV2List symbols = mRendererV2->originalSymbolsForFeature( fet, mContext );
Expand Down

0 comments on commit 68cbf07

Please sign in to comment.