aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-09-27 11:45:11 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-09-27 11:45:11 +0100
commit268e125104bdb28f691f1b9243ab09a48475a418 (patch)
treecb282f884c2989b6e805a3d50d7c7a3e5356b968
parentxxx (diff)
downloadrage-268e125104bdb28f691f1b9243ab09a48475a418.tar.gz
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.
-rw-r--r--src/bin/videothumb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/videothumb.c b/src/bin/videothumb.c
index a27ce09..a1b68b1 100644
--- a/src/bin/videothumb.c
+++ b/src/bin/videothumb.c
@@ -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)
{