raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=268e125104bdb28f691f1b9243ab09a48475a418

commit 268e125104bdb28f691f1b9243ab09a48475a418
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Sep 27 11:45:11 2018 +0100

    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.
---
 src/bin/videothumb.c | 1 +
 1 file changed, 1 insertion(+)

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)
      {

-- 


Reply via email to