blender/build_files/cmake/Modules
Omar Emara d4bf23771d Compositor: Optimize Fog Glow Glare node
This patches optimizes the Fog Glow Glare node to be about 25x faster
for 4K images. This is mainly achieved by utilizing the FFTW library and
multi-threading support code. Further improvements are still possible by
caching kernels, but the CPU compositor does not support caching yet.

The old Hartley transform was removed, so the node no longer works when
FFTW is disabled as a build time option, much like the OIDN node. A new
BLI library was introduced for FFTW, it includes some helper routines
relevant for FFTW as well as an initialization routine that sets up
multithreading using TBB as well as thread safety.

Build system support for threaded FFTW was also added, which defines the
relevant variables to detect threading support as well as add the
relevant libraries.

We do not currently have the threaded FFTW libs in our precompiled libs,
so the threading code is disabled until the libs lands in the coming
weeks. So currently, the code is only about 9x faster.

The only functional change is that the kernel is now odd sized, which
should produce more accurate results, but the final result is almost
identical and mostly undetectable.

The plan is to port this to the GPU as well similar to how we implement
OIDN until we have a GPU FFT implementation. GPU compositor can also do
caching, so it should be faster, being able to compute a 4K image in
under half a second.

Pull Request: https://projects.blender.org/blender/blender/pulls/121653
2024-05-17 12:45:21 +02:00
..
FindAlembic.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindAudaspace.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindBlosc.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindBrotli.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindClang.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindClangTidy.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindEigen3.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindEmbree.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindEpoxy.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindFFmpeg.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindFftw3.cmake Compositor: Optimize Fog Glow Glare node 2024-05-17 12:45:21 +02:00
FindFribidi.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindGflags.cmake Cleanup: spelling in comments 2023-08-25 09:40:42 +10:00
FindGlog.cmake Cleanup: quiet uninitialized warnings for finder root directories 2023-07-29 13:47:55 +10:00
FindGMP.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindHarfbuzz.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindHaru.cmake License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
FindHIP.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindHIPRT.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindIcuLinux.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindJack.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindJeMalloc.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindLevelZero.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindLibEpoxy.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindLLVM.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindLZO.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindMoltenVK.cmake Vulkan: MoltenVK Support for Developers 2024-04-11 11:04:43 +02:00
FindNanoVDB.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindOpenCOLLADA.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindOpenColorIO.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindOpenEXR.cmake Cleanup: tabs to spaces 2024-01-14 11:37:04 +11:00
FindOpenImageDenoise.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindOpenImageIO.cmake Render Tests: Separate difference of Color and Alpha 2024-01-25 10:04:16 +01:00
FindOpenJPEG.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindOpenSubdiv.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindOpenVDB.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindOptiX.cmake Cleanup: undefined defined variable warnings with CMake 2024-03-01 16:22:06 +11:00
FindOSL.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindPCRE.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindPotrace.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindPugiXML.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindPulse.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindPythonLibsUnix.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindSDL2.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindShaderC.cmake CMake: Allow building with system Vulkan and ShaderC 2023-11-10 18:10:41 +01:00
FindSndFile.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindSpacenav.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
Findsse2neon.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindSYCL.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindTBB.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindUSD.cmake Cleanup: use lowercase cmake commands 2023-08-17 13:15:56 +10:00
FindVulkan.cmake CMake: Allow building with system Vulkan and ShaderC 2023-11-10 18:10:41 +01:00
FindWebP.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindXML2.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindXR_OpenXR_SDK.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
FindZstd.cmake Cleanup: unset temporary CMake variables 2024-03-08 10:54:56 +11:00
GTest.cmake License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00