From 16f4f72ef71429425fb1da56cba7da5eedd5996c Mon Sep 17 00:00:00 2001 From: rachytski Date: Sat, 13 Aug 2011 23:44:44 +0300 Subject: [PATCH] amount of allocated opengl resources are scaled with the number of cpu cores. --- iphone/Maps/Classes/EAGLView.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm index a3124346e5..e5d01fc5a6 100644 --- a/iphone/Maps/Classes/EAGLView.mm +++ b/iphone/Maps/Classes/EAGLView.mm @@ -97,11 +97,11 @@ Platform & pl = GetPlatform(); resourceManager = shared_ptr(new yg::ResourceManager( - bigVBSize, bigIBSize, 6, - smallVBSize, smallIBSize, 15, - blitVBSize, blitIBSize, 15, - 512, 256, 10, - 512, 256, 10, + bigVBSize, bigIBSize, 6 * GetPlatform().CpuCores(), + smallVBSize, smallIBSize, 15 * GetPlatform().CpuCores(), + blitVBSize, blitIBSize, 15 * GetPlatform().CpuCores(), + 512, 256, 10 * GetPlatform().CpuCores(), + 512, 256, 10 * GetPlatform().CpuCores(), GetPlatform().TileSize(), GetPlatform().TileSize(), GetPlatform().MaxTilesCount(),