diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 23:37:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 23:37:58 +0200 |
commit | 4c0ce657d551766744bdcad4e78f4b2442ba349e (patch) | |
tree | b0235e75b52a2971a56d2f01a5966f8e26242314 | |
parent | 51d524b9a14c86f2ee6b13a1512856b672fae784 (diff) | |
parent | db4672f83ff4febb0da4193469f85c889203f96c (diff) | |
download | redot-engine-4c0ce657d551766744bdcad4e78f4b2442ba349e.tar.gz |
Merge pull request #96322 from RandomShaper/wtp_info
WorkerThreadPool: Print info about thread count at startup
-rw-r--r-- | core/object/worker_thread_pool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/object/worker_thread_pool.cpp b/core/object/worker_thread_pool.cpp index 36a3f9d99b..fe7bbd474c 100644 --- a/core/object/worker_thread_pool.cpp +++ b/core/object/worker_thread_pool.cpp @@ -687,6 +687,8 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio) max_low_priority_threads = CLAMP(p_thread_count * p_low_priority_task_ratio, 1, p_thread_count - 1); + print_verbose(vformat("WorkerThreadPool: %d threads, %d max low-priority.", p_thread_count, max_low_priority_threads)); + threads.resize(p_thread_count); for (uint32_t i = 0; i < threads.size(); i++) { |