From 38a8c9019471bafe32e148bf27ab0f1c8adc00e6 Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Sun, 1 Feb 2026 19:05:11 +0000 Subject: [PATCH] Updated Myriad.ECS to v44.0.1 --- source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj | 2 +- .../Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs | 6 +++--- .../SystemWithThreeComponents/Myriad.cs | 6 +++--- .../Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs | 6 +++--- .../SystemWithTwoComponentsMultipleComposition/Myriad.cs | 7 +++---- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj b/source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj index 7eb961f..a6f32be 100644 --- a/source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj +++ b/source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj @@ -20,7 +20,7 @@ - + diff --git a/source/Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs b/source/Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs index 098f2d4..00e9df4 100644 --- a/source/Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs +++ b/source/Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs @@ -21,7 +21,7 @@ public void Execute(Entity entity, ref Component1 t0) ++t0.Value; } - public void Execute(ChunkHandle chunk, ReadOnlySpan e, Span t0) + public void Execute(ChunkHandle chunk, Span t0) { for (int i = 0; i < t0.Length; i++) { @@ -69,7 +69,7 @@ public MyriadContext(int entityCount, int _) public void Myriad_SingleThread() { World world = _myriad.World; - world.Execute(new MyriadForEach1()); + world.Execute(); } [BenchmarkCategory(Categories.Myriad)] @@ -85,7 +85,7 @@ public void Myriad_MultiThread() public void Myriad_SingleThreadChunk() { World world = _myriad.World; - world.ExecuteChunk(new MyriadForEach1()); + world.ExecuteChunk(); } [BenchmarkCategory(Categories.Myriad)] diff --git a/source/Ecs.CSharp.Benchmark/SystemWithThreeComponents/Myriad.cs b/source/Ecs.CSharp.Benchmark/SystemWithThreeComponents/Myriad.cs index 06c88fe..001f109 100644 --- a/source/Ecs.CSharp.Benchmark/SystemWithThreeComponents/Myriad.cs +++ b/source/Ecs.CSharp.Benchmark/SystemWithThreeComponents/Myriad.cs @@ -20,7 +20,7 @@ public void Execute(Entity entity, ref Component1 t0, ref Component2 t1, ref Com t0.Value += t1.Value + t2.Value; } - public void Execute(ChunkHandle chunk, ReadOnlySpan e, Span t0, Span t1, Span t2) + public void Execute(ChunkHandle chunk, Span t0, Span t1, Span t2) { for (int i = 0; i < t0.Length; i++) { @@ -54,7 +54,7 @@ public MyriadContext(int entityCount, int _) public void Myriad_SingleThread() { World world = _myriad.World; - world.Execute(new MyriadForEach3()); + world.Execute(); } [BenchmarkCategory(Categories.Myriad)] @@ -70,7 +70,7 @@ public void Myriad_MultiThread() public void Myriad_SingleThreadChunk() { World world = _myriad.World; - world.ExecuteChunk(new MyriadForEach3()); + world.ExecuteChunk(); } [BenchmarkCategory(Categories.Myriad)] diff --git a/source/Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs b/source/Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs index 74f9100..bad6d08 100644 --- a/source/Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs +++ b/source/Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs @@ -21,7 +21,7 @@ public void Execute(Entity entity, ref Component1 t0, ref Component2 t1) t0.Value += t1.Value; } - public void Execute(ChunkHandle chunk, ReadOnlySpan e, Span t0, Span t1) + public void Execute(ChunkHandle chunk, Span t0, Span t1) { for (int i = 0; i < t0.Length; i++) { @@ -67,7 +67,7 @@ public MyriadContext(int entityCount, int _) public void Myriad_SingleThread() { World world = _myriad.World; - world.Execute(new MyriadForEach2()); + world.Execute(); } [BenchmarkCategory(Categories.Myriad)] @@ -83,7 +83,7 @@ public void Myriad_MultiThread() public void Myriad_SingleThreadChunk() { World world = _myriad.World; - world.ExecuteChunk(new MyriadForEach2()); + world.ExecuteChunk(); } [BenchmarkCategory(Categories.Myriad)] diff --git a/source/Ecs.CSharp.Benchmark/SystemWithTwoComponentsMultipleComposition/Myriad.cs b/source/Ecs.CSharp.Benchmark/SystemWithTwoComponentsMultipleComposition/Myriad.cs index 446fa04..62bdb5d 100644 --- a/source/Ecs.CSharp.Benchmark/SystemWithTwoComponentsMultipleComposition/Myriad.cs +++ b/source/Ecs.CSharp.Benchmark/SystemWithTwoComponentsMultipleComposition/Myriad.cs @@ -21,7 +21,7 @@ public void Execute(Entity entity, ref Component1 t0, ref Component2 t1) t0.Value += t1.Value; } - public void Execute(ChunkHandle chunk, ReadOnlySpan e, Span t0, Span t1) + public void Execute(ChunkHandle chunk, Span t0, Span t1) { for (int i = 0; i < t0.Length; i++) { @@ -45,7 +45,6 @@ public void Execute(Span> t0, Span> t1, int offset, int private sealed class MyriadContext : MyriadBaseContext { public MyriadContext(int entityCount) - : base() { CommandBuffer cmd = new CommandBuffer(World); for (int i = 0; i < entityCount; i++) @@ -84,7 +83,7 @@ public MyriadContext(int entityCount) public void Myriad_SingleThread() { World world = _myriad.World; - world.Execute(new MyriadForEach2()); + world.Execute(); } [BenchmarkCategory(Categories.Myriad)] @@ -100,7 +99,7 @@ public void Myriad_MultiThread() public void Myriad_SingleThreadChunk() { World world = _myriad.World; - world.ExecuteChunk(new MyriadForEach2()); + world.ExecuteChunk(); } [BenchmarkCategory(Categories.Myriad)]