cacheburst used all the time now :) any time we are just doign a lot of

stuff... cacheburst :)


SVN revision: 18252
This commit is contained in:
Carsten Haitzler 2005-11-03 15:09:17 +00:00
parent 07ca42d978
commit 885dbd9541
1 changed files with 10 additions and 3 deletions

View File

@ -35,6 +35,7 @@ static void _e_main_desk_restore(E_Manager *man, E_Container *con);
#define MAX_LEVEL 32
static int (*_e_main_shutdown_func[MAX_LEVEL]) (void);
static int _e_main_level = 0;
static int _e_cacheburst = 0;
static Evas_List *_e_main_idler_before_list = NULL;
@ -267,8 +268,9 @@ main(int argc, char **argv)
_e_main_shutdown_push(ecore_shutdown);
/* disabled for now - seems to break config loading??? */
/* eet_cacheburst(1);*/
ecore_timer_add(1.0, _e_main_cb_eet_cacheburst_end, NULL);
_e_cacheburst++;
eet_cacheburst(_e_cacheburst);
ecore_timer_add(5.0, _e_main_cb_eet_cacheburst_end, NULL);
/* init the file system */
if (!ecore_file_init())
@ -1089,6 +1091,8 @@ _e_main_cb_idler_before(void *data __UNUSED__)
free(eb);
}
}
_e_cacheburst--;
eet_cacheburst(_e_cacheburst);
edje_thaw();
// printf("IN to idle... %3.3f\n", ecore_time_get());
return 1;
@ -1099,13 +1103,16 @@ _e_main_cb_idler_after(void *data __UNUSED__)
{
// printf("OUT of idle... %3.3f\n", ecore_time_get());
edje_freeze();
_e_cacheburst++;
eet_cacheburst(_e_cacheburst);
return 1;
}
static int
_e_main_cb_eet_cacheburst_end(void *data __UNUSED__)
{
eet_cacheburst(0);
_e_cacheburst--;
eet_cacheburst(_e_cacheburst);
return 0;
}