Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2011-09-26 19:35:38 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:24:26 +0300
commitc48b44e6ff65feecb940455dc15cae7b65084151 (patch)
tree6c2623a277a53aff2dc0cbb095a2e6e1f23da505 /iphone/Maps/Classes/EAGLView.mm
parent169a85e7f9893c5a7d4f08aca9a446f8882bc8b4 (diff)
StylesCache creation on the CoverageGenerator thread. improvement of the GUI thread text rendering speed.
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r--iphone/Maps/Classes/EAGLView.mm12
1 files changed, 7 insertions, 5 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm
index 6136a3a379..ec0b1eb8d2 100644
--- a/iphone/Maps/Classes/EAGLView.mm
+++ b/iphone/Maps/Classes/EAGLView.mm
@@ -22,6 +22,7 @@ bool _inRepaint = false;
@synthesize windowHandle;
@synthesize drawer;
@synthesize renderContext;
+@synthesize renderBuffer;
@synthesize resourceManager;
@synthesize displayLink;
@@ -108,7 +109,7 @@ bool _inRepaint = false;
size_t fontTexWidth = 512;
size_t fontTexHeight = 256;
- size_t fontTexCount = 10;
+ size_t fontTexCount = 15;
resourceManager = shared_ptr<yg::ResourceManager>(new yg::ResourceManager(
bigVBSize, bigIBSize, 6 * GetPlatform().CpuCores(),
@@ -119,7 +120,7 @@ bool _inRepaint = false;
"unicode_blocks.txt",
"fonts_whitelist.txt",
"fonts_blacklist.txt",
- 1.5 * 1024 * 1024,
+ 2 * 1024 * 1024,
GetPlatform().CpuCores() + 2,
fmt,
!yg::gl::g_isBufferObjectsSupported));
@@ -138,7 +139,7 @@ bool _inRepaint = false;
p.m_skinName = pl.SkinName();
p.m_visualScale = pl.VisualScale();
p.m_isSynchronized = false;
- p.m_useTinyStorage = true; //< use tiny buffers to minimize CPU->GPU data transfer overhead.
+ p.m_useTinyStorage = false; //< use tiny buffers to minimize CPU->GPU data transfer overhead.
drawer = shared_ptr<DrawerYG>(new DrawerYG(p));
@@ -174,14 +175,15 @@ bool _inRepaint = false;
- (void)drawView
{
- if (windowHandle->needRedraw())
+ [controller drawFrame];
+ /*if (windowHandle->needRedraw())
{
windowHandle->setNeedRedraw(false);
[controller beginPaint];
[controller doPaint];
renderBuffer->present();
[controller endPaint];
- }
+ }*/
}
- (void)drawViewThunk:(id)obj