diff --git a/ROADMAP.md b/ROADMAP.md index ce58993..6b574d2 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -15,3 +15,5 @@ - [x] registry.assign should not change chunks' tree - [ ] add deferred changes api - [ ] add multi apply/batch_apply +- [ ] add batch vector operations +- [ ] add inplace vector operations \ No newline at end of file diff --git a/develop/example.lua b/develop/example.lua index 9178092..ce20857 100644 --- a/develop/example.lua +++ b/develop/example.lua @@ -7,14 +7,16 @@ local singles = { } local fragments = { + disabled = evo.registry.entity(), position = evo.registry.entity(), velocity = evo.registry.entity(), } local queries = { bodies = evo.registry.query( - fragments.position, - fragments.velocity), + fragments.position, + fragments.velocity) + :exclude(fragments.disabled) } do diff --git a/develop/unbench/common_unbench.lua b/develop/unbench/common_unbench.lua index 77b21a2..a8f5217 100644 --- a/develop/unbench/common_unbench.lua +++ b/develop/unbench/common_unbench.lua @@ -17,7 +17,7 @@ function common.describe(name, loop, init) local start_kb = collectgarbage('count') local success, result = pcall(function() - while os.clock() - start_s < 1.0 do + while os.clock() - start_s < 0.2 do iters = iters + 1 loop(evo.compat.unpack(state)) end