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 source/Ecs.CSharp.Benchmark/Ecs.CSharp.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Arch.System" Version="1.0.5" />
<PackageReference Include="Arch.System.SourceGenerator" Version="1.2.1" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Myriad.ECS" Version="34.2.0" />
<PackageReference Include="Myriad.ECS" Version="44.0.1" />
<PackageReference Include="Roslynator.Analyzers" Version="4.10.0" PrivateAssets="all" />
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.10.0" PrivateAssets="all" />
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.10.0" PrivateAssets="all" />
Expand Down
6 changes: 3 additions & 3 deletions source/Ecs.CSharp.Benchmark/SystemWithOneComponent/Myriad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void Execute(Entity entity, ref Component1 t0)
++t0.Value;
}

public void Execute(ChunkHandle chunk, ReadOnlySpan<Entity> e, Span<Component1> t0)
public void Execute(ChunkHandle chunk, Span<Component1> t0)
{
for (int i = 0; i < t0.Length; i++)
{
Expand Down Expand Up @@ -69,7 +69,7 @@ public MyriadContext(int entityCount, int _)
public void Myriad_SingleThread()
{
World world = _myriad.World;
world.Execute<MyriadForEach1, Component1>(new MyriadForEach1());
world.Execute<MyriadForEach1, Component1>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand All @@ -85,7 +85,7 @@ public void Myriad_MultiThread()
public void Myriad_SingleThreadChunk()
{
World world = _myriad.World;
world.ExecuteChunk<MyriadForEach1, Component1>(new MyriadForEach1());
world.ExecuteChunk<MyriadForEach1, Component1>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity> e, Span<Component1> t0, Span<Component2> t1, Span<Component3> t2)
public void Execute(ChunkHandle chunk, Span<Component1> t0, Span<Component2> t1, Span<Component3> t2)
{
for (int i = 0; i < t0.Length; i++)
{
Expand Down Expand Up @@ -54,7 +54,7 @@ public MyriadContext(int entityCount, int _)
public void Myriad_SingleThread()
{
World world = _myriad.World;
world.Execute<MyriadForEach3, Component1, Component2, Component3>(new MyriadForEach3());
world.Execute<MyriadForEach3, Component1, Component2, Component3>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand All @@ -70,7 +70,7 @@ public void Myriad_MultiThread()
public void Myriad_SingleThreadChunk()
{
World world = _myriad.World;
world.ExecuteChunk<MyriadForEach3, Component1, Component2, Component3>(new MyriadForEach3());
world.ExecuteChunk<MyriadForEach3, Component1, Component2, Component3>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand Down
6 changes: 3 additions & 3 deletions source/Ecs.CSharp.Benchmark/SystemWithTwoComponents/Myriad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity> e, Span<Component1> t0, Span<Component2> t1)
public void Execute(ChunkHandle chunk, Span<Component1> t0, Span<Component2> t1)
{
for (int i = 0; i < t0.Length; i++)
{
Expand Down Expand Up @@ -67,7 +67,7 @@ public MyriadContext(int entityCount, int _)
public void Myriad_SingleThread()
{
World world = _myriad.World;
world.Execute<MyriadForEach2, Component1, Component2>(new MyriadForEach2());
world.Execute<MyriadForEach2, Component1, Component2>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand All @@ -83,7 +83,7 @@ public void Myriad_MultiThread()
public void Myriad_SingleThreadChunk()
{
World world = _myriad.World;
world.ExecuteChunk<MyriadForEach2, Component1, Component2>(new MyriadForEach2());
world.ExecuteChunk<MyriadForEach2, Component1, Component2>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity> e, Span<Component1> t0, Span<Component2> t1)
public void Execute(ChunkHandle chunk, Span<Component1> t0, Span<Component2> t1)
{
for (int i = 0; i < t0.Length; i++)
{
Expand All @@ -45,7 +45,6 @@ public void Execute(Span<Vector<int>> t0, Span<Vector<int>> 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++)
Expand Down Expand Up @@ -84,7 +83,7 @@ public MyriadContext(int entityCount)
public void Myriad_SingleThread()
{
World world = _myriad.World;
world.Execute<MyriadForEach2, Component1, Component2>(new MyriadForEach2());
world.Execute<MyriadForEach2, Component1, Component2>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand All @@ -100,7 +99,7 @@ public void Myriad_MultiThread()
public void Myriad_SingleThreadChunk()
{
World world = _myriad.World;
world.ExecuteChunk<MyriadForEach2, Component1, Component2>(new MyriadForEach2());
world.ExecuteChunk<MyriadForEach2, Component1, Component2>();
}

[BenchmarkCategory(Categories.Myriad)]
Expand Down