tune the unloads to be conservative but effective.

SVN revision: 25955
This commit is contained in:
Carsten Haitzler 2006-09-18 09:47:34 +00:00
parent 3115a52684
commit 3f4b2a65bf
1 changed files with 3 additions and 3 deletions

View File

@ -314,9 +314,9 @@ evas_module_clean(void)
Evas_List *l;
Evas_Module *em;
/* only clean modules every 32 calls */
/* only clean modules every 256 calls */
call_count++;
if (call_count <= 32) return;
if (call_count <= 256) return;
call_count = 0;
if (noclean == -1)
@ -345,7 +345,7 @@ evas_module_clean(void)
ago = use_count - em->last_used;
if (em->last_used > use_count) ago += 0x10000000;
/* if it was used last more than N clean cycles ago - unload */
if (ago > 3)
if (ago > 5)
{
// printf(" UNLOAD %s\n", em->name);
evas_module_unload(em);