1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Prevent crashing if max_threads is zero.

Adds a note in the docs that a thread count of 0 has the same effect as a thread count of -1.

Change language of WorkerThreadPool in ProjectSettings

Co-Authored-By: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
WinnerWind
2025-07-19 12:14:54 +05:30
parent 71a9948157
commit a1788e09bf
2 changed files with 2 additions and 2 deletions

View File

@@ -780,7 +780,7 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio)
runlevel = RUNLEVEL_NORMAL;
if (p_thread_count < 0) {
if (p_thread_count <= 0) {
p_thread_count = OS::get_singleton()->get_default_thread_pool_size();
}