mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Remove mirror from benchmark example
This commit is contained in:
parent
74fe5be0c0
commit
44e6813cfb
2 changed files with 4 additions and 8 deletions
|
@ -188,23 +188,22 @@ print(
|
||||||
..yellow("Total Archetypes: "..numberOfArchetypes)
|
..yellow("Total Archetypes: "..numberOfArchetypes)
|
||||||
)
|
)
|
||||||
|
|
||||||
local q = ecs:query(D4, D2, D3, D6)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ParameterGenerator = function()
|
ParameterGenerator = function()
|
||||||
return
|
return
|
||||||
end,
|
end,
|
||||||
|
|
||||||
Functions = {
|
Functions = {
|
||||||
Mirror = function()
|
Mater = function()
|
||||||
local matched = 0
|
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
|
matched += 1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
Jecs = function()
|
Jecs = function()
|
||||||
local matched = 0
|
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
|
matched += 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -76,12 +76,9 @@ for combination in archetypes do
|
||||||
and combination:find("4")
|
and combination:find("4")
|
||||||
and combination:find("6")
|
and combination:find("6")
|
||||||
then
|
then
|
||||||
print(combination)
|
|
||||||
arch += 1
|
arch += 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print("TEST", hm, arch)
|
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
describe("World", function()
|
describe("World", function()
|
||||||
it("should add component", function()
|
it("should add component", function()
|
||||||
|
|
Loading…
Reference in a new issue