-support for system priority
-fixed callers system pointer update -fixed HashMap issue
This commit is contained in:
parent
0eaff0adad
commit
1aa1fbf36b
3 changed files with 35 additions and 3 deletions
|
|
@ -101,6 +101,28 @@ int main()
|
|||
test2.b += 2;
|
||||
test2.a = 8;
|
||||
//writeln("Jakis tekst! ",test2.b);
|
||||
writeln("Low priority tekst! ");
|
||||
}
|
||||
|
||||
void handleEvent(Event event, ref TestComp comp)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
struct TestSystemWithHighPriority
|
||||
{
|
||||
|
||||
void initialize(ref Entity entity, ref TestComp comp)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void update(ref Entity entity, ref TestComp test) //ref TestComp comp)
|
||||
{
|
||||
assert(cast(size_t)&test % TestComp.alignof == 0);
|
||||
|
||||
writeln("High priority tekst! ");
|
||||
}
|
||||
|
||||
void handleEvent(Event event, ref TestComp comp)
|
||||
|
|
@ -158,7 +180,9 @@ int main()
|
|||
|
||||
time = MonoTime.currTime;
|
||||
|
||||
gEM.registerSystem!TestSystemWithHighPriority(100);
|
||||
gEM.registerSystem!TestSystem(0);
|
||||
//gEM.registerSystem!TestSystemWithHighPriority(100);
|
||||
//gEM.registerSystem!TestSystem2(0);
|
||||
|
||||
dur = (MonoTime.currTime - time).total!"usecs";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue