rage thumb - limit max parallel thumb fetch to 4 at a time

if you have 128 cores, running 64 of these isnt a brilliant idea.
This commit is contained in:
Carsten Haitzler 2018-09-27 11:45:11 +01:00
parent 02cb1632c0
commit 268e125104
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ _cb_videothumb_delay(void *data)
Evas_Object *obj = data;
Videothumb *sd = evas_object_smart_data_get(obj);
unsigned int maxnum = (eina_cpu_count() / 2) + 1;
if (maxnum > 4) maxnum = 4;
if (!sd) return EINA_FALSE;
if (eina_list_count(busy_thumbs) < maxnum)
{