From db191db690099b5db525ae908f4aae16bcf4666f Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 9 Aug 2010 08:38:28 +0000 Subject: [PATCH] magic numbers. :) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50924 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_common/evas_gl_context.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index 7e948a3..f5a09a9 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -412,8 +412,11 @@ evas_gl_common_context_new(void) glGetIntegerv(GL_MAX_TEXTURE_SIZE, &(shared->info.max_texture_size)); - shared->info.cutout_max = MAX_CUTOUT; - shared->info.pipes_max = MAX_PIPES; + // magic numbers that are a result of imperical testing and getting + // "best case" performance across a range of systems + shared->info.cutout_max = 512; + shared->info.pipes_max = 32; + if (getenv("EVAS_GL_CUTOUT_MAX")) shared->info.cutout_max = atoi(getenv("EVAS_GL_CUTOUT_MAX")); if (getenv("EVAS_GL_PIPES_MAX")) -- 2.7.4