Skip to content

Commit

Permalink
[quick] Further optimize handling of silent refresh for smoother canv…
Browse files Browse the repository at this point in the history
…as animation
  • Loading branch information
nirvn authored and nyalldawson committed Sep 25, 2022
1 parent 75a79f6 commit e91ca3d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/quickgui/qgsquickmapcanvasmap.cpp
Expand Up @@ -144,10 +144,6 @@ void QgsQuickMapCanvasMap::refreshMap()
{
emit renderStarting();
}
else
{
mSilentRefresh = false;
}
}

void QgsQuickMapCanvasMap::renderJobUpdated()
Expand All @@ -165,7 +161,6 @@ void QgsQuickMapCanvasMap::renderJobUpdated()
mFreeze = freeze;

update();
emit mapCanvasRefreshed();
}

void QgsQuickMapCanvasMap::renderJobFinished()
Expand Down Expand Up @@ -201,7 +196,14 @@ void QgsQuickMapCanvasMap::renderJobFinished()
mFreeze = freeze;

update();
emit mapCanvasRefreshed();
if ( !mSilentRefresh )
{
emit mapCanvasRefreshed();
}
else
{
mSilentRefresh = false;
}

if ( mDeferredRefreshPending )
{
Expand Down

0 comments on commit e91ca3d

Please sign in to comment.