From 893313990acfee49368a79297d46f17413eb19c9 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 12 Jun 2023 01:05:19 +0800 Subject: [PATCH] fix --- src/ThreadRunner.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ThreadRunner.cs b/src/ThreadRunner.cs index 5ef288b..d149070 100644 --- a/src/ThreadRunner.cs +++ b/src/ThreadRunner.cs @@ -52,8 +52,8 @@ namespace DCFApixels.DragonECS int entitiesCount = entities.Bake(ref _entities); int threadsCount = entitiesCount / minSpanSize; - //if (entitiesCount % minSpanSize > 0) - // threadsCount++; + if (entitiesCount % minSpanSize > 0) + threadsCount++; if (threadsCount > _maxThreadsCount) threadsCount = _maxThreadsCount;