Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/bin


Modified Files:
        evas_test_main.c 


Log Message:


open gl is fulyl functional now - it coudl defnitely do with optimizations
with texture upload. it does NOt check error returns anywhere from gl... this
may mean issues with LOTs of images, LARGE images etc. need to fix that later

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/bin/evas_test_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evas_test_main.c    7 Sep 2003 11:24:48 -0000       1.11
+++ evas_test_main.c    9 Sep 2003 05:51:02 -0000       1.12
@@ -1,7 +1,10 @@
 #include "config.h"
 #include "evas_test_main.h"
 
-//#define VID_TEST
+// test writing to image objects for video playback
+//define VID_TEST
+// actualyl fill the video buffer (not fair a test as cpu spends time filling)
+//#define VID_WRITE
 
 #define EVAS_PI        (3.141592654)
 
@@ -141,6 +144,7 @@
               {
                  int tt;
                  
+#ifdef VID_WRITE                 
                  tt = t * 1000;
                  for (y = 0; y < ih; y++)
                    {
@@ -148,6 +152,7 @@
                         data[(y * iw) + x] =
                         (((x * y / 10) + tt)) | 0xff000000;
                    }
+#endif           
                  evas_object_image_data_update_add(test_pattern, 0, 0, iw, ih);
                  evas_object_image_data_set(test_pattern, data);
               }
@@ -156,7 +161,10 @@
      }
    else if (t > 5.0)
      {
-       printf("# EVAS BENCH: %3.3f\n", ((double)frames / (t - time_start)) / 60.0);
+       printf("# FRAME COUNT: %i frames\n", frames);
+       printf("# TIME:        %3.3f seconds\n", (t - time_start));
+       printf("# AVERAGE FPS: %3.3f fps\n", (double)frames / (t - time_start));
+       printf("# EVAS BENCH:  %3.3f\n", ((double)frames / (t - time_start)) / 60.0);
        exit(0);
      }
    else 




-------------------------------------------------------
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