mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-09-29 09:45:38 +07:00
non-shrinking version of garbage collection
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
## Thoughts
|
||||
|
||||
- We should have a way to not copy components on deferred spawn/clone
|
||||
- Having a light version of the gargabe collector can be useful for some use-cases
|
||||
- Basic default component value as true looks awful, should we use something else?
|
||||
|
||||
## Known Issues
|
||||
|
||||
@@ -118,11 +118,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
|
||||
|
||||
@@ -124,11 +124,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
|
||||
|
||||
@@ -296,7 +296,7 @@ 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_query_list))
|
||||
@@ -304,5 +304,5 @@ evo.destroy(__table_unpack(all_entity_list))
|
||||
evo.destroy(__table_unpack(all_fragment_list))
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
evo.collect_garbage()
|
||||
evo.collect_garbage(math.random(1, 2) == 1)
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -115,17 +115,17 @@ end
|
||||
if math.random(1, 2) == 1 then
|
||||
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
|
||||
evo.destroy(__table_unpack(all_fragment_list))
|
||||
else
|
||||
evo.destroy(__table_unpack(all_fragment_list))
|
||||
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))
|
||||
end
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
evo.collect_garbage()
|
||||
evo.collect_garbage(math.random(1, 2) == 1)
|
||||
end
|
||||
|
||||
@@ -64,11 +64,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
|
||||
|
||||
Reference in New Issue
Block a user