private void Tick()
{
if (BHAVDirty)
{
foreach (var ent in Entities) if (ent.Thread != null) ent.Thread.RoutineDirty = true;
BHAVDirty = false;
}
lock (Driver)
{
if (Driver.Tick(this)) //returns true the first time we catch up to the state.
Ready = true;
}
}