Skip to content

Commit

Permalink
Query Rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Jul 30, 2024
1 parent 4e21367 commit e9d2154
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 120 deletions.
12 changes: 4 additions & 8 deletions benches/visual/query.bench.luau
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local function flip()
end

local common = 0
local N = 500
local N = 2^16-2
local archetypes = {}

local hm = 0
Expand Down Expand Up @@ -171,18 +171,14 @@ return {

Functions = {
Mirror = function()
for i = 1, 1000 do
for entityId, firstComponent in mcs:query(E1, E4) do
end
for entityId, firstComponent in mcs:query(E1, E2, E3, E4) do
end

end,

Jecs = function()
for i = 1, 1000 do
for entityId, firstComponent in ecs:query(D1, D4) do
end
end
for entityId, firstComponent in ecs:query(D1, D2, D3, D4) do
end
end,
},
}
Loading

0 comments on commit e9d2154

Please sign in to comment.