forked from organicmaps/organicmaps
In benchmark we need invalidate window only after tile counter decrementation
This commit is contained in:
parent
00b1df059c
commit
07ebd7a059
2 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "../base/SRC_FIRST.hpp"
|
||||
#include "../platform/settings.hpp"
|
||||
|
||||
#include "coverage_generator.hpp"
|
||||
#include "screen_coverage.hpp"
|
||||
|
@ -268,7 +269,10 @@ void CoverageGenerator::MergeTile(core::CommandsQueue::Environment const & env,
|
|||
|
||||
m_workCoverage->Clear();
|
||||
|
||||
m_windowHandle->invalidate();
|
||||
bool isBenchmarking = false;
|
||||
Settings::Get("IsBenchmarking", isBenchmarking);
|
||||
if (!isBenchmarking)
|
||||
m_windowHandle->invalidate();
|
||||
}
|
||||
|
||||
void CoverageGenerator::AddCheckEmptyModelTask(int sequenceID)
|
||||
|
@ -311,7 +315,13 @@ void CoverageGenerator::AddDecrementTileCountTask(int sequenceID)
|
|||
if (g_coverageGeneratorDestroyed)
|
||||
return;
|
||||
|
||||
m_queue.AddCommand(bind(&BenchmarkRenderingBarier::DecrementTileCounter, &m_benchmarkBarrier, sequenceID));
|
||||
m_queue.AddCommand(bind(&CoverageGenerator::DecrementTileCounter, this, sequenceID));
|
||||
}
|
||||
|
||||
void CoverageGenerator::DecrementTileCounter(int sequenceID)
|
||||
{
|
||||
m_benchmarkBarrier.DecrementTileCounter(sequenceID);
|
||||
m_windowHandle->invalidate();
|
||||
}
|
||||
|
||||
void CoverageGenerator::WaitForEmptyAndFinished()
|
||||
|
|
|
@ -112,6 +112,7 @@ public:
|
|||
void AddFinishSequenceTaskIfNeeded();
|
||||
|
||||
void AddDecrementTileCountTask(int sequenceID);
|
||||
void DecrementTileCounter(int sequenceID);
|
||||
|
||||
void CoverScreen(core::CommandsQueue::Environment const & env,
|
||||
ScreenBase const & screen,
|
||||
|
|
Loading…
Add table
Reference in a new issue