Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/gl_x11


Modified Files:
        evas_engine.c 


Log Message:

improve optimal nature of code.. get some more speed....

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/gl_x11/evas_engine.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- evas_engine.c       9 Sep 2003 05:51:03 -0000       1.6
+++ evas_engine.c       10 Sep 2003 14:33:39 -0000      1.7
@@ -373,7 +373,7 @@
                            re->win->draw.y2 - re->win->draw.y1 + 1);
  */
    glXSwapBuffers(re->win->disp, re->win->win);   
-   glFlush();
+//   glFlush();
 //   glXWaitGL();
 //   XSync(re->win->disp, False);
 //   printf("SYNC! %i\n", fr++);
@@ -957,27 +957,31 @@
    Render_Engine *re;
 
    re = (Render_Engine *)data;
+   /* text renderign takes benchmark from 40 to 27 on gf4-ti4400 */
      {
-       RGBA_Image *im;
+       static RGBA_Image *im = NULL;
        
-       im = evas_common_image_new();
-       im->image = evas_common_image_surface_new();
+       if (!im)
+         {
+            im = evas_common_image_new();
+            im->image = evas_common_image_surface_new();
+            im->image->no_free = 1;
+         }
        im->image->w = re->win->w;
        im->image->h = re->win->h;
        im->image->data = NULL;
-       im->image->no_free = 1;
        evas_common_draw_context_font_ext_set(context,
                                              re->win->gl_context,
                                              evas_gl_font_texture_new,
                                              evas_gl_font_texture_free,
                                              evas_gl_font_texture_draw);
+       /* 40 */
        evas_common_font_draw(im, context, font, x, y, text);
        evas_common_draw_context_font_ext_set(context, 
                                              NULL,
                                              NULL, 
                                              NULL,
                                              NULL);
-       evas_common_image_free(im);
      }
 }
 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to