-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:
Mergul 2018-10-10 18:35:20 +02:00
parent fddfc78ec1
commit 3a767babc0
3 changed files with 232 additions and 92 deletions

View file

@ -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();
}