fixed guiThreadStorage pool starvation.

This commit is contained in:
rachytski 2011-12-30 23:36:50 +04:00 committed by Alex Zolotarev
parent bc007d32c3
commit 328fd56bdb
3 changed files with 6 additions and 4 deletions

View file

@ -89,7 +89,7 @@ namespace android
LOG(LDEBUG, ("AF::InitRenderer 1"));
yg::ResourceManager::Params rmParams;
rmParams.m_videoMemoryLimit = 20 * 1024 * 1024;
rmParams.m_videoMemoryLimit = 100 * 1024 * 1024;
rmParams.m_rtFormat = yg::Data8Bpp;
rmParams.m_texFormat = yg::Data4Bpp;

View file

@ -82,7 +82,7 @@ TilingRenderPolicyST::TilingRenderPolicyST(VideoTimer * videoTimer,
sizeof(yg::gl::Vertex),
600 * sizeof(unsigned short),
sizeof(unsigned short),
20,
200,
true,
true,
1,
@ -205,7 +205,7 @@ void TilingRenderPolicyST::SetRenderFn(TRenderFn renderFn)
void TilingRenderPolicyST::BeginFrame(shared_ptr<PaintEvent> const & e, ScreenBase const & s)
{
m_IsDebugging = true;
m_IsDebugging = false;
if (m_IsDebugging)
LOG(LINFO, ("-------BeginFrame-------"));
}
@ -227,6 +227,8 @@ bool TilingRenderPolicyST::NeedRedraw() const
void TilingRenderPolicyST::DrawFrame(shared_ptr<PaintEvent> const & e, ScreenBase const & currentScreen)
{
m_resourceManager->mergeFreeResources();
RenderQueuedCommands(e->drawer()->screen().get());
m_resourceManager->mergeFreeResources();

View file

@ -71,7 +71,7 @@ void Platform::GetFontNames(FilesList & res) const
int Platform::MaxTilesCount() const
{
return 120;
return 30;
}
int Platform::TileSize() const