forked from organicmaps/organicmaps
tweaked some ResourcePool allocation parameters.
This commit is contained in:
parent
f8f7344b32
commit
0502942041
2 changed files with 9 additions and 33 deletions
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue