summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2024-08-30 12:13:21 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2024-08-30 13:04:46 +0200
commitdb4672f83ff4febb0da4193469f85c889203f96c (patch)
tree5b05f9b3f791f64ce7689bf96d6ecc49bf065c88
parent108c603f91b94100a1adc989316a372f0a6f8989 (diff)
downloadredot-engine-db4672f83ff4febb0da4193469f85c889203f96c.tar.gz
WorkerThreadPool: Print info about thread count at startup
-rw-r--r--core/object/worker_thread_pool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/object/worker_thread_pool.cpp b/core/object/worker_thread_pool.cpp
index 7fd43c4094..6a1463aa1c 100644
--- a/core/object/worker_thread_pool.cpp
+++ b/core/object/worker_thread_pool.cpp
@@ -701,6 +701,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++) {