Enlightenment CVS committal Author : codewarrior Project : e17 Module : apps/exhibit
Dir : e17/apps/exhibit/src/bin Modified Files: exhibit_main.c Log Message: >From the looks of it, evas's image cache just grows and grows as we load more (big) images resulting in high memory usage. Hard limit it to 16MB, add configuration value later. =================================================================== RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_main.c,v retrieving revision 1.130 retrieving revision 1.131 diff -u -3 -r1.130 -r1.131 --- exhibit_main.c 4 Oct 2007 10:35:55 -0000 1.130 +++ exhibit_main.c 7 Oct 2007 08:22:16 -0000 1.131 @@ -12,6 +12,12 @@ /* defines the initial size and increment size that file list arrays have */ #define FILELIST_SIZE 3000 +/* defines the number of bytes used for evas's image cache */ +#define IMAGE_CACHE_BYTES 16777216 + +/* defines the number of objects used in evas's image cache */ +#define IMAGE_CACHE_NUM 128 + typedef struct _Ex_Populate_Data Ex_Populate_Data; struct _Ex_Populate_Data @@ -1247,8 +1253,11 @@ _ex_main_window_show(argv[1 + fullscreen + slideshow], fullscreen, slideshow); else _ex_main_window_show(NULL, fullscreen, slideshow); - - etk_main(); + + evas_imaging_image_cache_set(IMAGE_CACHE_BYTES); + /*evas_image_cache_set(etk_toplevel_evas_get(ETK_TOPLEVEL(e->win)), IMAGE_CACHE_NUM);*/ + + etk_main(); if(e) _ex_options_save(e); _ex_options_shutdown(); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs