Skip to content

Commit

Permalink
Test - update CreateEntities() example
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Aug 2, 2024
1 parent 164d474 commit 35f3257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tests/ECS/Examples/Optimization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public static void CreateEntities()
{
var store = new EntityStore();
var archetype = store.GetArchetype(ComponentTypes.Get<Position, Scale3>(), Tags.Get<MyTag1>());
archetype.CreateEntities(100_000); // ~ 0.5 ms
Console.WriteLine(store.Count); // 100000
var entities = archetype.CreateEntities(100_000); // ~ 0.5 ms
Console.WriteLine(entities.Count); // 100000
}

/// Obsolete! Prefer using significant more performant <c>CreateEntity()</c> overloads used
Expand Down

0 comments on commit 35f3257

Please sign in to comment.