Henrik Eriksson - 2014-10-18

Hi

In my search for a smoother panning experience I have found that reducing the number of calls to
layermanager->forceredraw()
improves the situation (especially on big screens). A QTimer could for instance be used to buffer the requests:

void MapControl::updateRequestNew()
{
#ifdef ORIGINAL
    layermanager->forceRedraw();
#else
    static QTimer updateTimer;
    if(!updateTimer.isActive())
    {
        updateTimer.disconnect();
        QObject::connect(&updateTimer, &QTimer::timeout, layermanager, &LayerManager::forceRedraw);
        updateTimer.setSingleShot(true);
        updateTimer.start(10);
    }
#endif
}

Also, perhaps kDefaultPixmapCacheSizeKB should be increased (to 50000 maybe)?