obs-StreamFX/source/filters
Michael Fabian 'Xaymar' Dirks fddf21b8de util/threadpool: Optimize for dynamic thread pooling
While the previous approach of a static thread pool worked, it was sub-optimal in its resource usage. Many of the threads would never see a single task, and simply permanently sleep. This seems like a good idea, except that sleeping threads still end up in the scheduler, and thus waste a tiny amount of resources.

It is better to instead dynamically spawn threads when needed and only keeping the bare minimum around all the time. These dynamically spawned threads are also explicitly set to background priority which further reduces scheduling overhead. Finally optimizing the memory layout to prevent unwanted false sharing should also keep sporadic wake ups at a minimum.

This new model should be able to handle many more tasks than ever before, but is still not as optimal as it could be.
2023-04-05 18:58:49 +02:00
..
filter-autoframing.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-autoframing.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-blur.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-blur.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-color-grade.cpp code: Fix initialization order for constructors 2023-04-05 18:58:40 +02:00
filter-color-grade.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-denoising.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-denoising.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-displacement.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-displacement.hpp filter/displacement: Add missing deprecation notice 2023-04-05 18:58:35 +02:00
filter-dynamic-mask.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-dynamic-mask.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-sdf-effects.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-sdf-effects.hpp obs/gs: Apply coding guidelines 2023-04-05 18:50:59 +02:00
filter-shader.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-shader.hpp gfx/shader: Support for visible and active tracking in parameters 2023-04-05 18:51:42 +02:00
filter-transform.cpp code: Fix initialization order for constructors 2023-04-05 18:58:40 +02:00
filter-transform.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
filter-upscaling.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-upscaling.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-virtual-greenscreen.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
filter-virtual-greenscreen.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00