Browse Source

WorkerThreadPool: Print info about thread count at startup

Pedro J. Estébanez 11 months ago
parent
commit
db4672f83f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/object/worker_thread_pool.cpp

+ 2 - 0
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);
 	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);
 	threads.resize(p_thread_count);
 
 
 	for (uint32_t i = 0; i < threads.size(); i++) {
 	for (uint32_t i = 0; i < threads.size(); i++) {