Skip to content

Commit

Permalink
set min updateThreshold to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Jun 13, 2013
1 parent 7879d37 commit e09683b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -653,6 +653,15 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
//set update threshold before each draw to make sure the current setting is picked up
QSettings settings;
mUpdateThreshold = settings.value( "Map/updateThreshold", 0 ).toInt();
// users could accidently set updateThreshold threshold to a small value
// and complain about bad performance -> force min 1000 here
// TODO: improve GUI (checkbox?) to make obvious the min value (cannot set min
// on spinbox because 0 as used for no refresh)
if ( mUpdateThreshold > 0 && mUpdateThreshold < 1000 )
{
mUpdateThreshold = 1000;
}

#ifdef Q_WS_X11
mEnableBackbuffer = settings.value( "/Map/enableBackbuffer", 1 ).toBool();
#endif
Expand Down

0 comments on commit e09683b

Please sign in to comment.