mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add blocks_agent templates & remove block.get_slow
This commit is contained in:
parent
5bf56d1f64
commit
6157f8193d
9 changed files with 158 additions and 104 deletions
|
|
@ -8,11 +8,8 @@ assert(player.get_name(pid) == "Xerxes")
|
|||
test.sleep_until(function() return world.count_chunks() >= 9 end, 1000)
|
||||
print(world.count_chunks())
|
||||
|
||||
for i=1,3 do
|
||||
print("---")
|
||||
timeit(1000000, block.get, 0, 0, 0)
|
||||
timeit(1000000, block.get_slow, 0, 0, 0)
|
||||
end
|
||||
timeit(10000000, block.get, 0, 0, 0)
|
||||
timeit(10000000, core.blank, 0, 0, 0)
|
||||
|
||||
block.destruct(0, 0, 0, pid)
|
||||
assert(block.get(0, 0, 0) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue