Commit 26a238c5 authored by Michael Natterer's avatar Michael Natterer 😴

app: default the number of threads used to g_get_num_processors()

Let the bug reporting begin.
parent 67fc418c
......@@ -134,21 +134,12 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
n_threads = g_get_num_processors ();
#ifdef GIMP_UNSTABLE
n_threads *= 2;
#endif
max_n_threads =
G_PARAM_SPEC_INT (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
"threads"))->maximum;
n_threads = MIN (n_threads, max_n_threads);
#ifdef __GNUC__
#warning Defaulting # of threads to 1
#endif
n_threads = 1;
GIMP_CONFIG_PROP_INT (object_class, PROP_NUM_PROCESSORS,
"num-processors",
"Number of threads to use",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment