Skip to content

Commit 3d9cc09

Browse files
authored
Update EntityPool initialization with dynamic capacity (#593)
1 parent cccee63 commit 3d9cc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/world.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ end
806806
_LastTable{$M}(_Mask{$M}(), UInt32(1)),
807807
_ComponentIndex{$(M)}($(length(types))),
808808
registry,
809-
_EntityPool(UInt32(1024)),
809+
_EntityPool(max(UInt32(initial_capacity), UInt32(1024))),
810810
_Lock(),
811811
graph,
812812
_Linear_Map{DataType,Any}(; zero_key=NoResource, zero_value=NoResource()),

0 commit comments

Comments
 (0)