From 35f32575b770e9b8847588b3e3a357e3c48eab4f Mon Sep 17 00:00:00 2001 From: Ullrich Praetz Date: Fri, 2 Aug 2024 11:18:14 +0200 Subject: [PATCH] Test - update CreateEntities() example --- src/Tests/ECS/Examples/Optimization.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/ECS/Examples/Optimization.cs b/src/Tests/ECS/Examples/Optimization.cs index ec78403d..397f6c85 100644 --- a/src/Tests/ECS/Examples/Optimization.cs +++ b/src/Tests/ECS/Examples/Optimization.cs @@ -118,8 +118,8 @@ public static void CreateEntities() { var store = new EntityStore(); var archetype = store.GetArchetype(ComponentTypes.Get(), Tags.Get()); - 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 CreateEntity() overloads used