Cleanup fftw when closing RT, instead of after each time fftw is used. Speeds up fattal and luminance denoise

This commit is contained in:
heckflosse
2018-01-17 20:39:01 +01:00
parent f644d41ff2
commit 53ec11eea9
3 changed files with 9 additions and 14 deletions

View File

@@ -907,18 +907,6 @@ void solve_pde_fft (Array2Df *F, Array2Df *U, Array2Df *buf, bool multithread)/*
for (int i = 0; i < width * height; i++) {
(*U) (i) -= max;
}
// fft parallel threads cleanup, better handled outside this function?
#ifdef RT_FFTW3F_OMP
if (multithread) {
fftwf_cleanup_threads();
}
#endif
// ph.setValue(90);
//DEBUG_STR << "solve_pde_fft: done" << std::endl;
}