-added EntityBlocks allocating in blocks (no memory freeing, currently block contain 128 EntityBlocks)

This commit is contained in:
Mergul 2018-09-13 22:37:37 +02:00
parent 1aa1fbf36b
commit 5b2a6e9890
3 changed files with 20 additions and 48 deletions

View file

@ -101,7 +101,7 @@ int main()
test2.b += 2;
test2.a = 8;
//writeln("Jakis tekst! ",test2.b);
writeln("Low priority tekst! ");
//writeln("Low priority tekst! ");
}
void handleEvent(Event event, ref TestComp comp)
@ -122,7 +122,7 @@ int main()
{
assert(cast(size_t)&test % TestComp.alignof == 0);
writeln("High priority tekst! ");
//writeln("High priority tekst! ");
}
void handleEvent(Event event, ref TestComp comp)
@ -155,7 +155,7 @@ int main()
void update(ref Entity entity, ref TestComp3 test) //ref TestComp comp)
{
writeln("TestSystem2 update");
//writeln("TestSystem2 update");
test.gg += 14;
}