Skip to content
Permalink
Browse files

set min updateThreshold to 1000

  • Loading branch information
blazek committed Jun 13, 2013
1 parent 7879d37 commit e09683b1fb4d6bbc5e1e251c1f8e98b6a149fd01
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/qgsvectorlayer.cpp
@@ -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

0 comments on commit e09683b

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