-call update by Systems instead of EntityTypes (version UpdateBySystems)
-memory packing (every block in EntityType except last one are always full)
This commit is contained in:
parent
fddfc78ec1
commit
3a767babc0
3 changed files with 232 additions and 92 deletions
|
|
@ -324,14 +324,14 @@ import std.meta;
|
|||
|
||||
//foreach(i; 0..1_000_000)gEM.removeEntity(gEM.addEntity(tmpl).id);
|
||||
|
||||
EntityID[1000] idss;
|
||||
EntityID[5000] idss;
|
||||
|
||||
foreach (i; 0 .. 1_000)
|
||||
foreach (i; 0 .. 200)
|
||||
{
|
||||
gEM.begin();
|
||||
foreach (j; 0 .. 1_000)
|
||||
foreach (j; 0 .. 5_000)
|
||||
idss[j] = gEM.addEntity(tmpl).id;
|
||||
foreach (j; 0 .. 1_000)
|
||||
foreach (j; 0 .. 5_000)
|
||||
gEM.removeEntity(idss[j]);
|
||||
gEM.end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue