blender/build_files/cmake
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
..
config Windows: Add ARM64 support 2024-03-06 16:14:34 +01:00
example_scripts Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00
Modules Compositor: Optimize Fog Glow Glare node 2024-05-17 12:45:21 +02:00
platform CMake: Fix ASAN builds on windows 2024-05-07 12:19:20 -06:00
buildinfo_static.h.in CMake: configue_file() to pass strings for build-info 2020-11-06 17:26:29 +11:00
buildinfo.cmake Cleanup: cmake indentation 2023-11-04 16:41:18 +11:00
clang_array_check.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
cmake_netbeans_project.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
cmake_print_build_options.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
cmake_qtcreator_project.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
cmake_static_check_clang_array.py Cleanup: unused imports 2024-04-19 16:09:30 +10:00
cmake_static_check_clang.py Tools: set the number of jobs to the CPU count for various utilities 2023-10-06 21:47:03 +11:00
cmake_static_check_cppcheck.py cppcheck: exclude file that hangs for hours 2024-05-07 13:07:04 +10:00
have_features.cmake Fix #111186: Crash backtrace missing on Linux 2023-08-17 13:45:11 +10:00
macros.cmake CMake: Change build flags to use SSE42 if available 2024-04-11 20:46:14 +02:00
packaging.cmake Cleanup: use STREQUAL instead of MATCHES for exact comparisons 2024-03-07 17:56:41 +11:00
project_info.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
project_source_info.py cppheck: improvements to checking script 2024-04-14 20:44:03 +10:00
RpmBuild.cmake License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
testing.cmake Cleanup: line length in CMake files 2024-03-07 13:26:55 +11:00