mirror of
https://github.com/DCFApixels/DragonECS-ClassicThreads.git
synced 2025-09-18 03:34:35 +08:00
fix
This commit is contained in:
parent
9782fa9cb7
commit
893313990a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user