From: raster Date: Mon, 9 Aug 2010 04:54:05 +0000 (+0000) Subject: allow for debug checking of # of flushes per frame. checking to see if X-Git-Tag: 2.0_alpha~240^2~1728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91398eec1805a063da66aad9f6503e322be2a192;p=framework%2Fuifw%2Fevas.git allow for debug checking of # of flushes per frame. checking to see if this all works git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@50919 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index 9693e04..defba9c 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -640,8 +640,15 @@ void evas_gl_common_context_newframe(Evas_GL_Context *gc) { int i; + static int dbgflushnum = -1; -// printf("prev frame flushnum = %i\n", gc->flushnum); + if (dbgflushnum < 0) + { + dbgflushnum = 0; + if (getenv("DBGEVAS")) dbgflushnum = 1; + } + if (dbgflushnum) printf("prev-flushnum: %i\n", gc->flushnum); + gc->flushnum = 0; gc->state.current.cur_prog = 0; gc->state.current.cur_tex = 0;