cleanup after multi api removing

This commit is contained in:
BlackMATov
2025-04-20 03:37:33 +07:00
parent dce83d1a1f
commit 63c0e17dad
3 changed files with 33 additions and 2241 deletions

View File

@@ -528,88 +528,6 @@ basics.describe_bench(string.format('create and destroy %d entities with 5 compo
print '----------------------------------------'
basics.describe_bench(string.format('create and destroy %d entities with 1 components / multi-set', N),
---@param entities evolved.id[]
function(entities)
local set = evo.multi_set
for i = 1, N do
local e = evo.id()
set(e, { F1 })
entities[i] = e
end
evo.batch_destroy(Q1)
end, function()
return {}
end)
basics.describe_bench(string.format('create and destroy %d entities with 2 components / multi-set', N),
---@param entities evolved.id[]
function(entities)
local set = evo.multi_set
for i = 1, N do
local e = evo.id()
set(e, { F1, F2 })
entities[i] = e
end
evo.batch_destroy(Q1)
end, function()
return {}
end)
basics.describe_bench(string.format('create and destroy %d entities with 3 components / multi-set', N),
---@param entities evolved.id[]
function(entities)
local set = evo.multi_set
for i = 1, N do
local e = evo.id()
set(e, { F1, F2, F3 })
entities[i] = e
end
evo.batch_destroy(Q1)
end, function()
return {}
end)
basics.describe_bench(string.format('create and destroy %d entities with 4 components / multi-set', N),
---@param entities evolved.id[]
function(entities)
local set = evo.multi_set
for i = 1, N do
local e = evo.id()
set(e, { F1, F2, F3, F4 })
entities[i] = e
end
evo.batch_destroy(Q1)
end, function()
return {}
end)
basics.describe_bench(string.format('create and destroy %d entities with 5 components / multi-set', N),
---@param entities evolved.id[]
function(entities)
local set = evo.multi_set
for i = 1, N do
local e = evo.id()
set(e, { F1, F2, F3, F4, F5 })
entities[i] = e
end
evo.batch_destroy(Q1)
end, function()
return {}
end)
print '----------------------------------------'
basics.describe_bench(string.format('create and destroy %d entities with 1 components / spawn_at', N),
---@param entities evolved.id[]
function(entities)

File diff suppressed because it is too large Load Diff

View File

@@ -1306,24 +1306,6 @@ local function __chunk_without_fragments(chunk, ...)
return chunk
end
---@param chunk? evolved.chunk
---@param fragment_list evolved.fragment[]
---@param fragment_count integer
---@return evolved.chunk?
---@nodiscard
local function __chunk_without_fragment_list(chunk, fragment_list, fragment_count)
if fragment_count == 0 then
return chunk
end
for i = 1, fragment_count do
local fragment = fragment_list[i]
chunk = __chunk_without_fragment(chunk, fragment)
end
return chunk
end
---
---
---
@@ -2961,24 +2943,18 @@ local __defer_op = {
clear = 3,
destroy = 4,
multi_set = 5,
multi_remove = 6,
batch_set = 5,
batch_remove = 6,
batch_clear = 7,
batch_destroy = 8,
batch_set = 7,
batch_remove = 8,
batch_clear = 9,
batch_destroy = 10,
spawn_entity_at = 9,
spawn_entity_as = 10,
spawn_entity_with = 11,
batch_multi_set = 11,
batch_multi_remove = 12,
call_hook = 12,
spawn_entity_at = 13,
spawn_entity_as = 14,
spawn_entity_with = 15,
call_hook = 16,
__count = 16,
__count = 12,
}
---@type table<evolved.defer_op, fun(bytes: any[], index: integer): integer>