From 277fb1a31fc4b0c9691b3bbab43fd1a970d3e575 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Mon, 31 Mar 2014 13:51:40 +0200 Subject: Sculpt/dyntopo: Make the omp threads configurable to overcome performance issues - autodetect optimal default, which typically avoids HT threads - can store setting in .blend per scene - this does not touch general omp max threads, due i found other areas where the calculations are fitting for huge corecount - Intel notes, some of the older generation processors with HyperThreading would not provide significant performance boost for FPU intensive applications. On those systems you might want to set OMP_NUM_THREADS = total number of cores (not total number of hardware theads). --- source/blender/blenlib/BLI_threads.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/BLI_threads.h') diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 62eadb8a8b5..b522d95ddae 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -75,6 +75,8 @@ int BLI_system_thread_count(void); /* gets the number of threads the system void BLI_system_num_threads_override_set(int num); int BLI_system_num_threads_override_get(void); +int BLI_omp_thread_count(void); /* gets the number of openmp threads the system can make use of */ + /* Global Mutex Locks * * One custom lock available now. can be extended. */ -- cgit v1.2.3