obs-StreamFX/source
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
..
encoders encoder/handler/dnxhd: Use endian-independent formats 2023-04-05 18:58:46 +02:00
ffmpeg ffmpeg/tools: Add support for HDR formats 2023-04-05 18:58:46 +02:00
filters util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
gfx code: Fix initialization order for constructors 2023-04-05 18:58:40 +02:00
nvidia cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
obs cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
sources cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
transitions cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
ui cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
util util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
common.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
configuration.cpp configuration: Fix unicode support 2023-03-28 13:11:04 +02:00
configuration.hpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00
plugin.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
plugin.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
strings.hpp locale: Remove any unused Strings 2023-04-05 18:51:28 +02:00
updater.cpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
updater.hpp util/threadpool: Optimize for dynamic thread pooling 2023-04-05 18:58:49 +02:00
warning-disable.hpp code: Fix GCC warning diagnostic pragmas 2023-04-05 18:58:41 +02:00
warning-enable.hpp code: Fix GCC warning diagnostic pragmas 2023-04-05 18:58:41 +02:00
windll.cpp cmake, code: Abuse pre-processor to disable/enable warnings 2023-04-05 18:58:39 +02:00