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)?
Log in to post a comment.
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:
Also, perhaps kDefaultPixmapCacheSizeKB should be increased (to 50000 maybe)?