From 44e6813cfb6ce0dd3b52ad8934bf0177c9901dbb Mon Sep 17 00:00:00 2001 From: Ukendio Date: Thu, 25 Apr 2024 16:37:01 +0200 Subject: [PATCH] Remove mirror from benchmark example --- benches/query.bench.lua | 9 ++++----- lib/init.spec.lua | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/benches/query.bench.lua b/benches/query.bench.lua index ad31315..982fe34 100644 --- a/benches/query.bench.lua +++ b/benches/query.bench.lua @@ -188,23 +188,22 @@ print( ..yellow("Total Archetypes: "..numberOfArchetypes) ) -local q = ecs:query(D4, D2, D3, D6) - return { ParameterGenerator = function() return end, Functions = { - Mirror = function() + Mater = function() local matched = 0 - for entityId, firstComponent in mcs:query(E2, E3, E4, E1) do + for entityId, firstComponent in newWorld:query(A2, A3, A4, A1) do matched += 1 end end, + Jecs = function() local matched = 0 - for entityId, firstComponent in ecs:query(E2, E3, E4, E1) do + for entityId, firstComponent in ecs:query(D2, D3, D4, D1) do matched += 1 end diff --git a/lib/init.spec.lua b/lib/init.spec.lua index f2a40e8..de2ff9f 100644 --- a/lib/init.spec.lua +++ b/lib/init.spec.lua @@ -76,12 +76,9 @@ for combination in archetypes do and combination:find("4") and combination:find("6") then - print(combination) arch += 1 end end -print("TEST", hm, arch) - return function() describe("World", function() it("should add component", function()