mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-30 15:23:01 +00:00
fddf21b8de
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. |
||
---|---|---|
.. | ||
filter-autoframing.cpp | ||
filter-autoframing.hpp | ||
filter-blur.cpp | ||
filter-blur.hpp | ||
filter-color-grade.cpp | ||
filter-color-grade.hpp | ||
filter-denoising.cpp | ||
filter-denoising.hpp | ||
filter-displacement.cpp | ||
filter-displacement.hpp | ||
filter-dynamic-mask.cpp | ||
filter-dynamic-mask.hpp | ||
filter-sdf-effects.cpp | ||
filter-sdf-effects.hpp | ||
filter-shader.cpp | ||
filter-shader.hpp | ||
filter-transform.cpp | ||
filter-transform.hpp | ||
filter-upscaling.cpp | ||
filter-upscaling.hpp | ||
filter-virtual-greenscreen.cpp | ||
filter-virtual-greenscreen.hpp |