diff --git a/README.md b/README.md index 4dbba1b..f759ab2 100644 --- a/README.md +++ b/README.md @@ -47,4 +47,4 @@ assert(world:get(opponentId, Health) == 92) ``` -![Comparison](image-2.png) \ No newline at end of file +![Comparison](image-3.png) \ No newline at end of file diff --git a/benches/query.bench.lua b/benches/query.bench.lua index 982fe34..ec31fc5 100644 --- a/benches/query.bench.lua +++ b/benches/query.bench.lua @@ -196,14 +196,21 @@ return { Functions = { Mater = function() local matched = 0 - for entityId, firstComponent in newWorld:query(A2, A3, A4, A1) do + for entityId, firstComponent in newWorld:query(A2, A4, A6, A8) do + matched += 1 + end + end, + + ECR = function() + local matched = 0 + for entityId, firstComponent in registry2:view(B2, B4, B6, B8) do matched += 1 end end, Jecs = function() local matched = 0 - for entityId, firstComponent in ecs:query(D2, D3, D4, D1) do + for entityId, firstComponent in ecs:query(D2, D4, D6, D8) do matched += 1 end diff --git a/image-3.png b/image-3.png new file mode 100644 index 0000000..9db2297 Binary files /dev/null and b/image-3.png differ