non-shrinking version of garbage collection

This commit is contained in:
BlackMATov
2026-02-02 20:46:50 +07:00
parent a1440f26df
commit d1105c15ad
10 changed files with 62 additions and 40 deletions
+2 -2
View File
@@ -78,11 +78,11 @@ end
---
if math.random(1, 2) == 1 then
evo.collect_garbage()
evo.collect_garbage(math.random(1, 2) == 1)
end
evo.destroy(__table_unpack(all_entity_list))
if math.random(1, 2) == 1 then
evo.collect_garbage()
evo.collect_garbage(math.random(1, 2) == 1)
end