[patch] gl: for embedded device, we need smaller vbo size
"Henry (Yu) Song - SISA" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <3955FA337689574EB32F94B12A7E6E9E2470CEE6@sisaex01sj> |
From 702b7a6dbba035a1a0c71d3618c1d2b02be0561e Mon Sep 17 00:00:00 2001 From: Henry Song <[email protected]> Date: Thu, 25 Oct 2012 12:25:13 -0700 Subject: [PATCH] 256*1024 is really too big for embedded device to handle during glDraw() 16384 to 32768 seems to be the optimal size for VBO --- src/cairo-gl-private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h index d6b0554..a9e1d52 100644 --- a/src/cairo-gl-private.h +++ b/src/cairo-gl-private.h @@ -92,7 +92,11 @@ #define CAIRO_GL_MAX_SHADERS_PER_CONTEXT 64 /* VBO size that we allocate, smaller size means we gotta flush more often */ +#if CAIRO_HAS_GL_SURFACE #define CAIRO_GL_VBO_SIZE (256*1024) +#elif CAIRO_HAS_GLESV2_SURFACE +#define CAIRO_GL_VBO_SIZE 16384 +#endif typedef struct _cairo_gl_surface cairo_gl_surface_t; -- 1.7.9.5 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo