mirror of
https://github.com/DCFApixels/DragonECS-ClassicThreads.git
synced 2025-09-18 03:44:34 +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 entitiesCount = entities.Bake(ref _entities);
|
||||||
|
|
||||||
int threadsCount = entitiesCount / minSpanSize;
|
int threadsCount = entitiesCount / minSpanSize;
|
||||||
//if (entitiesCount % minSpanSize > 0)
|
if (entitiesCount % minSpanSize > 0)
|
||||||
// threadsCount++;
|
threadsCount++;
|
||||||
if (threadsCount > _maxThreadsCount)
|
if (threadsCount > _maxThreadsCount)
|
||||||
threadsCount = _maxThreadsCount;
|
threadsCount = _maxThreadsCount;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user