diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-09-28 21:28:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:24:46 +0300 |
commit | b128666a0462ebb82c686b75a628322f2fd49b28 (patch) | |
tree | 598057bce1fb7fec995581104d68af5476b798c2 /map/screen_coverage.cpp | |
parent | 1f62143e3bb77d31281d1dc681f931e6339d4a3c (diff) |
improving responsiveness of tile rendering while zooming.
Diffstat (limited to 'map/screen_coverage.cpp')
-rw-r--r-- | map/screen_coverage.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/map/screen_coverage.cpp b/map/screen_coverage.cpp index 20d98bc43a..429f30f959 100644 --- a/map/screen_coverage.cpp +++ b/map/screen_coverage.cpp @@ -201,12 +201,16 @@ void ScreenCoverage::SetScreen(ScreenBase const & screen, bool /*mergePathNames* m_stylesCache->upload(); } + /// clearing all old commands + m_tileRenderer->ClearCommands(); + /// setting new sequenceID + m_tileRenderer->SetSequenceID(m_tiler.sequenceID()); + /// cancelling commands in progress + m_tileRenderer->CancelCommands(); /// adding commands for tiles which aren't in cache for (size_t i = 0; i < newRects.size(); ++i) - { m_tileRenderer->AddCommand(newRects[i], m_tiler.sequenceID(), bind(&CoverageGenerator::AddMergeTileTask, m_coverageGenerator, newRects[i])); - } } |