Make the server automatically tick and send diffs periodically

This commit is contained in:
2024-02-26 15:19:15 -05:00
parent 7f7bd5a781
commit 4d8d9565a4
2 changed files with 30 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ public:
void receive_diff_from_server(StreamBuffer *sb) {
world_to_synchronous();
try {
DebugCollector dbc("");
DebugCollector dbc("");
int64_t nactor = world_->patch_everything(sb, &dbc);
if (nactor != actor_id_) change_actor_id(nactor);
dbc.dump(stdostream());