[gegl/threaded-base-classes: 17/22] processor: increase max chunk size



commit fa8583a015c29b0efe41f9b6b957803ef1c49982
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Jun 28 02:52:12 2014 +0200

    processor: increase max chunk size

 gegl/process/gegl-processor.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 4024459..b939166 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -123,7 +123,7 @@ gegl_processor_class_init (GeglProcessorClass *klass)
                                    g_param_spec_int ("chunksize",
                                                      "chunksize",
                                                      "Size of chunks being rendered (larger chunks need more 
memory to do the processing).",
-                                                     1, 1024 * 1024, gegl_config()->chunk_size,
+                                                     1, 4096 * 4096, gegl_config()->chunk_size,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT_ONLY));
 }
@@ -387,7 +387,12 @@ gegl_processor_get_band_size (gint size)
 
   /* try to make the rects generated match better with potential 2^n sized
    * tiles, XXX: should be improved to make the next slice fit as well. */
-  if (band_size <= 256)
+  if (band_size <= 128)
+    {
+      band_size = MIN(band_size, 64); /* prefer a band_size of 64,
+                                          hoping to hit tiles */
+    }
+  else if (band_size <= 256)
     {
       band_size = MIN(band_size, 128); /* prefer a band_size of 128,
                                           hoping to hit tiles */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]