Issue 1680: "FtblockDN.cc RGB_denoise": this patch add a Performance tab to limit the number of core used for RGB denoising tool

This commit is contained in:
natureh 510
2013-02-26 01:05:44 +01:00
parent d59fab9f17
commit d6e42edcc6
8 changed files with 56 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ namespace rtengine {
// Calculate number of tiles. If less than omp_get_max_threads(), then limit num_threads to number of tiles
int numtiles = numtiles_W * numtiles_H;
int numthreads = MIN(numtiles,omp_get_max_threads());
//if(options.RgbDenoiseThreadLimit > 0) numthreads = MIN(numthreads,options.RgbDenoiseThreadLimit);
if(options.rgbDenoiseThreadLimit > 0) numthreads = MIN(numthreads,options.rgbDenoiseThreadLimit);
#pragma omp parallel num_threads(numthreads)
#endif
{