From 0502942041c2386d4b1fb86d2f2515aae16cd4ae Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 23 Apr 2012 20:12:13 +0400 Subject: [PATCH] tweaked some ResourcePool allocation parameters. --- map/tiling_render_policy_mt.cpp | 20 ++++---------------- map/tiling_render_policy_st.cpp | 22 +++++----------------- 2 files changed, 9 insertions(+), 33 deletions(-) diff --git a/map/tiling_render_policy_mt.cpp b/map/tiling_render_policy_mt.cpp index 4b8ce73326..07c3eb5dc9 100644 --- a/map/tiling_render_policy_mt.cpp +++ b/map/tiling_render_policy_mt.cpp @@ -40,7 +40,7 @@ TilingRenderPolicyMT::TilingRenderPolicyMT(VideoTimer * videoTimer, true, true, 1, - "primaryTexture", + "fontTexture", true, true); @@ -70,15 +70,15 @@ TilingRenderPolicyMT::TilingRenderPolicyMT(VideoTimer * videoTimer, rmp.m_multiBlitStoragesParams = yg::ResourceManager::StoragePoolParams(500 * sizeof(yg::gl::Vertex), sizeof(yg::gl::Vertex), - 500 * sizeof(unsigned short), + 750 * sizeof(unsigned short), sizeof(unsigned short), - 10, + 1, true, true, 1, "multiBlitStorage", false, - false); + true); rmp.m_renderTargetTexturesParams = yg::ResourceManager::TexturePoolParams(GetPlatform().TileSize(), GetPlatform().TileSize(), @@ -92,18 +92,6 @@ TilingRenderPolicyMT::TilingRenderPolicyMT(VideoTimer * videoTimer, false, true); - rmp.m_styleCacheTexturesParams = yg::ResourceManager::TexturePoolParams(512, - 512 * int(ceil(GetPlatform().VisualScale())), - 2, - rmp.m_texFormat, - true, - true, - true, - 1, - "styleCacheTexture", - false, - false); - rmp.m_guiThreadStoragesParams = yg::ResourceManager::StoragePoolParams(2000 * sizeof(yg::gl::Vertex), sizeof(yg::gl::Vertex), 4000 * sizeof(unsigned short), diff --git a/map/tiling_render_policy_st.cpp b/map/tiling_render_policy_st.cpp index a15de8d4ec..174165a01e 100644 --- a/map/tiling_render_policy_st.cpp +++ b/map/tiling_render_policy_st.cpp @@ -37,13 +37,13 @@ TilingRenderPolicyST::TilingRenderPolicyST(VideoTimer * videoTimer, rmp.m_fontTexturesParams = yg::ResourceManager::TexturePoolParams(256, 256, - 1, + 10, rmp.m_texFormat, true, true, true, 1, - "primaryTexture", + "fontTexture", true, true); @@ -73,15 +73,15 @@ TilingRenderPolicyST::TilingRenderPolicyST(VideoTimer * videoTimer, rmp.m_multiBlitStoragesParams = yg::ResourceManager::StoragePoolParams(1500 * sizeof(yg::gl::Vertex), sizeof(yg::gl::Vertex), - 3000 * sizeof(unsigned short), + 2500 * sizeof(unsigned short), sizeof(unsigned short), - 10, + 1, true, true, 1, "multiBlitStorage", false, - false); + true); rmp.m_renderTargetTexturesParams = yg::ResourceManager::TexturePoolParams(GetPlatform().TileSize(), GetPlatform().TileSize(), @@ -95,18 +95,6 @@ TilingRenderPolicyST::TilingRenderPolicyST(VideoTimer * videoTimer, false, true); - rmp.m_styleCacheTexturesParams = yg::ResourceManager::TexturePoolParams(512, - 512 * int(ceil(GetPlatform().VisualScale())), - 2, - rmp.m_texFormat, - true, - true, - true, - 1, - "styleCacheTexture", - false, - false); - rmp.m_guiThreadStoragesParams = yg::ResourceManager::StoragePoolParams(2000 * sizeof(yg::gl::Vertex), sizeof(yg::gl::Vertex), 4000 * sizeof(unsigned short),