This commit is contained in:
Mikhail 2023-06-12 01:05:19 +08:00
parent 9782fa9cb7
commit 893313990a

View File

@ -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;