Add async diff trigger on tick

This commit is contained in:
2024-02-26 15:20:47 -05:00
parent 4d8d9565a4
commit aaedf9e3f0

View File

@@ -228,6 +228,9 @@ public:
// If the clock has advanced far enough, tick the master model.
if (clock >= next_tick_) {
master_->invoke(Invocation(Invocation::KIND_TICK, 0, 0, ""));
for (UniqueClient &client : clients_) {
client->async_diff_ = true;
}
next_tick_ += 1.0;
if (next_tick_ < clock + 0.3) next_tick_ = clock + 0.3;
}