Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Arch/Buffer/SparseSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public int Create(in Entity entity)

private void AddSparseArray(ComponentType type)
{
Components[type.Id] = new SparseArray(type, type.Id);
Components[type.Id] = new SparseArray(type, Capacity);

Used[UsedSize] = type.Id;
UsedSize++;
Expand Down
17 changes: 0 additions & 17 deletions src/Arch/Core/Utils/BitSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,6 @@ public bool Any(BitSet other)
}
}

// Handle extra bits on our side that might just be all zero.
for (var i = min; i < _max; i++)
{
if (bits[i] > 0)
{
return false;
}
}
}
else
{
Expand All @@ -270,15 +262,6 @@ public bool Any(BitSet other)
}
}

// Handle extra bits on our side that might just be all zero.
for (var i = min; i < _max; i += _padding)
{
var vector = new Vector<uint>(_bits, i);
if (!Vector.EqualsAll(vector, Vector<uint>.Zero)) // Vectors are not zero bits[0] != 0 basically
{
return false;
}
}
}

return _highestBit <= 0;
Expand Down
Loading