partially executing commands collected on CoverageGenerator thread while navigation for smooth GUI performance.

This commit is contained in:
rachytski 2012-07-29 12:22:48 -07:00 committed by Alex Zolotarev
parent a8bf5cfb16
commit 4c865e881a
2 changed files with 7 additions and 0 deletions

View file

@ -124,6 +124,8 @@ void BasicTilingRenderPolicy::StartNavigation()
m_TileRenderer->SetIsPaused(true);
m_IsNavigating = true;
m_TileRenderer->CancelCommands();
if (m_QueuedRenderer)
m_QueuedRenderer->SetPartialExecution(GetPlatform().CpuCores(), true);
}
void BasicTilingRenderPolicy::StopNavigation()
@ -131,6 +133,8 @@ void BasicTilingRenderPolicy::StopNavigation()
m_TileRenderer->SetIsPaused(false);
m_IsNavigating = false;
m_DoRecreateCoverage = true;
if (m_QueuedRenderer)
m_QueuedRenderer->SetPartialExecution(GetPlatform().CpuCores(), false);
}
void BasicTilingRenderPolicy::StartScale()

View file

@ -229,6 +229,9 @@ void TilingRenderPolicyST::SetRenderFn(TRenderFn renderFn)
delete [] queues;
/// CoverageGenerator rendering queue could execute commands partially
/// as there are no render-to-texture calls.
// m_QueuedRenderer->SetPartialExecution(cpuCores, true);
m_CoverageGenerator.reset(new CoverageGenerator(skinName,
m_TileRenderer.get(),
m_windowHandle,